Package org.apache.batik.css.dom
Class CSSOMStoredStyleDeclaration
java.lang.Object
org.apache.batik.css.dom.CSSOMStyleDeclaration
org.apache.batik.css.dom.CSSOMSVGStyleDeclaration
org.apache.batik.css.dom.CSSOMStoredStyleDeclaration
- All Implemented Interfaces:
CSSOMStyleDeclaration.ModificationHandler
,CSSOMStyleDeclaration.ValueProvider
,StyleDeclarationProvider
,org.w3c.dom.css.CSSStyleDeclaration
- Direct Known Subclasses:
SVGStylableElement.OverrideStyleDeclaration
,SVGStylableElement.StyleDeclaration
public abstract class CSSOMStoredStyleDeclaration
extends CSSOMSVGStyleDeclaration
implements CSSOMStyleDeclaration.ValueProvider, CSSOMStyleDeclaration.ModificationHandler, StyleDeclarationProvider
A class for SVG style declarations that store their properties in a
StyleDeclaration
.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.batik.css.dom.CSSOMSVGStyleDeclaration
CSSOMSVGStyleDeclaration.StyleDeclarationColorValue, CSSOMSVGStyleDeclaration.StyleDeclarationPaintValue
Nested classes/interfaces inherited from class org.apache.batik.css.dom.CSSOMStyleDeclaration
CSSOMStyleDeclaration.ModificationHandler, CSSOMStyleDeclaration.StyleDeclarationValue, CSSOMStyleDeclaration.ValueProvider
-
Field Summary
FieldsFields inherited from class org.apache.batik.css.dom.CSSOMSVGStyleDeclaration
cssEngine
Fields inherited from class org.apache.batik.css.dom.CSSOMStyleDeclaration
handler, parentRule, valueProvider, values
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new CSSOMStoredStyleDeclaration. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the length of the declaration.Returns the object storing the properties of this style declaration.getText()
Returns the text of the declaration.Returns the current value associated with this object.boolean
isImportant
(String name) Tells whether the given property is important.item
(int idx) Returns the value at the given.void
Sets the object storing the properties of this style declaration.Methods inherited from class org.apache.batik.css.dom.CSSOMSVGStyleDeclaration
createCSSValue
Methods inherited from class org.apache.batik.css.dom.CSSOMStyleDeclaration
getCssText, getCSSValue, getParentRule, getPropertyCSSValue, getPropertyPriority, getPropertyValue, removeProperty, setCssText, setModificationHandler, setProperty
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.batik.css.dom.CSSOMStyleDeclaration.ModificationHandler
propertyChanged, propertyRemoved, textChanged
-
Field Details
-
declaration
The object storing the properties.
-
-
Constructor Details
-
CSSOMStoredStyleDeclaration
Creates a new CSSOMStoredStyleDeclaration.
-
-
Method Details
-
getStyleDeclaration
Returns the object storing the properties of this style declaration.- Specified by:
getStyleDeclaration
in interfaceStyleDeclarationProvider
-
setStyleDeclaration
Sets the object storing the properties of this style declaration.- Specified by:
setStyleDeclaration
in interfaceStyleDeclarationProvider
-
getValue
Returns the current value associated with this object.- Specified by:
getValue
in interfaceCSSOMStyleDeclaration.ValueProvider
-
isImportant
Tells whether the given property is important.- Specified by:
isImportant
in interfaceCSSOMStyleDeclaration.ValueProvider
-
getText
Returns the text of the declaration.- Specified by:
getText
in interfaceCSSOMStyleDeclaration.ValueProvider
-
getLength
public int getLength()Returns the length of the declaration.- Specified by:
getLength
in interfaceCSSOMStyleDeclaration.ValueProvider
- Specified by:
getLength
in interfaceorg.w3c.dom.css.CSSStyleDeclaration
- Overrides:
getLength
in classCSSOMStyleDeclaration
-
item
Returns the value at the given.- Specified by:
item
in interfaceCSSOMStyleDeclaration.ValueProvider
- Specified by:
item
in interfaceorg.w3c.dom.css.CSSStyleDeclaration
- Overrides:
item
in classCSSOMStyleDeclaration
-