|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.css.dom.CSSOMStyleDeclaration
org.apache.batik.css.dom.CSSOMSVGStyleDeclaration
org.apache.batik.dom.svg.SVGStylableElement.StyleDeclaration
This class represents the 'style' attribute.
Nested Class Summary |
Nested classes inherited from class org.apache.batik.css.dom.CSSOMSVGStyleDeclaration |
CSSOMSVGStyleDeclaration.StyleDeclarationColorValue, CSSOMSVGStyleDeclaration.StyleDeclarationPaintValue |
Nested classes inherited from class org.apache.batik.css.dom.CSSOMStyleDeclaration |
CSSOMStyleDeclaration.ModificationHandler, CSSOMStyleDeclaration.StyleDeclarationValue, CSSOMStyleDeclaration.ValueProvider |
Field Summary | |
protected StyleDeclaration |
declaration
The associated CSS object. |
protected boolean |
mutate
Whether the mutation comes from this object. |
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 | |
SVGStylableElement.StyleDeclaration(CSSEngine eng)
Creates a new StyleDeclaration. |
Method Summary | |
void |
attrAdded(Attr node,
String newv)
Called when an Attr node has been added. |
void |
attrModified(Attr node,
String oldv,
String newv)
Called when an Attr node has been modified. |
void |
attrRemoved(Attr node,
String oldv)
Called when an Attr node has been removed. |
int |
getLength()
Returns the length of the declaration. |
String |
getText()
Returns the text of the declaration. |
Value |
getValue(String name)
Returns the current value associated with this object. |
boolean |
isImportant(String name)
Tells whether the given property is important. |
String |
item(int idx)
Returns the value at the given. |
void |
propertyChanged(String name,
String value,
String prio)
Called when a property was changed. |
void |
propertyRemoved(String name)
Called when a property was removed. |
void |
setMainProperty(String name,
Value v,
boolean important)
Called with a non-shorthand property name and it's value. |
void |
textChanged(String text)
Called when the value text has changed. |
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 |
Field Detail |
protected StyleDeclaration declaration
protected boolean mutate
Constructor Detail |
public SVGStylableElement.StyleDeclaration(CSSEngine eng)
Method Detail |
public Value getValue(String name)
getValue
in interface CSSOMStyleDeclaration.ValueProvider
public boolean isImportant(String name)
isImportant
in interface CSSOMStyleDeclaration.ValueProvider
public String getText()
getText
in interface CSSOMStyleDeclaration.ValueProvider
public int getLength()
getLength
in interface CSSOMStyleDeclaration.ValueProvider
getLength
in class CSSOMStyleDeclaration
public String item(int idx)
item
in interface CSSOMStyleDeclaration.ValueProvider
item
in class CSSOMStyleDeclaration
public void attrAdded(Attr node, String newv)
attrAdded
in interface LiveAttributeValue
public void attrModified(Attr node, String oldv, String newv)
attrModified
in interface LiveAttributeValue
public void attrRemoved(Attr node, String oldv)
attrRemoved
in interface LiveAttributeValue
public void textChanged(String text) throws DOMException
textChanged
in interface CSSOMStyleDeclaration.ModificationHandler
DOMException
public void propertyRemoved(String name) throws DOMException
propertyRemoved
in interface CSSOMStyleDeclaration.ModificationHandler
DOMException
public void setMainProperty(String name, Value v, boolean important)
CSSEngine.MainPropertyReceiver
setMainProperty
in interface CSSEngine.MainPropertyReceiver
public void propertyChanged(String name, String value, String prio) throws DOMException
propertyChanged
in interface CSSOMStyleDeclaration.ModificationHandler
DOMException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |