Class SVGGraphicsElement

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
Direct Known Subclasses:
BindableElement, SVGOMCircleElement, SVGOMClipPathElement, SVGOMDefsElement, SVGOMEllipseElement, SVGOMFlowRootElement, SVGOMForeignObjectElement, SVGOMGElement, SVGOMLineElement, SVGOMMaskElement, SVGOMPathElement, SVGOMRectElement, SVGOMSwitchElement, SVGOMToBeImplementedElement, SVGPointShapeElement, SVGURIReferenceGraphicsElement

public abstract class SVGGraphicsElement extends SVGStylableElement implements SVGMotionAnimatableElement
This class provides a common superclass for all graphics elements.
See Also:
  • Field Details

    • xmlTraitInformation

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

      protected SVGOMAnimatedTransformList transform
      The 'transform' attribute value.
    • externalResourcesRequired

      protected SVGOMAnimatedBoolean externalResourcesRequired
      The 'externalResourcesRequired' attribute value.
    • motionTransform

      protected AffineTransform motionTransform
      Supplemental transformation due to motion animation.
  • Constructor Details

    • SVGGraphicsElement

      protected SVGGraphicsElement()
      Creates a new SVGGraphicsElement.
    • SVGGraphicsElement

      protected SVGGraphicsElement(String prefix, AbstractDocument owner)
      Creates a new SVGGraphicsElement 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 SVGStylableElement
    • getTraitInformationTable

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

      public org.w3c.dom.svg.SVGElement getNearestViewportElement()
      DOM: Implements SVGLocatable.getNearestViewportElement().
    • getFarthestViewportElement

      public org.w3c.dom.svg.SVGElement getFarthestViewportElement()
      DOM: Implements SVGLocatable.getFarthestViewportElement().
    • getBBox

      public org.w3c.dom.svg.SVGRect getBBox()
      DOM: Implements SVGLocatable.getBBox().
    • getCTM

      public org.w3c.dom.svg.SVGMatrix getCTM()
      DOM: Implements SVGLocatable.getCTM().
    • getScreenCTM

      public org.w3c.dom.svg.SVGMatrix getScreenCTM()
      DOM: Implements SVGLocatable.getScreenCTM().
    • getTransformToElement

      public org.w3c.dom.svg.SVGMatrix getTransformToElement(org.w3c.dom.svg.SVGElement element) throws org.w3c.dom.svg.SVGException
      DOM: Implements SVGLocatable.getTransformToElement(SVGElement).
      Throws:
      org.w3c.dom.svg.SVGException
    • getTransform

      public org.w3c.dom.svg.SVGAnimatedTransformList getTransform()
      DOM: Implements SVGTransformable.getTransform().
    • getExternalResourcesRequired

      public org.w3c.dom.svg.SVGAnimatedBoolean getExternalResourcesRequired()
      DOM: Implements SVGExternalResourcesRequired.getExternalResourcesRequired().
    • getXMLlang

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

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

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

      public void setXMLspace(String space)
      DOM: Sets the xml:space attribute value.
    • getRequiredFeatures

      public org.w3c.dom.svg.SVGStringList getRequiredFeatures()
      DOM: Implements SVGTests.getRequiredFeatures().
    • getRequiredExtensions

      public org.w3c.dom.svg.SVGStringList getRequiredExtensions()
      DOM: Implements SVGTests.getRequiredExtensions().
    • getSystemLanguage

      public org.w3c.dom.svg.SVGStringList getSystemLanguage()
      DOM: Implements SVGTests.getSystemLanguage().
    • hasExtension

      public boolean hasExtension(String extension)
      DOM: Implements SVGTests.hasExtension(String).
    • getMotionTransform

      public AffineTransform getMotionTransform()
      Returns the AffineTransform representing the current motion animation for this element.
      Specified by:
      getMotionTransform in interface SVGMotionAnimatableElement
    • updateOtherValue

      public void updateOtherValue(String type, AnimatableValue val)
      Updates a 'other' animation value in this target.
      Specified by:
      updateOtherValue in interface AnimationTarget
      Overrides:
      updateOtherValue in class SVGOMElement