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 theSVGAnimatedNumberList
interface.- Version:
- $Id: SVGOMAnimatedNumberList.java 1804130 2017-08-04 14:41:11Z ssteiner $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
SVGOMAnimatedNumberList.AnimSVGNumberList
SVGNumberList
implementation for the animated number list value.class
SVGOMAnimatedNumberList.BaseSVGNumberList
SVGNumberList
implementation for the base number list value.
-
Field Summary
Fields Modifier and Type Field Description protected SVGOMAnimatedNumberList.AnimSVGNumberList
animVal
The animated value.protected SVGOMAnimatedNumberList.BaseSVGNumberList
baseVal
The base value.protected boolean
changing
Whether the list is changing.protected java.lang.String
defaultValue
Default value for the number list.protected boolean
emptyAllowed
Whether empty length lists are allowed.-
Fields inherited from class org.apache.batik.anim.dom.AbstractSVGAnimatedValue
element, hasAnimVal, listeners, localName, namespaceURI
-
-
Constructor Summary
Constructors Constructor Description SVGOMAnimatedNumberList(AbstractElement elt, java.lang.String ns, java.lang.String ln, java.lang.String defaultValue, boolean emptyAllowed)
Creates a new SVGOMAnimatedNumberList.
-
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
check()
Throws an exception if the number list value is malformed.org.w3c.dom.svg.SVGNumberList
getAnimVal()
DOM: ImplementsSVGAnimatedNumberList.getAnimVal()
.org.w3c.dom.svg.SVGNumberList
getBaseVal()
DOM: ImplementsSVGAnimatedNumberList.getBaseVal()
.AnimatableValue
getUnderlyingValue(AnimationTarget target)
Returns the base value of the attribute as anAnimatableValue
.protected void
updateAnimatedValue(AnimatableValue val)
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 Detail
-
baseVal
protected SVGOMAnimatedNumberList.BaseSVGNumberList baseVal
The base value.
-
animVal
protected SVGOMAnimatedNumberList.AnimSVGNumberList animVal
The animated value.
-
changing
protected boolean changing
Whether the list is changing.
-
defaultValue
protected java.lang.String defaultValue
Default value for the number list.
-
emptyAllowed
protected boolean emptyAllowed
Whether empty length lists are allowed.
-
-
Constructor Detail
-
SVGOMAnimatedNumberList
public SVGOMAnimatedNumberList(AbstractElement elt, java.lang.String ns, java.lang.String ln, java.lang.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 Detail
-
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
public AnimatableValue getUnderlyingValue(AnimationTarget target)
Returns the base value of the attribute as anAnimatableValue
.- Specified by:
getUnderlyingValue
in interfaceAnimatedLiveAttributeValue
-
updateAnimatedValue
protected void updateAnimatedValue(AnimatableValue val)
Updates the animated value with the givenAnimatableValue
.- Specified by:
updateAnimatedValue
in classAbstractSVGAnimatedValue
-
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
-
-