|
||||||||||
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 Object |
convertBaselineShift(Element e)
Converts a baseline-shift CSS value to a value usable as a text attribute, or null. |
static Float |
convertFontSize(Element e)
Converts the font-size CSS value to a float value. |
static Float |
convertFontStretch(Element e)
Converts the font-stretch CSS value to a float value. |
static Float |
convertFontStyle(Element e)
Converts the font-style CSS value to a float value. |
static Float |
convertFontWeight(Element e)
Converts the font-weight CSS value to a float value. |
static Float |
convertKerning(Element e)
Converts a kerning CSS value to a value usable as a text attribute, or null. |
static Float |
convertLetterSpacing(Element e)
Converts a letter-spacing CSS value to a value usable as a text attribute, or null. |
static TextNode.Anchor |
convertTextAnchor(Element e)
Converts the text-anchor CSS value to a TextNode.Anchor. |
static Float |
convertWordSpacing(Element e)
Converts a word-spacing CSS value to a value usable as a text attribute, or null. |
static String |
getElementContent(Element e)
Returns the content of the given element. |
static ArrayList |
svgHorizontalCoordinateArrayToUserSpace(Element element,
String attrName,
String valueStr,
BridgeContext ctx)
Returns the float list that represents a set of horizontal values or percentage. |
static ArrayList |
svgRotateArrayToFloats(Element element,
String attrName,
String valueStr,
BridgeContext ctx)
|
static ArrayList |
svgVerticalCoordinateArrayToUserSpace(Element element,
String attrName,
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 String getElementContent(Element e)
public static ArrayList svgHorizontalCoordinateArrayToUserSpace(Element element, String attrName, 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 ArrayList svgVerticalCoordinateArrayToUserSpace(Element element, String attrName, 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 ArrayList svgRotateArrayToFloats(Element element, String attrName, String valueStr, BridgeContext ctx)
public static Float convertFontSize(Element e)
e
- the elementpublic static Float convertFontStyle(Element e)
e
- the elementpublic static Float convertFontStretch(Element e)
e
- the elementpublic static Float convertFontWeight(Element e)
e
- the elementpublic static TextNode.Anchor convertTextAnchor(Element e)
e
- the elementpublic static Object convertBaselineShift(Element e)
e
- the elementpublic static Float convertKerning(Element e)
e
- the elementpublic static Float convertLetterSpacing(Element e)
e
- the elementpublic static Float convertWordSpacing(Element e)
e
- the element
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |