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 boolean
mutate
Whether 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 void
attrAdded(org.w3c.dom.Attr node, java.lang.String newv)
Called when an Attr node has been added.void
attrModified(org.w3c.dom.Attr node, java.lang.String oldv, java.lang.String newv)
Called when an Attr node has been modified.void
attrRemoved(org.w3c.dom.Attr node, java.lang.String oldv)
Called when an Attr node has been removed.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
setMainProperty(java.lang.String name, Value v, boolean important)
Sets a main property value in response to a shorthand property being set.void
textChanged(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:
attrAdded
in 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:
attrModified
in interfaceLiveAttributeValue
-
attrRemoved
public void attrRemoved(org.w3c.dom.Attr node, java.lang.String oldv)
Called when an Attr node has been removed.- Specified by:
attrRemoved
in interfaceLiveAttributeValue
-
textChanged
public void textChanged(java.lang.String text) throws org.w3c.dom.DOMException
Called when the value text has changed.- Specified by:
textChanged
in interfaceCSSOMStyleDeclaration.ModificationHandler
- Throws:
org.w3c.dom.DOMException
-
propertyRemoved
public void propertyRemoved(java.lang.String name) throws org.w3c.dom.DOMException
Called when a property was removed.- Specified by:
propertyRemoved
in 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.DOMException
Called when a property was changed.- Specified by:
propertyChanged
in 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:
setMainProperty
in interfaceCSSEngine.MainPropertyReceiver
-
-