org.apache.batik.dom.svg

Class SVGOMAnimatedInteger

public class SVGOMAnimatedInteger extends AbstractSVGAnimatedValue implements SVGAnimatedInteger

This class implements the SVGAnimatedInteger interface.
Field Summary
protected intanimVal
The current animated value.
protected intbaseVal
The current base value.
protected booleanchanging
Whether the value is changing.
protected intdefaultValue
The default value.
protected booleanvalid
Whether the base value is valid.
Constructor Summary
SVGOMAnimatedInteger(AbstractElement elt, String ns, String ln, int val)
Creates a new SVGOMAnimatedInteger.
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.
intgetAnimVal()
DOM: Implements SVGAnimatedInteger#getAnimVal().
intgetBaseVal()
DOM: Implements SVGAnimatedInteger#getBaseVal().
AnimatableValuegetUnderlyingValue(AnimationTarget target)
Returns the base value of the attribute as an AnimatableValue.
voidsetBaseVal(int baseVal)
DOM: Implements SVGAnimatedInteger#setBaseVal(int).
protected voidupdate()
Updates the base value from the attribute.
protected voidupdateAnimatedValue(AnimatableValue val)
Updates the animated value with the given AnimatableValue.

Field Detail

animVal

protected int animVal
The current animated value.

baseVal

protected int baseVal
The current base value.

changing

protected boolean changing
Whether the value is changing.

defaultValue

protected int defaultValue
The default value.

valid

protected boolean valid
Whether the base value is valid.

Constructor Detail

SVGOMAnimatedInteger

public SVGOMAnimatedInteger(AbstractElement elt, String ns, String ln, int val)
Creates a new SVGOMAnimatedInteger.

Parameters: elt The associated element. ns The attribute's namespace URI. ln The attribute's local name. val The default value, if the attribute is not specified.

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.

getAnimVal

public int getAnimVal()
DOM: Implements SVGAnimatedInteger#getAnimVal().

getBaseVal

public int getBaseVal()
DOM: Implements SVGAnimatedInteger#getBaseVal().

getUnderlyingValue

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

setBaseVal

public void setBaseVal(int baseVal)
DOM: Implements SVGAnimatedInteger#setBaseVal(int).

update

protected void update()
Updates the base value from the attribute.

updateAnimatedValue

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