org.apache.batik.dom.svg

Class SVGOMUseElement

public class SVGOMUseElement extends SVGURIReferenceGraphicsElement implements SVGUseElement

This class implements {@link org.w3c.dom.svg.SVGUseElement}.
Field Summary
protected static AttributeInitializerattributeInitializer
The attribute initializer.
protected SVGOMAnimatedLengthheight
The 'height' attribute value.
protected SVGOMUseShadowRootshadowTree
Store the shadow tree of the use element.
protected SVGOMAnimatedLengthwidth
The 'width' attribute value.
protected SVGOMAnimatedLengthx
The 'x' attribute value.
protected static DoublyIndexedTablexmlTraitInformation
Table mapping XML attribute names to TraitInformation objects.
protected SVGOMAnimatedLengthy
The 'y' attribute value.
Constructor Summary
protected SVGOMUseElement()
Creates a new SVGOMUseElement object.
SVGOMUseElement(String prefix, AbstractDocument owner)
Creates a new SVGOMUseElement object.
Method Summary
SVGElementInstancegetAnimatedInstanceRoot()
DOM: Implements {@link SVGUseElement#getAnimatedInstanceRoot()}.
protected AttributeInitializergetAttributeInitializer()
Returns the AttributeInitializer for this element type.
NodegetCSSFirstChild()
Returns the CSS first child node of this node.
NodegetCSSLastChild()
Returns the CSS last child of this stylable element.
SVGAnimatedLengthgetHeight()
DOM: Implements {@link SVGUseElement#getHeight()}.
SVGElementInstancegetInstanceRoot()
DOM: Implements {@link SVGUseElement#getInstanceRoot()}.
StringgetLocalName()
DOM: Implements {@link Node#getLocalName()}.
protected DoublyIndexedTablegetTraitInformationTable()
Returns the table of TraitInformation objects for this element.
SVGAnimatedLengthgetWidth()
DOM: Implements {@link SVGUseElement#getWidth()}.
SVGAnimatedLengthgetX()
DOM: Implements {@link SVGUseElement#getX()}.
SVGAnimatedLengthgetY()
DOM: Implements {@link SVGUseElement#getY()}.
protected voidinitializeAllLiveAttributes()
Initializes all live attributes for this element.
booleanisHiddenFromSelectors()
Returns whether this node is the root of a (conceptual) hidden tree that selectors will not work across.
protected NodenewNode()
Returns a new uninitialized instance of this object's class.
voidsetUseShadowTree(SVGOMUseShadowRoot r)
Sets the shadow tree for this 'use' element.

Field Detail

attributeInitializer

protected static final AttributeInitializer attributeInitializer
The attribute initializer.

height

protected SVGOMAnimatedLength height
The 'height' attribute value.

shadowTree

protected SVGOMUseShadowRoot shadowTree
Store the shadow tree of the use element.

width

protected SVGOMAnimatedLength width
The 'width' attribute value.

x

protected SVGOMAnimatedLength x
The 'x' attribute value.

xmlTraitInformation

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

y

protected SVGOMAnimatedLength y
The 'y' attribute value.

Constructor Detail

SVGOMUseElement

protected SVGOMUseElement()
Creates a new SVGOMUseElement object.

SVGOMUseElement

public SVGOMUseElement(String prefix, AbstractDocument owner)
Creates a new SVGOMUseElement object.

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

Method Detail

getAnimatedInstanceRoot

public SVGElementInstance getAnimatedInstanceRoot()
DOM: Implements {@link SVGUseElement#getAnimatedInstanceRoot()}.

getAttributeInitializer

protected AttributeInitializer getAttributeInitializer()
Returns the AttributeInitializer for this element type.

Returns: null if this element has no attribute with a default value.

getCSSFirstChild

public Node getCSSFirstChild()
Returns the CSS first child node of this node.

getCSSLastChild

public Node getCSSLastChild()
Returns the CSS last child of this stylable element.

getHeight

public SVGAnimatedLength getHeight()
DOM: Implements {@link SVGUseElement#getHeight()}.

getInstanceRoot

public SVGElementInstance getInstanceRoot()
DOM: Implements {@link SVGUseElement#getInstanceRoot()}.

getLocalName

public String getLocalName()
DOM: Implements {@link Node#getLocalName()}.

getTraitInformationTable

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

getWidth

public SVGAnimatedLength getWidth()
DOM: Implements {@link SVGUseElement#getWidth()}.

getX

public SVGAnimatedLength getX()
DOM: Implements {@link SVGUseElement#getX()}.

getY

public SVGAnimatedLength getY()
DOM: Implements {@link SVGUseElement#getY()}.

initializeAllLiveAttributes

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

isHiddenFromSelectors

public boolean isHiddenFromSelectors()
Returns whether this node is the root of a (conceptual) hidden tree that selectors will not work across. Returns true here, since CSS selectors cannot work in the conceptual cloned sub-tree of the content referenced by the 'use' element.

newNode

protected Node newNode()
Returns a new uninitialized instance of this object's class.

setUseShadowTree

public void setUseShadowTree(SVGOMUseShadowRoot r)
Sets the shadow tree for this 'use' element.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.