Class SVGTextContentSupport

java.lang.Object
org.apache.batik.anim.dom.SVGTextContentSupport

public class SVGTextContentSupport extends Object
This class provides support for the SVGTextContentElement interface.
  • Constructor Details

    • SVGTextContentSupport

      public SVGTextContentSupport()
  • Method Details

    • getNumberOfChars

      public static int getNumberOfChars(Element elt)
      To implement SVGTextContentElement.getNumberOfChars().
    • getExtentOfChar

      public static org.w3c.dom.svg.SVGRect getExtentOfChar(Element elt, int charnum)
      To implement SVGTextContentElement.getExtentOfChar(int charnum).
    • getExtent

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

      public static org.w3c.dom.svg.SVGPoint getStartPositionOfChar(Element elt, int charnum) throws DOMException
      To implement SVGTextContentElement.getStartPositionOfChar(int charnum).
      Throws:
      DOMException
    • getStartPos

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

      public static org.w3c.dom.svg.SVGPoint getEndPositionOfChar(Element elt, int charnum) throws DOMException
      To implement SVGTextContentElement.getEndPositionOfChar(int charnum).
      Throws:
      DOMException
    • getEndPos

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

      public static void selectSubString(Element elt, int charnum, int nchars)
      To implement SVGTextContentElement.selectSubString(int charnum, int nchars).
    • getRotationOfChar

      public static float getRotationOfChar(Element elt, int charnum)
      To implement SVGTextContentElement.getRotationOfChar(int charnum).
    • getComputedTextLength

      public static float getComputedTextLength(Element elt)
      To implement SVGTextContentElement.selectSubString(int charnum, int nchars).
    • getSubStringLength

      public static float getSubStringLength(Element elt, int charnum, int nchars)
      To implement SVGTextContentElement.selectSubString(int charnum, int nchars).
    • getCharNumAtPosition

      public static int getCharNumAtPosition(Element elt, float x, float y) throws DOMException
      To implement SVGTextContentElement.getCharNumAtPosition(SVGPoint point).
      Throws:
      DOMException