org.apache.batik.dom.svg

Class SVGTextContentSupport

public class SVGTextContentSupport extends Object

This class provides support for the SVGTextContentElement interface.
Nested Class Summary
static classSVGTextContentSupport.SVGTextPoint
Method Summary
static intgetCharNumAtPosition(Element elt, float x, float y)
To implement {@link org.w3c.dom.svg.SVGTextContentElement#getCharNumAtPosition(SVGPoint point)}.
static floatgetComputedTextLength(Element elt)
To implement {@link org.w3c.dom.svg.SVGTextContentElement#selectSubString(int charnum, int nchars)}.
protected static Point2DgetEndPos(SVGOMElement svgelt, SVGTextContent context, int charnum)
static SVGPointgetEndPositionOfChar(Element elt, int charnum)
To implement {@link org.w3c.dom.svg.SVGTextContentElement#getEndPositionOfChar(int charnum)}.
protected static Rectangle2DgetExtent(SVGOMElement svgelt, SVGTextContent context, int charnum)
static SVGRectgetExtentOfChar(Element elt, int charnum)
To implement {@link org.w3c.dom.svg.SVGTextContentElement#getExtentOfChar(int charnum)}.
static intgetNumberOfChars(Element elt)
To implement {@link org.w3c.dom.svg.SVGTextContentElement#getNumberOfChars()}.
static floatgetRotationOfChar(Element elt, int charnum)
To implement {@link org.w3c.dom.svg.SVGTextContentElement#getRotationOfChar(int charnum)}.
protected static Point2DgetStartPos(SVGOMElement svgelt, SVGTextContent context, int charnum)
static SVGPointgetStartPositionOfChar(Element elt, int charnum)
To implement {@link org.w3c.dom.svg.SVGTextContentElement#getStartPositionOfChar(int charnum)}.
static floatgetSubStringLength(Element elt, int charnum, int nchars)
To implement {@link org.w3c.dom.svg.SVGTextContentElement#selectSubString(int charnum, int nchars)}.
static voidselectSubString(Element elt, int charnum, int nchars)
To implement {@link org.w3c.dom.svg.SVGTextContentElement#selectSubString(int charnum, int nchars)}.

Method Detail

getCharNumAtPosition

public static int getCharNumAtPosition(Element elt, float x, float y)
To implement {@link org.w3c.dom.svg.SVGTextContentElement#getCharNumAtPosition(SVGPoint point)}.

getComputedTextLength

public static float getComputedTextLength(Element elt)
To implement {@link org.w3c.dom.svg.SVGTextContentElement#selectSubString(int charnum, int nchars)}.

getEndPos

protected static Point2D getEndPos(SVGOMElement svgelt, SVGTextContent context, int charnum)

getEndPositionOfChar

public static SVGPoint getEndPositionOfChar(Element elt, int charnum)
To implement {@link org.w3c.dom.svg.SVGTextContentElement#getEndPositionOfChar(int charnum)}.

getExtent

protected static Rectangle2D getExtent(SVGOMElement svgelt, SVGTextContent context, int charnum)

getExtentOfChar

public static SVGRect getExtentOfChar(Element elt, int charnum)
To implement {@link org.w3c.dom.svg.SVGTextContentElement#getExtentOfChar(int charnum)}.

getNumberOfChars

public static int getNumberOfChars(Element elt)
To implement {@link org.w3c.dom.svg.SVGTextContentElement#getNumberOfChars()}.

getRotationOfChar

public static float getRotationOfChar(Element elt, int charnum)
To implement {@link org.w3c.dom.svg.SVGTextContentElement#getRotationOfChar(int charnum)}.

getStartPos

protected static Point2D getStartPos(SVGOMElement svgelt, SVGTextContent context, int charnum)

getStartPositionOfChar

public static SVGPoint getStartPositionOfChar(Element elt, int charnum)
To implement {@link org.w3c.dom.svg.SVGTextContentElement#getStartPositionOfChar(int charnum)}.

getSubStringLength

public static float getSubStringLength(Element elt, int charnum, int nchars)
To implement {@link org.w3c.dom.svg.SVGTextContentElement#selectSubString(int charnum, int nchars)}.

selectSubString

public static void selectSubString(Element elt, int charnum, int nchars)
To implement {@link org.w3c.dom.svg.SVGTextContentElement#selectSubString(int charnum, int nchars)}.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.