Package org.apache.batik.anim.dom
Class SVGOMAnimatedNumberList
java.lang.Object
org.apache.batik.anim.dom.AbstractSVGAnimatedValue
org.apache.batik.anim.dom.SVGOMAnimatedNumberList
- All Implemented Interfaces:
AnimatedLiveAttributeValue
,LiveAttributeValue
,org.w3c.dom.svg.SVGAnimatedNumberList
public class SVGOMAnimatedNumberList
extends AbstractSVGAnimatedValue
implements org.w3c.dom.svg.SVGAnimatedNumberList
This class is the implementation of the
SVGAnimatedNumberList
interface.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
SVGNumberList
implementation for the animated number list value.class
SVGNumberList
implementation for the base number list value. -
Field Summary
FieldsModifier and TypeFieldDescriptionThe animated value.The base value.protected boolean
Whether the list is changing.protected String
Default value for the number list.protected boolean
Whether empty length lists are allowed.Fields inherited from class org.apache.batik.anim.dom.AbstractSVGAnimatedValue
element, hasAnimVal, listeners, localName, namespaceURI
-
Constructor Summary
ConstructorsConstructorDescriptionSVGOMAnimatedNumberList
(AbstractElement elt, String ns, String ln, String defaultValue, boolean emptyAllowed) Creates a new SVGOMAnimatedNumberList. -
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
check()
Throws an exception if the number list value is malformed.org.w3c.dom.svg.SVGNumberList
DOM: ImplementsSVGAnimatedNumberList.getAnimVal()
.org.w3c.dom.svg.SVGNumberList
DOM: ImplementsSVGAnimatedNumberList.getBaseVal()
.getUnderlyingValue
(AnimationTarget target) Returns the base value of the attribute as anAnimatableValue
.protected void
Updates the animated value with the givenAnimatableValue
.Methods inherited from class org.apache.batik.anim.dom.AbstractSVGAnimatedValue
addAnimatedAttributeListener, fireAnimatedAttributeListeners, fireBaseAttributeListeners, getLocalName, getNamespaceURI, isSpecified, removeAnimatedAttributeListener
-
Field Details
-
baseVal
The base value. -
animVal
The animated value. -
changing
protected boolean changingWhether the list is changing. -
defaultValue
Default value for the number list. -
emptyAllowed
protected boolean emptyAllowedWhether empty length lists are allowed.
-
-
Constructor Details
-
SVGOMAnimatedNumberList
public SVGOMAnimatedNumberList(AbstractElement elt, String ns, String ln, String defaultValue, boolean emptyAllowed) Creates a new SVGOMAnimatedNumberList.- Parameters:
elt
- The associated element.ns
- The attribute's namespace URI.ln
- The attribute's local name.defaultValue
- The default value if the attribute is not specified.emptyAllowed
- Whether an empty number list is allowed.
-
-
Method Details
-
getBaseVal
public org.w3c.dom.svg.SVGNumberList getBaseVal()DOM: ImplementsSVGAnimatedNumberList.getBaseVal()
.- Specified by:
getBaseVal
in interfaceorg.w3c.dom.svg.SVGAnimatedNumberList
-
getAnimVal
public org.w3c.dom.svg.SVGNumberList getAnimVal()DOM: ImplementsSVGAnimatedNumberList.getAnimVal()
.- Specified by:
getAnimVal
in interfaceorg.w3c.dom.svg.SVGAnimatedNumberList
-
check
public void check()Throws an exception if the number list value is malformed. -
getUnderlyingValue
Returns the base value of the attribute as anAnimatableValue
.- Specified by:
getUnderlyingValue
in interfaceAnimatedLiveAttributeValue
-
updateAnimatedValue
Updates the animated value with the givenAnimatableValue
.- Specified by:
updateAnimatedValue
in classAbstractSVGAnimatedValue
-
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
-