public interface ISVGStylable
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.Modifier and Type | Method and Description |
---|---|
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
|
OMSVGStyle getStyle()
OMSVGAnimatedString getClassName()
void addClassNameBaseVal(String className)
className
- the class name to addvoid removeClassNameBaseVal(String className)
className
- the class name to removevoid replaceClassNameBaseVal(String oldClassName, String newClassName)
oldClassName
- the class name to replacenewClassName
- the replacement class namevoid setClassNameBaseVal(String className)
className
- the class nameCopyright © 2018. All Rights Reserved.