org.apache.batik.dom.svg
Class SVGStylableElement.StyleDeclaration
java.lang.Object
|
+--org.apache.batik.css.dom.CSSOMStyleDeclaration
|
+--org.apache.batik.css.dom.CSSOMSVGStyleDeclaration
|
+--org.apache.batik.dom.svg.SVGStylableElement.StyleDeclaration
- All Implemented Interfaces:
- CSSOMStyleDeclaration.ModificationHandler, CSSOMStyleDeclaration.ValueProvider, CSSStyleDeclaration, LiveAttributeValue
- Enclosing class:
- SVGStylableElement
- public class SVGStylableElement.StyleDeclaration
- extends CSSOMSVGStyleDeclaration
- implements LiveAttributeValue, CSSOMStyleDeclaration.ValueProvider, CSSOMStyleDeclaration.ModificationHandler
This class represents the 'style' attribute.
Method Summary |
void |
attrAdded(Attr node,
java.lang.String newv)
Called when an Attr node has been added. |
void |
attrModified(Attr node,
java.lang.String oldv,
java.lang.String newv)
Called when an Attr node has been modified. |
void |
attrRemoved(Attr node,
java.lang.String oldv)
Called when an Attr node has been removed. |
int |
getLength()
Returns the length of the declaration. |
java.lang.String |
getText()
Returns the text of the declaration. |
Value |
getValue(java.lang.String name)
Returns the current value associated with this object. |
boolean |
isImportant(java.lang.String name)
Tells whether the given property is important. |
java.lang.String |
item(int idx)
Returns the value at the given. |
void |
propertyChanged(java.lang.String name,
java.lang.String value,
java.lang.String prio)
Called when a property was changed. |
void |
propertyRemoved(java.lang.String name)
Called when a property was removed. |
void |
textChanged(java.lang.String text)
Called when the value text has changed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
declaration
protected StyleDeclaration declaration
- The associated CSS object.
mutate
protected boolean mutate
- Whether the mutation comes from this object.
SVGStylableElement.StyleDeclaration
public SVGStylableElement.StyleDeclaration(CSSEngine eng)
- Creates a new StyleDeclaration.
getValue
public Value getValue(java.lang.String name)
- Returns the current value associated with this object.
- Specified by:
getValue
in interface CSSOMStyleDeclaration.ValueProvider
isImportant
public boolean isImportant(java.lang.String name)
- Tells whether the given property is important.
- Specified by:
isImportant
in interface CSSOMStyleDeclaration.ValueProvider
getText
public java.lang.String getText()
- Returns the text of the declaration.
- Specified by:
getText
in interface CSSOMStyleDeclaration.ValueProvider
getLength
public int getLength()
- Returns the length of the declaration.
- Specified by:
getLength
in interface CSSOMStyleDeclaration.ValueProvider
- Overrides:
getLength
in class CSSOMStyleDeclaration
item
public java.lang.String item(int idx)
- Returns the value at the given.
- Specified by:
item
in interface CSSOMStyleDeclaration.ValueProvider
- Overrides:
item
in class CSSOMStyleDeclaration
- Following copied from interface:
org.w3c.dom.css.CSSStyleDeclaration
- Parameters:
index
- Index of the property name to retrieve.- Returns:
- The name of the property at this ordinal position. The empty
string if no property exists at this position.
attrAdded
public void attrAdded(Attr node,
java.lang.String newv)
- Called when an Attr node has been added.
- Specified by:
attrAdded
in interface LiveAttributeValue
attrModified
public void attrModified(Attr node,
java.lang.String oldv,
java.lang.String newv)
- Called when an Attr node has been modified.
- Specified by:
attrModified
in interface LiveAttributeValue
attrRemoved
public void attrRemoved(Attr node,
java.lang.String oldv)
- Called when an Attr node has been removed.
- Specified by:
attrRemoved
in interface LiveAttributeValue
textChanged
public void textChanged(java.lang.String text)
throws DOMException
- Called when the value text has changed.
- Specified by:
textChanged
in interface CSSOMStyleDeclaration.ModificationHandler
propertyRemoved
public void propertyRemoved(java.lang.String name)
throws DOMException
- Called when a property was removed.
- Specified by:
propertyRemoved
in interface CSSOMStyleDeclaration.ModificationHandler
propertyChanged
public void propertyChanged(java.lang.String name,
java.lang.String value,
java.lang.String prio)
throws DOMException
- Called when a property was changed.
- Specified by:
propertyChanged
in interface CSSOMStyleDeclaration.ModificationHandler
Copyright © 2002 Apache Software Foundation. All Rights Reserved.