org.apache.batik.dom.svg
Class SVGTextContentSupport

java.lang.Object
  |
  +--org.apache.batik.dom.svg.SVGTextContentSupport

public class SVGTextContentSupport
extends java.lang.Object

This class provides support for the SVGTextContentElement interface.


Constructor Summary
SVGTextContentSupport()
           
 
Method Summary
static int getCharNumAtPosition(Element elt, float x, float y)
          To implement SVGTextContentElement.getCharNumAtPosition(SVGPoint point).
static float getComputedTextLength(Element elt)
          To implement SVGTextContentElement.selectSubString(int charnum, int nchars).
static SVGPoint getEndPositionOfChar(Element elt, int charnum)
          To implement SVGTextContentElement.getEndPositionOfChar(int charnum).
static SVGRect getExtentOfChar(Element elt, int charnum)
          To implement SVGTextContentElement.getExtentOfChar(int charnum).
static int getNumberOfChars(Element elt)
          To implement SVGTextContentElement.getNumberOfChars().
static float getRotationOfChar(Element elt, int charnum)
          To implement SVGTextContentElement.getRotationOfChar(int charnum).
static SVGPoint getStartPositionOfChar(Element elt, int charnum)
          To implement SVGTextContentElement.getStartPositionOfChar(int charnum).
static float getSubStringLength(Element elt, int charnum, int nchars)
          To implement SVGTextContentElement.selectSubString(int charnum, int nchars).
static void selectSubString(Element elt, int charnum, int nchars)
          To implement SVGTextContentElement.selectSubString(int charnum, int nchars).
 
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 SVGTextContentElement.getNumberOfChars().


getExtentOfChar

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


getStartPositionOfChar

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

DOMException

getEndPositionOfChar

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

DOMException

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).

DOMException


Copyright © 2002 Apache Software Foundation. All Rights Reserved.