Class SVGOMUseElement

All Implemented Interfaces:
Serializable, AnimationTarget, XMLConstants, CSSNavigableNode, CSSStylableElement, NodeEventTarget, ExtendedNode, ExtendedTraitAccess, SVGMotionAnimatableElement, TraitAccess, NodeXBL, XBLManagerData, CSSConstants, SVGConstants, ElementTraversal, Element, EventTarget, Node, org.w3c.dom.svg.SVGElement, org.w3c.dom.svg.SVGExternalResourcesRequired, org.w3c.dom.svg.SVGLangSpace, org.w3c.dom.svg.SVGLocatable, org.w3c.dom.svg.SVGStylable, org.w3c.dom.svg.SVGTests, org.w3c.dom.svg.SVGTransformable, org.w3c.dom.svg.SVGURIReference, org.w3c.dom.svg.SVGUseElement

public class SVGOMUseElement extends SVGURIReferenceGraphicsElement implements org.w3c.dom.svg.SVGUseElement
This class implements SVGUseElement.
See Also:
  • Field Details

  • Constructor Details

    • 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 Details

    • initializeAllLiveAttributes

      protected void initializeAllLiveAttributes()
      Initializes all live attributes for this element.
      Overrides:
      initializeAllLiveAttributes in class SVGURIReferenceGraphicsElement
    • getLocalName

      public String getLocalName()
      DOM: Implements Node.getLocalName().
      Specified by:
      getLocalName in interface Node
      Overrides:
      getLocalName in class AbstractNode
    • getX

      public org.w3c.dom.svg.SVGAnimatedLength getX()
      DOM: Implements SVGUseElement.getX().
      Specified by:
      getX in interface org.w3c.dom.svg.SVGUseElement
    • getY

      public org.w3c.dom.svg.SVGAnimatedLength getY()
      DOM: Implements SVGUseElement.getY().
      Specified by:
      getY in interface org.w3c.dom.svg.SVGUseElement
    • getWidth

      public org.w3c.dom.svg.SVGAnimatedLength getWidth()
      DOM: Implements SVGUseElement.getWidth().
      Specified by:
      getWidth in interface org.w3c.dom.svg.SVGUseElement
    • getHeight

      public org.w3c.dom.svg.SVGAnimatedLength getHeight()
      DOM: Implements SVGUseElement.getHeight().
      Specified by:
      getHeight in interface org.w3c.dom.svg.SVGUseElement
    • getInstanceRoot

      public org.w3c.dom.svg.SVGElementInstance getInstanceRoot()
      DOM: Implements SVGUseElement.getInstanceRoot().
      Specified by:
      getInstanceRoot in interface org.w3c.dom.svg.SVGUseElement
    • getAnimatedInstanceRoot

      public org.w3c.dom.svg.SVGElementInstance getAnimatedInstanceRoot()
      DOM: Implements SVGUseElement.getAnimatedInstanceRoot().
      Specified by:
      getAnimatedInstanceRoot in interface org.w3c.dom.svg.SVGUseElement
    • getCSSFirstChild

      public Node getCSSFirstChild()
      Returns the CSS first child node of this node.
      Specified by:
      getCSSFirstChild in interface CSSNavigableNode
      Overrides:
      getCSSFirstChild in class AbstractElement
    • getCSSLastChild

      public Node getCSSLastChild()
      Returns the CSS last child of this stylable element.
      Specified by:
      getCSSLastChild in interface CSSNavigableNode
      Overrides:
      getCSSLastChild in class AbstractElement
    • 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.
      Specified by:
      isHiddenFromSelectors in interface CSSNavigableNode
      Overrides:
      isHiddenFromSelectors in class AbstractElement
    • setUseShadowTree

      public void setUseShadowTree(SVGOMUseShadowRoot r)
      Sets the shadow tree for this 'use' element.
    • getAttributeInitializer

      protected AttributeInitializer getAttributeInitializer()
      Returns the AttributeInitializer for this element type.
      Overrides:
      getAttributeInitializer in class AbstractElement
      Returns:
      null if this element has no attribute with a default value.
    • newNode

      protected Node newNode()
      Returns a new uninitialized instance of this object's class.
      Specified by:
      newNode in class AbstractNode
    • getTraitInformationTable

      protected DoublyIndexedTable getTraitInformationTable()
      Returns the table of TraitInformation objects for this element.
      Overrides:
      getTraitInformationTable in class SVGURIReferenceGraphicsElement