|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.bridge.TextUtilities
public abstract class TextUtilities
A collection of utility method for text.
Field Summary |
---|
Fields inherited from interface org.apache.batik.bridge.ErrorConstants |
---|
ERR_ATTRIBUTE_MISSING, ERR_ATTRIBUTE_VALUE_MALFORMED, ERR_CSS_LENGTH_NEGATIVE, ERR_CSS_URI_BAD_TARGET, ERR_LENGTH_NEGATIVE, ERR_URI_BAD_TARGET, ERR_URI_IMAGE_BROKEN, ERR_URI_IMAGE_INVALID, ERR_URI_IO, ERR_URI_MALFORMED, ERR_URI_REFERENCE_A_DOCUMENT, ERR_URI_UNSECURE, ERR_XLINK_HREF_CIRCULAR_DEPENDENCIES, URI_IMAGE_ERROR |
Constructor Summary | |
---|---|
TextUtilities()
|
Method Summary | |
---|---|
static java.lang.Object |
convertBaselineShift(org.w3c.dom.Element e)
Converts a baseline-shift CSS value to a value usable as a text attribute, or null. |
static java.lang.Float |
convertFontSize(org.w3c.dom.Element e)
Converts the font-size CSS value to a float value. |
static java.lang.Float |
convertFontStretch(org.w3c.dom.Element e)
Converts the font-stretch CSS value to a float value. |
static java.lang.Float |
convertFontStyle(org.w3c.dom.Element e)
Converts the font-style CSS value to a float value. |
static java.lang.Float |
convertFontWeight(org.w3c.dom.Element e)
Converts the font-weight CSS value to a float value. |
static java.lang.Float |
convertKerning(org.w3c.dom.Element e)
Converts a kerning CSS value to a value usable as a text attribute, or null. |
static java.lang.Float |
convertLetterSpacing(org.w3c.dom.Element e)
Converts a letter-spacing CSS value to a value usable as a text attribute, or null. |
static TextNode.Anchor |
convertTextAnchor(org.w3c.dom.Element e)
Converts the text-anchor CSS value to a TextNode.Anchor. |
static java.lang.Float |
convertWordSpacing(org.w3c.dom.Element e)
Converts a word-spacing CSS value to a value usable as a text attribute, or null. |
static java.lang.String |
getElementContent(org.w3c.dom.Element e)
Returns the content of the given element. |
static java.util.ArrayList |
svgHorizontalCoordinateArrayToUserSpace(org.w3c.dom.Element element,
java.lang.String attrName,
java.lang.String valueStr,
BridgeContext ctx)
Returns the float list that represents a set of horizontal values or percentage. |
static java.util.ArrayList |
svgRotateArrayToFloats(org.w3c.dom.Element element,
java.lang.String attrName,
java.lang.String valueStr,
BridgeContext ctx)
|
static java.util.ArrayList |
svgVerticalCoordinateArrayToUserSpace(org.w3c.dom.Element element,
java.lang.String attrName,
java.lang.String valueStr,
BridgeContext ctx)
Returns the float list that represents a set of values or percentage. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextUtilities()
Method Detail |
---|
public static java.lang.String getElementContent(org.w3c.dom.Element e)
public static java.util.ArrayList svgHorizontalCoordinateArrayToUserSpace(org.w3c.dom.Element element, java.lang.String attrName, java.lang.String valueStr, BridgeContext ctx)
element
- the element that defines the specified coordinatesattrName
- the name of the attribute (used by error handling)valueStr
- the delimited string containing values of the coordinatectx
- the bridge contextpublic static java.util.ArrayList svgVerticalCoordinateArrayToUserSpace(org.w3c.dom.Element element, java.lang.String attrName, java.lang.String valueStr, BridgeContext ctx)
element
- the element that defines the specified coordinatesattrName
- the name of the attribute (used by error handling)valueStr
- the delimited string containing values of the coordinatectx
- the bridge contextpublic static java.util.ArrayList svgRotateArrayToFloats(org.w3c.dom.Element element, java.lang.String attrName, java.lang.String valueStr, BridgeContext ctx)
public static java.lang.Float convertFontSize(org.w3c.dom.Element e)
e
- the elementpublic static java.lang.Float convertFontStyle(org.w3c.dom.Element e)
e
- the elementpublic static java.lang.Float convertFontStretch(org.w3c.dom.Element e)
e
- the elementpublic static java.lang.Float convertFontWeight(org.w3c.dom.Element e)
e
- the elementpublic static TextNode.Anchor convertTextAnchor(org.w3c.dom.Element e)
e
- the elementpublic static java.lang.Object convertBaselineShift(org.w3c.dom.Element e)
e
- the elementpublic static java.lang.Float convertKerning(org.w3c.dom.Element e)
e
- the elementpublic static java.lang.Float convertLetterSpacing(org.w3c.dom.Element e)
e
- the elementpublic static java.lang.Float convertWordSpacing(org.w3c.dom.Element e)
e
- the element
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |