org.apache.batik.bridge
public abstract class TextUtilities extends Object implements CSSConstants, ErrorConstants
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.
|
Parameters: e the element
Parameters: e the element
Parameters: e the element
Parameters: e the element
Parameters: e the element
Parameters: e the element
Parameters: e the element
Parameters: e the element
Parameters: e the element
Parameters: element the element that defines the specified coordinates attrName the name of the attribute (used by error handling) valueStr the delimited string containing values of the coordinate ctx the bridge context
Parameters: element the element that defines the specified coordinates attrName the name of the attribute (used by error handling) valueStr the delimited string containing values of the coordinate ctx the bridge context