org.apache.batik.dom.svg

Class SVGOMAnimatedBoolean

public class SVGOMAnimatedBoolean extends AbstractSVGAnimatedValue implements SVGAnimatedBoolean

This class implements the {@link SVGAnimatedBoolean} interface.
Field Summary
protected booleananimVal
The current animated value.
protected booleanbaseVal
The current base value.
protected booleanchanging
Whether the value is changing.
protected booleandefaultValue
The default value.
protected booleanvalid
Whether the base value is valid.
Constructor Summary
SVGOMAnimatedBoolean(AbstractElement elt, String ns, String ln, boolean val)
Creates a new SVGOMAnimatedBoolean.
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.
booleangetAnimVal()
DOM: Implements {@link SVGAnimatedBoolean#getAnimVal()}.
booleangetBaseVal()
DOM: Implements {@link SVGAnimatedBoolean#getBaseVal()}.
AnimatableValuegetUnderlyingValue(AnimationTarget target)
Returns the base value of the attribute as an {@link AnimatableValue}.
voidsetAnimatedValue(boolean animVal)
Sets the animated value.
voidsetBaseVal(boolean baseVal)
DOM: Implements {@link SVGAnimatedBoolean#setBaseVal(boolean)}.
protected voidupdate()
Updates the base value from the attribute.
protected voidupdateAnimatedValue(AnimatableValue val)
Updates the animated value with the given {@link AnimatableValue}.

Field Detail

animVal

protected boolean animVal
The current animated value.

baseVal

protected boolean baseVal
The current base value.

changing

protected boolean changing
Whether the value is changing.

defaultValue

protected boolean defaultValue
The default value.

valid

protected boolean valid
Whether the base value is valid.

Constructor Detail

SVGOMAnimatedBoolean

public SVGOMAnimatedBoolean(AbstractElement elt, String ns, String ln, boolean val)
Creates a new SVGOMAnimatedBoolean.

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 boolean getAnimVal()
DOM: Implements {@link SVGAnimatedBoolean#getAnimVal()}.

getBaseVal

public boolean getBaseVal()
DOM: Implements {@link SVGAnimatedBoolean#getBaseVal()}.

getUnderlyingValue

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

setAnimatedValue

public void setAnimatedValue(boolean animVal)
Sets the animated value.

setBaseVal

public void setBaseVal(boolean baseVal)
DOM: Implements {@link SVGAnimatedBoolean#setBaseVal(boolean)}.

update

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

updateAnimatedValue

protected void updateAnimatedValue(AnimatableValue val)
Updates the animated value with the given {@link AnimatableValue}.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.