org.apache.batik.dom.svg
Class SVGTextContentSupport

java.lang.Object
  extended by org.apache.batik.dom.svg.SVGTextContentSupport

public class SVGTextContentSupport
extends Object

This class provides support for the SVGTextContentElement interface.


Nested Class Summary
static class SVGTextContentSupport.SVGTextPoint
           
 
Constructor Summary
SVGTextContentSupport()
           
 
Method Summary
static int getCharNumAtPosition(Element elt, float x, float y)
          To implement svg.SVGTextContentElement.
static float getComputedTextLength(Element elt)
          To implement svg.SVGTextContentElement.
protected static Point2D getEndPos(SVGOMElement svgelt, SVGTextContent context, int charnum)
           
static SVGPoint getEndPositionOfChar(Element elt, int charnum)
          To implement svg.SVGTextContentElement.
protected static Rectangle2D getExtent(SVGOMElement svgelt, SVGTextContent context, int charnum)
           
static SVGRect getExtentOfChar(Element elt, int charnum)
          To implement svg.SVGTextContentElement.
static int getNumberOfChars(Element elt)
          To implement svg.SVGTextContentElement.
static float getRotationOfChar(Element elt, int charnum)
          To implement svg.SVGTextContentElement.
protected static Point2D getStartPos(SVGOMElement svgelt, SVGTextContent context, int charnum)
           
static SVGPoint getStartPositionOfChar(Element elt, int charnum)
          To implement svg.SVGTextContentElement.
static float getSubStringLength(Element elt, int charnum, int nchars)
          To implement svg.SVGTextContentElement.
static void selectSubString(Element elt, int charnum, int nchars)
          To implement svg.SVGTextContentElement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SVGTextContentSupport

public SVGTextContentSupport()
Method Detail

getNumberOfChars

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


getExtentOfChar

public static SVGRect getExtentOfChar(Element elt,
                                      int charnum)
To implement svg.SVGTextContentElement.


getExtent

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

getStartPositionOfChar

public static SVGPoint getStartPositionOfChar(Element elt,
                                              int charnum)
                                       throws DOMException
To implement svg.SVGTextContentElement.

Throws:
DOMException

getStartPos

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

getEndPositionOfChar

public static SVGPoint getEndPositionOfChar(Element elt,
                                            int charnum)
                                     throws DOMException
To implement svg.SVGTextContentElement.

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 svg.SVGTextContentElement.


getRotationOfChar

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


getComputedTextLength

public static float getComputedTextLength(Element elt)
To implement svg.SVGTextContentElement.


getSubStringLength

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


getCharNumAtPosition

public static int getCharNumAtPosition(Element elt,
                                       float x,
                                       float y)
                                throws DOMException
To implement svg.SVGTextContentElement.

Throws:
DOMException


Copyright ? 2008 Apache Software Foundation. All Rights Reserved.