org.apache.batik.dom.svg

Class SVGOMAnimatedLengthList

public class SVGOMAnimatedLengthList extends AbstractSVGAnimatedValue implements SVGAnimatedLengthList

This class is the implementation of the SVGAnimatedLengthList interface.
Nested Class Summary
protected classSVGOMAnimatedLengthList.AnimSVGLengthList
SVGLengthList implementation for the animated length list value.
classSVGOMAnimatedLengthList.BaseSVGLengthList
SVGLengthList implementation for the base length list value.
Field Summary
protected SVGOMAnimatedLengthList.AnimSVGLengthListanimVal
The animated value.
protected SVGOMAnimatedLengthList.BaseSVGLengthListbaseVal
The base value.
protected booleanchanging
Whether the list is changing.
protected StringdefaultValue
Default value for the length list.
protected shortdirection
The direction of the lengths in this list.
protected booleanemptyAllowed
Whether empty length lists are allowed.
Constructor Summary
SVGOMAnimatedLengthList(AbstractElement elt, String ns, String ln, String defaultValue, boolean emptyAllowed, short direction)
Creates a new SVGOMAnimatedLengthList.
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 length list value is malformed.
SVGLengthListgetAnimVal()
DOM: Implements SVGAnimatedLengthList#getAnimVal().
SVGLengthListgetBaseVal()
DOM: Implements SVGAnimatedLengthList#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 SVGOMAnimatedLengthList.AnimSVGLengthList animVal
The animated value.

baseVal

protected SVGOMAnimatedLengthList.BaseSVGLengthList baseVal
The base value.

changing

protected boolean changing
Whether the list is changing.

defaultValue

protected String defaultValue
Default value for the length list.

direction

protected short direction
The direction of the lengths in this list.

emptyAllowed

protected boolean emptyAllowed
Whether empty length lists are allowed.

Constructor Detail

SVGOMAnimatedLengthList

public SVGOMAnimatedLengthList(AbstractElement elt, String ns, String ln, String defaultValue, boolean emptyAllowed, short direction)
Creates a new SVGOMAnimatedLengthList.

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 a list with no items is allowed. direction The direction of the lengths in the list.

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 length list value is malformed.

getAnimVal

public SVGLengthList getAnimVal()
DOM: Implements SVGAnimatedLengthList#getAnimVal().

getBaseVal

public SVGLengthList getBaseVal()
DOM: Implements SVGAnimatedLengthList#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.