Package org.apache.batik.anim.dom
Class SVGTextContentSupport
java.lang.Object
org.apache.batik.anim.dom.SVGTextContentSupport
This class provides support for the SVGTextContentElement interface.
- Version:
- $Id: SVGTextContentSupport.java 1733416 2016-03-03 07:07:13Z gadams $
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
getCharNumAtPosition
(Element elt, float x, float y) To implementSVGTextContentElement.getCharNumAtPosition(SVGPoint point)
.static float
To implementSVGTextContentElement.selectSubString(int charnum, int nchars)
.protected static Point2D
getEndPos
(SVGOMElement svgelt, SVGTextContent context, int charnum) static org.w3c.dom.svg.SVGPoint
getEndPositionOfChar
(Element elt, int charnum) To implementSVGTextContentElement.getEndPositionOfChar(int charnum)
.protected static Rectangle2D
getExtent
(SVGOMElement svgelt, SVGTextContent context, int charnum) static org.w3c.dom.svg.SVGRect
getExtentOfChar
(Element elt, int charnum) To implementSVGTextContentElement.getExtentOfChar(int charnum)
.static int
getNumberOfChars
(Element elt) To implementSVGTextContentElement.getNumberOfChars()
.static float
getRotationOfChar
(Element elt, int charnum) To implementSVGTextContentElement.getRotationOfChar(int charnum)
.protected static Point2D
getStartPos
(SVGOMElement svgelt, SVGTextContent context, int charnum) static org.w3c.dom.svg.SVGPoint
getStartPositionOfChar
(Element elt, int charnum) To implementSVGTextContentElement.getStartPositionOfChar(int charnum)
.static float
getSubStringLength
(Element elt, int charnum, int nchars) To implementSVGTextContentElement.selectSubString(int charnum, int nchars)
.static void
selectSubString
(Element elt, int charnum, int nchars) To implementSVGTextContentElement.selectSubString(int charnum, int nchars)
.
-
Constructor Details
-
SVGTextContentSupport
public SVGTextContentSupport()
-
-
Method Details
-
getNumberOfChars
To implementSVGTextContentElement.getNumberOfChars()
. -
getExtentOfChar
To implementSVGTextContentElement.getExtentOfChar(int charnum)
. -
getExtent
-
getStartPositionOfChar
public static org.w3c.dom.svg.SVGPoint getStartPositionOfChar(Element elt, int charnum) throws DOMException To implementSVGTextContentElement.getStartPositionOfChar(int charnum)
.- Throws:
DOMException
-
getStartPos
-
getEndPositionOfChar
public static org.w3c.dom.svg.SVGPoint getEndPositionOfChar(Element elt, int charnum) throws DOMException To implementSVGTextContentElement.getEndPositionOfChar(int charnum)
.- Throws:
DOMException
-
getEndPos
-
selectSubString
To implementSVGTextContentElement.selectSubString(int charnum, int nchars)
. -
getRotationOfChar
To implementSVGTextContentElement.getRotationOfChar(int charnum)
. -
getComputedTextLength
To implementSVGTextContentElement.selectSubString(int charnum, int nchars)
. -
getSubStringLength
To implementSVGTextContentElement.selectSubString(int charnum, int nchars)
. -
getCharNumAtPosition
To implementSVGTextContentElement.getCharNumAtPosition(SVGPoint point)
.- Throws:
DOMException
-