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
FieldsModifier and TypeFieldDescriptionprotected boolean
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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.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) Sets a main property value in response to a shorthand property being set.void
textChanged
(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
-
Field Details
-
mutate
protected boolean mutateWhether the mutation comes from this object.
-
-
Constructor Details
-
StyleDeclaration
Creates a new StyleDeclaration.
-
-
Method Details
-
attrAdded
Called when an Attr node has been added.- Specified by:
attrAdded
in interfaceLiveAttributeValue
-
attrModified
Called when an Attr node has been modified.- Specified by:
attrModified
in interfaceLiveAttributeValue
-
attrRemoved
Called when an Attr node has been removed.- Specified by:
attrRemoved
in interfaceLiveAttributeValue
-
textChanged
Called when the value text has changed.- Specified by:
textChanged
in interfaceCSSOMStyleDeclaration.ModificationHandler
- Throws:
DOMException
-
propertyRemoved
Called when a property was removed.- Specified by:
propertyRemoved
in interfaceCSSOMStyleDeclaration.ModificationHandler
- Throws:
DOMException
-
propertyChanged
Called when a property was changed.- Specified by:
propertyChanged
in interfaceCSSOMStyleDeclaration.ModificationHandler
- Throws:
DOMException
-
setMainProperty
Sets a main property value in response to a shorthand property being set.- Specified by:
setMainProperty
in interfaceCSSEngine.MainPropertyReceiver
-