org.apache.batik.dom.svg

Class SVGOMTextContentElement

public abstract class SVGOMTextContentElement extends SVGStylableElement

This class provides a common superclass for all graphics elements.
Field Summary
protected SVGOMAnimatedBooleanexternalResourcesRequired
The 'externalResourcesRequired' attribute value.
protected SVGOMAnimatedEnumerationlengthAdjust
The 'lengthAdjust' attribute value.
protected static String[]LENGTH_ADJUST_VALUES
The 'lengthAdjust' attribute values.
protected AbstractSVGAnimatedLengthtextLength
The 'textLength' attribute value.
protected static DoublyIndexedTablexmlTraitInformation
Table mapping XML attribute names to TraitInformation objects.
Constructor Summary
protected SVGOMTextContentElement()
Creates a new SVGOMTextContentElement.
protected SVGOMTextContentElement(String prefix, AbstractDocument owner)
Creates a new SVGOMTextContentElement object.
Method Summary
intgetCharNumAtPosition(SVGPoint point)
DOM: Implements {@link org.w3c.dom.svg.SVGTextContentElement#getCharNumAtPosition(SVGPoint)}.
floatgetComputedTextLength()
DOM: Implements {@link org.w3c.dom.svg.SVGTextContentElement#getComputedTextLength()}.
SVGPointgetEndPositionOfChar(int charnum)
DOM: Implements {@link org.w3c.dom.svg.SVGTextContentElement#getEndPositionOfChar(int)}.
SVGRectgetExtentOfChar(int charnum)
DOM: Implements {@link org.w3c.dom.svg.SVGTextContentElement#getExtentOfChar(int)}.
SVGAnimatedBooleangetExternalResourcesRequired()
DOM: Implements {@link org.w3c.dom.svg.SVGExternalResourcesRequired#getExternalResourcesRequired()}.
SVGAnimatedEnumerationgetLengthAdjust()
DOM: Implements {@link org.w3c.dom.svg.SVGTextContentElement#getLengthAdjust()}.
intgetNumberOfChars()
DOM: Implements {@link org.w3c.dom.svg.SVGTextContentElement#getNumberOfChars()}.
SVGStringListgetRequiredExtensions()
DOM: Implements {@link org.w3c.dom.svg.SVGTests#getRequiredExtensions()}.
SVGStringListgetRequiredFeatures()
DOM: Implements {@link org.w3c.dom.svg.SVGTests#getRequiredFeatures()}.
floatgetRotationOfChar(int charnum)
DOM: Implements {@link org.w3c.dom.svg.SVGTextContentElement#getRotationOfChar(int)}.
SVGPointgetStartPositionOfChar(int charnum)
DOM: Implements {@link org.w3c.dom.svg.SVGTextContentElement#getStartPositionOfChar(int)}.
floatgetSubStringLength(int charnum, int nchars)
DOM: Implements {@link org.w3c.dom.svg.SVGTextContentElement#getSubStringLength(int,int)}.
SVGStringListgetSystemLanguage()
DOM: Implements {@link org.w3c.dom.svg.SVGTests#getSystemLanguage()}.
SVGAnimatedLengthgetTextLength()
DOM: Implements {@link org.w3c.dom.svg.SVGTextContentElement#getTextLength()}.
protected DoublyIndexedTablegetTraitInformationTable()
Returns the table of TraitInformation objects for this element.
StringgetXMLlang()
DOM: Returns the xml:lang attribute value.
StringgetXMLspace()
DOM: Returns the xml:space attribute value.
booleanhasExtension(String extension)
DOM: Implements {@link org.w3c.dom.svg.SVGTests#hasExtension(String)}.
protected voidinitializeAllLiveAttributes()
Initializes all live attributes for this element.
voidselectSubString(int charnum, int nchars)
DOM: Implements {@link org.w3c.dom.svg.SVGTextContentElement#selectSubString(int,int)}.
voidsetXMLlang(String lang)
DOM: Sets the xml:lang attribute value.
voidsetXMLspace(String space)
DOM: Sets the xml:space attribute value.

Field Detail

externalResourcesRequired

protected SVGOMAnimatedBoolean externalResourcesRequired
The 'externalResourcesRequired' attribute value.

lengthAdjust

protected SVGOMAnimatedEnumeration lengthAdjust
The 'lengthAdjust' attribute value.

LENGTH_ADJUST_VALUES

protected static final String[] LENGTH_ADJUST_VALUES
The 'lengthAdjust' attribute values.

textLength

protected AbstractSVGAnimatedLength textLength
The 'textLength' attribute value.

xmlTraitInformation

protected static DoublyIndexedTable xmlTraitInformation
Table mapping XML attribute names to TraitInformation objects.

Constructor Detail

SVGOMTextContentElement

protected SVGOMTextContentElement()
Creates a new SVGOMTextContentElement.

SVGOMTextContentElement

protected SVGOMTextContentElement(String prefix, AbstractDocument owner)
Creates a new SVGOMTextContentElement object.

Parameters: prefix The namespace prefix. owner The owner document.

Method Detail

getCharNumAtPosition

public int getCharNumAtPosition(SVGPoint point)
DOM: Implements {@link org.w3c.dom.svg.SVGTextContentElement#getCharNumAtPosition(SVGPoint)}.

getComputedTextLength

public float getComputedTextLength()
DOM: Implements {@link org.w3c.dom.svg.SVGTextContentElement#getComputedTextLength()}.

getEndPositionOfChar

public SVGPoint getEndPositionOfChar(int charnum)
DOM: Implements {@link org.w3c.dom.svg.SVGTextContentElement#getEndPositionOfChar(int)}.

getExtentOfChar

public SVGRect getExtentOfChar(int charnum)
DOM: Implements {@link org.w3c.dom.svg.SVGTextContentElement#getExtentOfChar(int)}.

getExternalResourcesRequired

public SVGAnimatedBoolean getExternalResourcesRequired()
DOM: Implements {@link org.w3c.dom.svg.SVGExternalResourcesRequired#getExternalResourcesRequired()}.

getLengthAdjust

public SVGAnimatedEnumeration getLengthAdjust()
DOM: Implements {@link org.w3c.dom.svg.SVGTextContentElement#getLengthAdjust()}.

getNumberOfChars

public int getNumberOfChars()
DOM: Implements {@link org.w3c.dom.svg.SVGTextContentElement#getNumberOfChars()}.

getRequiredExtensions

public SVGStringList getRequiredExtensions()
DOM: Implements {@link org.w3c.dom.svg.SVGTests#getRequiredExtensions()}.

getRequiredFeatures

public SVGStringList getRequiredFeatures()
DOM: Implements {@link org.w3c.dom.svg.SVGTests#getRequiredFeatures()}.

getRotationOfChar

public float getRotationOfChar(int charnum)
DOM: Implements {@link org.w3c.dom.svg.SVGTextContentElement#getRotationOfChar(int)}.

getStartPositionOfChar

public SVGPoint getStartPositionOfChar(int charnum)
DOM: Implements {@link org.w3c.dom.svg.SVGTextContentElement#getStartPositionOfChar(int)}.

getSubStringLength

public float getSubStringLength(int charnum, int nchars)
DOM: Implements {@link org.w3c.dom.svg.SVGTextContentElement#getSubStringLength(int,int)}.

getSystemLanguage

public SVGStringList getSystemLanguage()
DOM: Implements {@link org.w3c.dom.svg.SVGTests#getSystemLanguage()}.

getTextLength

public SVGAnimatedLength getTextLength()
DOM: Implements {@link org.w3c.dom.svg.SVGTextContentElement#getTextLength()}.

getTraitInformationTable

protected DoublyIndexedTable getTraitInformationTable()
Returns the table of TraitInformation objects for this element.

getXMLlang

public String getXMLlang()
DOM: Returns the xml:lang attribute value.

getXMLspace

public String getXMLspace()
DOM: Returns the xml:space attribute value.

hasExtension

public boolean hasExtension(String extension)
DOM: Implements {@link org.w3c.dom.svg.SVGTests#hasExtension(String)}.

initializeAllLiveAttributes

protected void initializeAllLiveAttributes()
Initializes all live attributes for this element.

selectSubString

public void selectSubString(int charnum, int nchars)
DOM: Implements {@link org.w3c.dom.svg.SVGTextContentElement#selectSubString(int,int)}.

setXMLlang

public void setXMLlang(String lang)
DOM: Sets the xml:lang attribute value.

setXMLspace

public void setXMLspace(String space)
DOM: Sets the xml:space attribute value.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.