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.- Version:
- $Id$
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classSVGNumberListimplementation for the animated number list value.classSVGNumberListimplementation for the base number list value. -
Field Summary
FieldsModifier and TypeFieldDescriptionThe animated value.The base value.protected booleanWhether the list is changing.protected StringDefault value for the number list.protected booleanWhether empty length lists are allowed.Fields inherited from class 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 TypeMethodDescriptionvoidCalled when an Attr node has been added.voidattrModified(Attr node, String oldv, String newv) Called when an Attr node has been modified.voidattrRemoved(Attr node, String oldv) Called when an Attr node has been removed.voidcheck()Throws an exception if the number list value is malformed.org.w3c.dom.svg.SVGNumberListDOM: ImplementsSVGAnimatedNumberList.getAnimVal().org.w3c.dom.svg.SVGNumberListDOM: ImplementsSVGAnimatedNumberList.getBaseVal().getUnderlyingValue(AnimationTarget target) Returns the base value of the attribute as anAnimatableValue.protected voidUpdates the animated value with the givenAnimatableValue.
-
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:
getBaseValin interfaceorg.w3c.dom.svg.SVGAnimatedNumberList
-
getAnimVal
public org.w3c.dom.svg.SVGNumberList getAnimVal()DOM: ImplementsSVGAnimatedNumberList.getAnimVal().- Specified by:
getAnimValin 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:
getUnderlyingValuein interfaceAnimatedLiveAttributeValue
-
updateAnimatedValue
Updates the animated value with the givenAnimatableValue.- Specified by:
updateAnimatedValuein classAbstractSVGAnimatedValue
-
attrAdded
Called when an Attr node has been added.- Specified by:
attrAddedin interfaceLiveAttributeValue
-
attrModified
Called when an Attr node has been modified.- Specified by:
attrModifiedin interfaceLiveAttributeValue
-
attrRemoved
Called when an Attr node has been removed.- Specified by:
attrRemovedin interfaceLiveAttributeValue
-