- 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 Summary
Modifier and TypeMethodDescriptionGets the attributeclasson this element.default CSSValueDeprecated.default org.w3c.css.om.typed.CSSStyleValueReturns the base value of a given presentation attribute as an object.org.w3c.css.om.CSSStyleDeclarationgetStyle()Gets the inline style of this element.
-
Method Details
-
getClassName
SVGAnimatedString getClassName()Gets the attributeclasson 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.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,nullif no value was defined for the given attribute or this implementation does not support theCSSValueAPI.
-
getPresentationAttributeValue
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,nullif no value was defined for the given attribute or this implementation does not support theCSSStyleValueAPI.
-