|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.apache.batik.bridge.TextUtilities
A collection of utility method for text.
| 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_INVALID, ERR_URI_IO, ERR_URI_MALFORMED, ERR_URI_REFERENCE_A_DOCUMENT, ERR_URI_UNSECURE, ERR_XLINK_HREF_CIRCULAR_DEPENDENCIES, MSG_BROKEN_LINK_TITLE |
| Constructor Summary | |
TextUtilities()
|
|
| Method Summary | |
static java.lang.Object |
convertBaselineShift(Element e)
Converts a baseline-shift CSS value to a value usable as a text attribute, or null. |
static java.lang.Float |
convertFontSize(Element e)
Converts the font-size CSS value to a float value. |
static java.lang.Float |
convertFontStretch(Element e)
Converts the font-stretch CSS value to a float value. |
static java.lang.Float |
convertFontStyle(Element e)
Converts the font-style CSS value to a float value. |
static java.lang.Float |
convertFontWeight(Element e)
Converts the font-weight CSS value to a float value. |
static java.lang.Float |
convertKerning(Element e)
Converts a kerning CSS value to a value usable as a text attribute, or null. |
static java.lang.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 java.lang.Float |
convertWordSpacing(Element e)
Converts a word-spacing CSS value to a value usable as a text attribute, or null. |
static java.lang.String |
getElementContent(Element e)
Returns the content of the given element. |
static java.util.ArrayList |
svgHorizontalCoordinateArrayToUserSpace(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(Element element,
java.lang.String attrName,
java.lang.String valueStr,
BridgeContext ctx)
|
static java.util.ArrayList |
svgVerticalCoordinateArrayToUserSpace(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(Element e)
public static java.util.ArrayList svgHorizontalCoordinateArrayToUserSpace(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 context
public static java.util.ArrayList svgVerticalCoordinateArrayToUserSpace(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 context
public static java.util.ArrayList svgRotateArrayToFloats(Element element,
java.lang.String attrName,
java.lang.String valueStr,
BridgeContext ctx)
public static java.lang.Float convertFontSize(Element e)
e - the elementpublic static java.lang.Float convertFontStyle(Element e)
e - the elementpublic static java.lang.Float convertFontStretch(Element e)
e - the elementpublic static java.lang.Float convertFontWeight(Element e)
e - the elementpublic static TextNode.Anchor convertTextAnchor(Element e)
e - the elementpublic static java.lang.Object convertBaselineShift(Element e)
e - the elementpublic static java.lang.Float convertKerning(Element e)
e - the elementpublic static java.lang.Float convertLetterSpacing(Element e)
e - the elementpublic static java.lang.Float convertWordSpacing(Element e)
e - the element
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||