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 aStyleDeclaration.- Version:
- $Id: CSSOMStoredStyleDeclaration.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
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
Fields Modifier and Type Field Description protected StyleDeclarationdeclarationThe object storing the properties.-
Fields 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
Constructors Constructor Description CSSOMStoredStyleDeclaration(CSSEngine eng)Creates a new CSSOMStoredStyleDeclaration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetLength()Returns the length of the declaration.StyleDeclarationgetStyleDeclaration()Returns the object storing the properties of this style declaration.java.lang.StringgetText()Returns the text of the declaration.ValuegetValue(java.lang.String name)Returns the current value associated with this object.booleanisImportant(java.lang.String name)Tells whether the given property is important.java.lang.Stringitem(int idx)Returns the value at the given.voidsetStyleDeclaration(StyleDeclaration sd)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 Detail
-
declaration
protected StyleDeclaration declaration
The object storing the properties.
-
-
Constructor Detail
-
CSSOMStoredStyleDeclaration
public CSSOMStoredStyleDeclaration(CSSEngine eng)
Creates a new CSSOMStoredStyleDeclaration.
-
-
Method Detail
-
getStyleDeclaration
public StyleDeclaration getStyleDeclaration()
Returns the object storing the properties of this style declaration.- Specified by:
getStyleDeclarationin interfaceStyleDeclarationProvider
-
setStyleDeclaration
public void setStyleDeclaration(StyleDeclaration sd)
Sets the object storing the properties of this style declaration.- Specified by:
setStyleDeclarationin interfaceStyleDeclarationProvider
-
getValue
public Value getValue(java.lang.String name)
Returns the current value associated with this object.- Specified by:
getValuein interfaceCSSOMStyleDeclaration.ValueProvider
-
isImportant
public boolean isImportant(java.lang.String name)
Tells whether the given property is important.- Specified by:
isImportantin interfaceCSSOMStyleDeclaration.ValueProvider
-
getText
public java.lang.String getText()
Returns the text of the declaration.- Specified by:
getTextin interfaceCSSOMStyleDeclaration.ValueProvider
-
getLength
public int getLength()
Returns the length of the declaration.- Specified by:
getLengthin interfaceCSSOMStyleDeclaration.ValueProvider- Specified by:
getLengthin interfaceorg.w3c.dom.css.CSSStyleDeclaration- Overrides:
getLengthin classCSSOMStyleDeclaration
-
item
public java.lang.String item(int idx)
Returns the value at the given.- Specified by:
itemin interfaceCSSOMStyleDeclaration.ValueProvider- Specified by:
itemin interfaceorg.w3c.dom.css.CSSStyleDeclaration- Overrides:
itemin classCSSOMStyleDeclaration
-
-