org.apache.batik.dom.svg
Class SVGOMAnimatedBoolean

java.lang.Object
  extended by org.apache.batik.dom.svg.AbstractSVGAnimatedValue
      extended by org.apache.batik.dom.svg.SVGOMAnimatedBoolean
All Implemented Interfaces:
AnimatedLiveAttributeValue, LiveAttributeValue

public class SVGOMAnimatedBoolean
extends AbstractSVGAnimatedValue

This class implements the SVGAnimatedBoolean interface.


Field Summary
protected  boolean animVal
          The current animated value.
protected  boolean baseVal
          The current base value.
protected  boolean changing
          Whether the value is changing.
protected  boolean defaultValue
          The default value.
protected  boolean valid
          Whether the base value is valid.
 
Fields inherited from class org.apache.batik.dom.svg.AbstractSVGAnimatedValue
element, hasAnimVal, listeners, localName, namespaceURI
 
Constructor Summary
SVGOMAnimatedBoolean(AbstractElement elt, java.lang.String ns, java.lang.String ln, boolean val)
          Creates a new SVGOMAnimatedBoolean.
 
Method Summary
 void attrAdded(org.w3c.dom.Attr node, java.lang.String newv)
          Called when an Attr node has been added.
 void attrModified(org.w3c.dom.Attr node, java.lang.String oldv, java.lang.String newv)
          Called when an Attr node has been modified.
 void attrRemoved(org.w3c.dom.Attr node, java.lang.String oldv)
          Called when an Attr node has been removed.
 boolean getAnimVal()
          DOM: Implements SVGAnimatedBoolean#getAnimVal().
 boolean getBaseVal()
          DOM: Implements SVGAnimatedBoolean#getBaseVal().
 AnimatableValue getUnderlyingValue(AnimationTarget target)
          Returns the base value of the attribute as an AnimatableValue.
 void setAnimatedValue(boolean animVal)
          Sets the animated value.
 void setBaseVal(boolean baseVal)
          DOM: Implements SVGAnimatedBoolean#setBaseVal(boolean).
protected  void update()
          Updates the base value from the attribute.
protected  void updateAnimatedValue(AnimatableValue val)
          Updates the animated value with the given AnimatableValue.
 
Methods inherited from class org.apache.batik.dom.svg.AbstractSVGAnimatedValue
addAnimatedAttributeListener, fireAnimatedAttributeListeners, fireBaseAttributeListeners, getLocalName, getNamespaceURI, isSpecified, removeAnimatedAttributeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultValue

protected boolean defaultValue
The default value.


valid

protected boolean valid
Whether the base value is valid.


baseVal

protected boolean baseVal
The current base value.


animVal

protected boolean animVal
The current animated value.


changing

protected boolean changing
Whether the value is changing.

Constructor Detail

SVGOMAnimatedBoolean

public SVGOMAnimatedBoolean(AbstractElement elt,
                            java.lang.String ns,
                            java.lang.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

getBaseVal

public boolean getBaseVal()
DOM: Implements SVGAnimatedBoolean#getBaseVal().


update

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


setBaseVal

public void setBaseVal(boolean baseVal)
                throws org.w3c.dom.DOMException
DOM: Implements SVGAnimatedBoolean#setBaseVal(boolean).

Throws:
org.w3c.dom.DOMException

getAnimVal

public boolean getAnimVal()
DOM: Implements SVGAnimatedBoolean#getAnimVal().


setAnimatedValue

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


updateAnimatedValue

protected void updateAnimatedValue(AnimatableValue val)
Updates the animated value with the given AnimatableValue.

Specified by:
updateAnimatedValue in class AbstractSVGAnimatedValue

getUnderlyingValue

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


attrAdded

public void attrAdded(org.w3c.dom.Attr node,
                      java.lang.String newv)
Called when an Attr node has been added.


attrModified

public void attrModified(org.w3c.dom.Attr node,
                         java.lang.String oldv,
                         java.lang.String newv)
Called when an Attr node has been modified.


attrRemoved

public void attrRemoved(org.w3c.dom.Attr node,
                        java.lang.String oldv)
Called when an Attr node has been removed.



Copyright ? 2008 Apache Software Foundation. All Rights Reserved.