Package org.apache.batik.anim.dom
Class SVGStylableElement.StyleDeclaration
- java.lang.Object
-
- org.apache.batik.css.dom.CSSOMStyleDeclaration
-
- org.apache.batik.css.dom.CSSOMSVGStyleDeclaration
-
- org.apache.batik.css.dom.CSSOMStoredStyleDeclaration
-
- org.apache.batik.anim.dom.SVGStylableElement.StyleDeclaration
-
- All Implemented Interfaces:
CSSOMStyleDeclaration.ModificationHandler,CSSOMStyleDeclaration.ValueProvider,CSSEngine.MainPropertyReceiver,StyleDeclarationProvider,LiveAttributeValue,org.w3c.dom.css.CSSStyleDeclaration
- Enclosing class:
- SVGStylableElement
public class SVGStylableElement.StyleDeclaration extends CSSOMStoredStyleDeclaration implements LiveAttributeValue, CSSEngine.MainPropertyReceiver
This class represents the 'style' attribute.
-
-
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 booleanmutateWhether the mutation comes from this object.-
Fields inherited from class org.apache.batik.css.dom.CSSOMStoredStyleDeclaration
declaration
-
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 StyleDeclaration(CSSEngine eng)Creates a new StyleDeclaration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattrAdded(org.w3c.dom.Attr node, java.lang.String newv)Called when an Attr node has been added.voidattrModified(org.w3c.dom.Attr node, java.lang.String oldv, java.lang.String newv)Called when an Attr node has been modified.voidattrRemoved(org.w3c.dom.Attr node, java.lang.String oldv)Called when an Attr node has been removed.voidpropertyChanged(java.lang.String name, java.lang.String value, java.lang.String prio)Called when a property was changed.voidpropertyRemoved(java.lang.String name)Called when a property was removed.voidsetMainProperty(java.lang.String name, Value v, boolean important)Sets a main property value in response to a shorthand property being set.voidtextChanged(java.lang.String text)Called when the value text has changed.-
Methods inherited from class org.apache.batik.css.dom.CSSOMStoredStyleDeclaration
getLength, getStyleDeclaration, getText, getValue, isImportant, item, setStyleDeclaration
-
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
-
-
-
-
Constructor Detail
-
StyleDeclaration
public StyleDeclaration(CSSEngine eng)
Creates a new StyleDeclaration.
-
-
Method Detail
-
attrAdded
public void attrAdded(org.w3c.dom.Attr node, java.lang.String newv)Called when an Attr node has been added.- Specified by:
attrAddedin interfaceLiveAttributeValue
-
attrModified
public void attrModified(org.w3c.dom.Attr node, java.lang.String oldv, java.lang.String newv)Called when an Attr node has been modified.- Specified by:
attrModifiedin interfaceLiveAttributeValue
-
attrRemoved
public void attrRemoved(org.w3c.dom.Attr node, java.lang.String oldv)Called when an Attr node has been removed.- Specified by:
attrRemovedin interfaceLiveAttributeValue
-
textChanged
public void textChanged(java.lang.String text) throws org.w3c.dom.DOMExceptionCalled when the value text has changed.- Specified by:
textChangedin interfaceCSSOMStyleDeclaration.ModificationHandler- Throws:
org.w3c.dom.DOMException
-
propertyRemoved
public void propertyRemoved(java.lang.String name) throws org.w3c.dom.DOMExceptionCalled when a property was removed.- Specified by:
propertyRemovedin interfaceCSSOMStyleDeclaration.ModificationHandler- Throws:
org.w3c.dom.DOMException
-
propertyChanged
public void propertyChanged(java.lang.String name, java.lang.String value, java.lang.String prio) throws org.w3c.dom.DOMExceptionCalled when a property was changed.- Specified by:
propertyChangedin interfaceCSSOMStyleDeclaration.ModificationHandler- Throws:
org.w3c.dom.DOMException
-
setMainProperty
public void setMainProperty(java.lang.String name, Value v, boolean important)Sets a main property value in response to a shorthand property being set.- Specified by:
setMainPropertyin interfaceCSSEngine.MainPropertyReceiver
-
-