Class StylableExtensionElement

All Implemented Interfaces:
Serializable, AnimationTarget, XMLConstants, CSSNavigableNode, CSSStylableElement, NodeEventTarget, ExtendedNode, ExtendedTraitAccess, TraitAccess, NodeXBL, XBLManagerData, CSSConstants, SVGConstants, ElementTraversal, Element, EventTarget, Node, org.w3c.dom.svg.SVGElement, org.w3c.dom.svg.SVGStylable
Direct Known Subclasses:
GraphicsExtensionElement, PrefixableStylableExtensionElement

public abstract class StylableExtensionElement extends ExtensionElement implements CSSStylableElement, org.w3c.dom.svg.SVGStylable
This class implements the basic features an element must have in order to be usable as a foreign element within an SVGOMDocument, and the support for both the 'style' attribute and the style attributes (ie: fill="red", ...).
Version:
$Id: StylableExtensionElement.java 1808001 2017-09-11 09:51:29Z ssteiner $
See Also:
  • Field Details

    • cssBase

      protected ParsedURL cssBase
      The base URL.
    • computedStyleMap

      protected StyleMap computedStyleMap
      The computed style map.
  • Constructor Details

    • StylableExtensionElement

      protected StylableExtensionElement()
      Creates a new Element object.
    • StylableExtensionElement

      protected StylableExtensionElement(String name, AbstractDocument owner)
      Creates a new Element object.
      Parameters:
      name - The element name, for validation purposes.
      owner - The owner document.
  • Method Details

    • getComputedStyleMap

      public StyleMap getComputedStyleMap(String pseudoElement)
      Returns the computed style of this element/pseudo-element.
      Specified by:
      getComputedStyleMap in interface CSSStylableElement
    • setComputedStyleMap

      public void setComputedStyleMap(String pseudoElement, StyleMap sm)
      Sets the computed style of this element/pseudo-element.
      Specified by:
      setComputedStyleMap in interface CSSStylableElement
    • getXMLId

      public String getXMLId()
      Returns the ID of this element.
      Specified by:
      getXMLId in interface CSSStylableElement
    • getCSSClass

      public String getCSSClass()
      Returns the class of this element.
      Specified by:
      getCSSClass in interface CSSStylableElement
    • getCSSBase

      public ParsedURL getCSSBase()
      Returns the CSS base URL of this element.
      Specified by:
      getCSSBase in interface CSSStylableElement
    • isPseudoInstanceOf

      public boolean isPseudoInstanceOf(String pseudoClass)
      Tells whether this element is an instance of the given pseudo class.
      Specified by:
      isPseudoInstanceOf in interface CSSStylableElement
    • getOverrideStyleDeclarationProvider

      public StyleDeclarationProvider getOverrideStyleDeclarationProvider()
      Returns the object that gives access to the underlying StyleDeclaration for the override style of this element.
      Specified by:
      getOverrideStyleDeclarationProvider in interface CSSStylableElement
    • getStyle

      public CSSStyleDeclaration getStyle()
      DOM: Implements SVGStylable.getStyle().
      Specified by:
      getStyle in interface org.w3c.dom.svg.SVGStylable
    • getPresentationAttribute

      public CSSValue getPresentationAttribute(String name)
      DOM: Implements SVGStylable.getPresentationAttribute(String).
      Specified by:
      getPresentationAttribute in interface org.w3c.dom.svg.SVGStylable
    • getClassName

      public org.w3c.dom.svg.SVGAnimatedString getClassName()
      DOM: Implements SVGStylable.getClassName().
      Specified by:
      getClassName in interface org.w3c.dom.svg.SVGStylable