Interface SVGStylable

All Known Subinterfaces:
SVGAElement, SVGAltGlyphElement, SVGCircleElement, SVGClipPathElement, SVGDefsElement, SVGDescElement, SVGEllipseElement, SVGFEBlendElement, SVGFEColorMatrixElement, SVGFEComponentTransferElement, SVGFECompositeElement, SVGFEConvolveMatrixElement, SVGFEDiffuseLightingElement, SVGFEDisplacementMapElement, SVGFEFloodElement, SVGFEGaussianBlurElement, SVGFEImageElement, SVGFEMergeElement, SVGFEMorphologyElement, SVGFEOffsetElement, SVGFESpecularLightingElement, SVGFETileElement, SVGFETurbulenceElement, SVGFilterElement, SVGFilterPrimitiveStandardAttributes, SVGFontElement, SVGForeignObjectElement, SVGGElement, SVGGeometryElement, SVGGlyphElement, SVGGlyphRefElement, SVGGradientElement, SVGGraphicsElement, SVGImageElement, SVGLinearGradientElement, SVGLineElement, SVGMarkerElement, SVGMaskElement, SVGMissingGlyphElement, SVGPathElement, SVGPatternElement, SVGPolygonElement, SVGPolylineElement, SVGRadialGradientElement, SVGRectElement, SVGStopElement, SVGSVGElement, SVGSwitchElement, SVGSymbolElement, SVGTextContentElement, SVGTextElement, SVGTextPathElement, SVGTextPositioningElement, SVGTitleElement, SVGTRefElement, SVGTSpanElement, SVGUseElement

public interface SVGStylable
This interface is implemented on all objects corresponding to SVG elements that can have style, class and presentation attributes specified on them.
  • Method Details

    • getClassName

      SVGAnimatedString getClassName()
      Gets the attribute class on this element.
      Returns:
      the attribute class.
    • getStyle

      org.w3c.css.om.CSSStyleDeclaration getStyle()
      Gets the inline style of this element.
      Returns:
      the inline style.
    • getPresentationAttribute

      @Deprecated default CSSValue getPresentationAttribute(String name)
      Deprecated.
      Returns the base value of a given presentation attribute as an object.
      Parameters:
      name - the presentation attribute.
      Returns:
      the given presentation attribute as a CSSValue, null if no value was defined for the given attribute or this implementation does not support the CSSValue API.
    • getPresentationAttributeValue

      default org.w3c.css.om.typed.CSSStyleValue getPresentationAttributeValue(String name)
      Returns the base value of a given presentation attribute as an object.
      Parameters:
      name - the presentation attribute.
      Returns:
      the given presentation attribute as a CSSStyleValue, null if no value was defined for the given attribute or this implementation does not support the CSSStyleValue API.