org.apache.batik.css.dom

Class CSSOMStoredStyleDeclaration

public abstract class CSSOMStoredStyleDeclaration extends CSSOMSVGStyleDeclaration implements CSSOMStyleDeclaration.ValueProvider, CSSOMStyleDeclaration.ModificationHandler, StyleDeclarationProvider

A class for SVG style declarations that store their properties in a {@link org.apache.batik.css.engine.StyleDeclaration}.
Field Summary
protected StyleDeclarationdeclaration
The object storing the properties.
Constructor Summary
CSSOMStoredStyleDeclaration(CSSEngine eng)
Creates a new CSSOMStoredStyleDeclaration.
Method Summary
intgetLength()
Returns the length of the declaration.
StyleDeclarationgetStyleDeclaration()
Returns the object storing the properties of this style declaration.
StringgetText()
Returns the text of the declaration.
ValuegetValue(String name)
Returns the current value associated with this object.
booleanisImportant(String name)
Tells whether the given property is important.
Stringitem(int idx)
Returns the value at the given.
voidsetStyleDeclaration(StyleDeclaration sd)
Sets the object storing the properties of this style declaration.

Field Detail

declaration

protected StyleDeclaration declaration
The object storing the properties.

Constructor Detail

CSSOMStoredStyleDeclaration

public CSSOMStoredStyleDeclaration(CSSEngine eng)
Creates a new CSSOMStoredStyleDeclaration.

Method Detail

getLength

public int getLength()
Returns the length of the declaration.

getStyleDeclaration

public StyleDeclaration getStyleDeclaration()
Returns the object storing the properties of this style declaration.

getText

public String getText()
Returns the text of the declaration.

getValue

public Value getValue(String name)
Returns the current value associated with this object.

isImportant

public boolean isImportant(String name)
Tells whether the given property is important.

item

public String item(int idx)
Returns the value at the given.

setStyleDeclaration

public void setStyleDeclaration(StyleDeclaration sd)
Sets the object storing the properties of this style declaration.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.