org.vectomatic.dom.svg.itf
Interface ISVGStylable

All Known Subinterfaces:
ISVGFilterPrimitiveStandardAttributes
All Known Implementing Classes:
OMSVGAElement, OMSVGAltGlyphElement, OMSVGCircleElement, OMSVGClipPathElement, OMSVGDefsElement, OMSVGDescElement, OMSVGEllipseElement, OMSVGFEBlendElement, OMSVGFEColorMatrixElement, OMSVGFEComponentTransferElement, OMSVGFECompositeElement, OMSVGFEConvolveMatrixElement, OMSVGFEDiffuseLightingElement, OMSVGFEDisplacementMapElement, OMSVGFEFloodElement, OMSVGFEGaussianBlurElement, OMSVGFEImageElement, OMSVGFEMergeElement, OMSVGFEMorphologyElement, OMSVGFEOffsetElement, OMSVGFESpecularLightingElement, OMSVGFETileElement, OMSVGFETurbulenceElement, OMSVGFilterElement, OMSVGFontElement, OMSVGForeignObjectElement, OMSVGGElement, OMSVGGlyphElement, OMSVGGlyphRefElement, OMSVGGradientElement, OMSVGImageElement, OMSVGLinearGradientElement, OMSVGLineElement, OMSVGMarkerElement, OMSVGMaskElement, OMSVGMissingGlyphElement, OMSVGPathElement, OMSVGPatternElement, OMSVGPolygonElement, OMSVGPolylineElement, OMSVGRadialGradientElement, OMSVGRectElement, OMSVGStopElement, OMSVGSVGElement, OMSVGSwitchElement, OMSVGSymbolElement, OMSVGTextContentElement, OMSVGTextElement, OMSVGTextPathElement, OMSVGTextPositioningElement, OMSVGTitleElement, OMSVGTRefElement, OMSVGTSpanElement, OMSVGUseElement, SVGButtonBase, SVGImage, SVGPushButton, SVGToggleButton

public interface ISVGStylable

The ISVGStylable interface is implemented on all objects corresponding to SVG elements that can have 'style' attribute, 'class' and presentation attributes specified on them. It is thus an ancestor interface for many of the interfaces defined in this specification.


Method Summary
 void addClassNameBaseVal(String className)
          Adds the specified class name to the baseVal CSS class name of this element
 OMSVGAnimatedString getClassName()
          Returns the CSS class name of this element.
 OMSVGStyle getStyle()
          Returns the CSS style of this element
 void removeClassNameBaseVal(String className)
          Removes the specified class name from the baseVal CSS class name of this element
 void replaceClassNameBaseVal(String oldClassName, String newClassName)
          Replaces the specified class name in the baseVal CSS class name of this element with a new class name
 void setClassNameBaseVal(String className)
          Sets the baseVal CSS class name of this element to the specified value
 

Method Detail

getStyle

OMSVGStyle getStyle()
Returns the CSS style of this element


getClassName

OMSVGAnimatedString getClassName()
Returns the CSS class name of this element. Note that in SVG, this class name can change over the time (there is a baseVal and an animVal).

Returns:
the CSS class name of this element

addClassNameBaseVal

void addClassNameBaseVal(String className)
Adds the specified class name to the baseVal CSS class name of this element

Parameters:
className - the class name to add

removeClassNameBaseVal

void removeClassNameBaseVal(String className)
Removes the specified class name from the baseVal CSS class name of this element

Parameters:
className - the class name to remove

replaceClassNameBaseVal

void replaceClassNameBaseVal(String oldClassName,
                             String newClassName)
Replaces the specified class name in the baseVal CSS class name of this element with a new class name

Parameters:
oldClassName - the class name to replace
newClassName - the replacement class name

setClassNameBaseVal

void setClassNameBaseVal(String className)
Sets the baseVal CSS class name of this element to the specified value

Parameters:
className - the class name


Copyright © 2012. All Rights Reserved.