org.apache.batik.dom.svg

Class SVGOMAnimatedNumberList

public class SVGOMAnimatedNumberList extends AbstractSVGAnimatedValue implements SVGAnimatedNumberList

This class is the implementation of the SVGAnimatedNumberList interface.
Nested Class Summary
protected classSVGOMAnimatedNumberList.AnimSVGNumberList
SVGNumberList implementation for the animated number list value.
classSVGOMAnimatedNumberList.BaseSVGNumberList
SVGNumberList implementation for the base number list value.
Field Summary
protected SVGOMAnimatedNumberList.AnimSVGNumberListanimVal
The animated value.
protected SVGOMAnimatedNumberList.BaseSVGNumberListbaseVal
The base value.
protected booleanchanging
Whether the list is changing.
protected StringdefaultValue
Default value for the number list.
protected booleanemptyAllowed
Whether empty length lists are allowed.
Constructor Summary
SVGOMAnimatedNumberList(AbstractElement elt, String ns, String ln, String defaultValue, boolean emptyAllowed)
Creates a new SVGOMAnimatedNumberList.
Method Summary
voidattrAdded(Attr node, String newv)
Called 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.
SVGNumberListgetAnimVal()
DOM: Implements SVGAnimatedNumberList#getAnimVal().
SVGNumberListgetBaseVal()
DOM: Implements SVGAnimatedNumberList#getBaseVal().
AnimatableValuegetUnderlyingValue(AnimationTarget target)
Returns the base value of the attribute as an AnimatableValue.
protected voidupdateAnimatedValue(AnimatableValue val)
Updates the animated value with the given AnimatableValue.

Field Detail

animVal

protected SVGOMAnimatedNumberList.AnimSVGNumberList animVal
The animated value.

baseVal

protected SVGOMAnimatedNumberList.BaseSVGNumberList baseVal
The base value.

changing

protected boolean changing
Whether the list is changing.

defaultValue

protected 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, 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 Detail

attrAdded

public void attrAdded(Attr node, String newv)
Called when an Attr node has been added.

attrModified

public void attrModified(Attr node, String oldv, String newv)
Called when an Attr node has been modified.

attrRemoved

public void attrRemoved(Attr node, String oldv)
Called when an Attr node has been removed.

check

public void check()
Throws an exception if the number list value is malformed.

getAnimVal

public SVGNumberList getAnimVal()
DOM: Implements SVGAnimatedNumberList#getAnimVal().

getBaseVal

public SVGNumberList getBaseVal()
DOM: Implements SVGAnimatedNumberList#getBaseVal().

getUnderlyingValue

public AnimatableValue getUnderlyingValue(AnimationTarget target)
Returns the base value of the attribute as an AnimatableValue.

updateAnimatedValue

protected void updateAnimatedValue(AnimatableValue val)
Updates the animated value with the given AnimatableValue.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.