Package org.apache.batik.anim.dom
Class SVGTextContentSupport
- java.lang.Object
-
- org.apache.batik.anim.dom.SVGTextContentSupport
-
public class SVGTextContentSupport extends java.lang.ObjectThis class provides support for the SVGTextContentElement interface.- Version:
- $Id: SVGTextContentSupport.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSVGTextContentSupport.SVGTextPoint
-
Constructor Summary
Constructors Constructor Description SVGTextContentSupport()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intgetCharNumAtPosition(org.w3c.dom.Element elt, float x, float y)To implementSVGTextContentElement.getCharNumAtPosition(SVGPoint point).static floatgetComputedTextLength(org.w3c.dom.Element elt)To implementSVGTextContentElement.selectSubString(int charnum, int nchars).protected static java.awt.geom.Point2DgetEndPos(SVGOMElement svgelt, SVGTextContent context, int charnum)static org.w3c.dom.svg.SVGPointgetEndPositionOfChar(org.w3c.dom.Element elt, int charnum)To implementSVGTextContentElement.getEndPositionOfChar(int charnum).protected static java.awt.geom.Rectangle2DgetExtent(SVGOMElement svgelt, SVGTextContent context, int charnum)static org.w3c.dom.svg.SVGRectgetExtentOfChar(org.w3c.dom.Element elt, int charnum)To implementSVGTextContentElement.getExtentOfChar(int charnum).static intgetNumberOfChars(org.w3c.dom.Element elt)To implementSVGTextContentElement.getNumberOfChars().static floatgetRotationOfChar(org.w3c.dom.Element elt, int charnum)To implementSVGTextContentElement.getRotationOfChar(int charnum).protected static java.awt.geom.Point2DgetStartPos(SVGOMElement svgelt, SVGTextContent context, int charnum)static org.w3c.dom.svg.SVGPointgetStartPositionOfChar(org.w3c.dom.Element elt, int charnum)To implementSVGTextContentElement.getStartPositionOfChar(int charnum).static floatgetSubStringLength(org.w3c.dom.Element elt, int charnum, int nchars)To implementSVGTextContentElement.selectSubString(int charnum, int nchars).static voidselectSubString(org.w3c.dom.Element elt, int charnum, int nchars)To implementSVGTextContentElement.selectSubString(int charnum, int nchars).
-
-
-
Method Detail
-
getNumberOfChars
public static int getNumberOfChars(org.w3c.dom.Element elt)
To implementSVGTextContentElement.getNumberOfChars().
-
getExtentOfChar
public static org.w3c.dom.svg.SVGRect getExtentOfChar(org.w3c.dom.Element elt, int charnum)To implementSVGTextContentElement.getExtentOfChar(int charnum).
-
getExtent
protected static java.awt.geom.Rectangle2D getExtent(SVGOMElement svgelt, SVGTextContent context, int charnum)
-
getStartPositionOfChar
public static org.w3c.dom.svg.SVGPoint getStartPositionOfChar(org.w3c.dom.Element elt, int charnum) throws org.w3c.dom.DOMExceptionTo implementSVGTextContentElement.getStartPositionOfChar(int charnum).- Throws:
org.w3c.dom.DOMException
-
getStartPos
protected static java.awt.geom.Point2D getStartPos(SVGOMElement svgelt, SVGTextContent context, int charnum)
-
getEndPositionOfChar
public static org.w3c.dom.svg.SVGPoint getEndPositionOfChar(org.w3c.dom.Element elt, int charnum) throws org.w3c.dom.DOMExceptionTo implementSVGTextContentElement.getEndPositionOfChar(int charnum).- Throws:
org.w3c.dom.DOMException
-
getEndPos
protected static java.awt.geom.Point2D getEndPos(SVGOMElement svgelt, SVGTextContent context, int charnum)
-
selectSubString
public static void selectSubString(org.w3c.dom.Element elt, int charnum, int nchars)To implementSVGTextContentElement.selectSubString(int charnum, int nchars).
-
getRotationOfChar
public static float getRotationOfChar(org.w3c.dom.Element elt, int charnum)To implementSVGTextContentElement.getRotationOfChar(int charnum).
-
getComputedTextLength
public static float getComputedTextLength(org.w3c.dom.Element elt)
To implementSVGTextContentElement.selectSubString(int charnum, int nchars).
-
getSubStringLength
public static float getSubStringLength(org.w3c.dom.Element elt, int charnum, int nchars)To implementSVGTextContentElement.selectSubString(int charnum, int nchars).
-
getCharNumAtPosition
public static int getCharNumAtPosition(org.w3c.dom.Element elt, float x, float y) throws org.w3c.dom.DOMExceptionTo implementSVGTextContentElement.getCharNumAtPosition(SVGPoint point).- Throws:
org.w3c.dom.DOMException
-
-