org.apache.batik.dom.svg
Class SVGOMAnimatedInteger

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

public class SVGOMAnimatedInteger
extends AbstractSVGAnimatedValue
implements org.w3c.dom.svg.SVGAnimatedInteger

This class implements the SVGAnimatedInteger interface.


Field Summary
protected  int animVal
          The current animated value.
protected  int baseVal
          The current base value.
protected  boolean changing
          Whether the value is changing.
protected  int 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
SVGOMAnimatedInteger(AbstractElement elt, String ns, String ln, int val)
          Creates a new SVGOMAnimatedInteger.
 
Method Summary
 void attrAdded(Attr node, String newv)
          Called when an Attr node has been added.
 void attrModified(Attr node, String oldv, String newv)
          Called when an Attr node has been modified.
 void attrRemoved(Attr node, String oldv)
          Called when an Attr node has been removed.
 int getAnimVal()
          DOM: Implements SVGAnimatedInteger.getAnimVal().
 int getBaseVal()
          DOM: Implements SVGAnimatedInteger.getBaseVal().
 AnimatableValue getUnderlyingValue(AnimationTarget target)
          Returns the base value of the attribute as an AnimatableValue.
 void setBaseVal(int baseVal)
          DOM: Implements SVGAnimatedInteger.setBaseVal(int).
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 int defaultValue
The default value.


valid

protected boolean valid
Whether the base value is valid.


baseVal

protected int baseVal
The current base value.


animVal

protected int animVal
The current animated value.


changing

protected boolean changing
Whether the value is changing.

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

getBaseVal

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

Specified by:
getBaseVal in interface org.w3c.dom.svg.SVGAnimatedInteger

update

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


setBaseVal

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

Specified by:
setBaseVal in interface org.w3c.dom.svg.SVGAnimatedInteger
Throws:
DOMException

getAnimVal

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

Specified by:
getAnimVal in interface org.w3c.dom.svg.SVGAnimatedInteger

getUnderlyingValue

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

Specified by:
getUnderlyingValue in interface AnimatedLiveAttributeValue

updateAnimatedValue

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

Specified by:
updateAnimatedValue in class AbstractSVGAnimatedValue

attrAdded

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

Specified by:
attrAdded in interface LiveAttributeValue

attrModified

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

Specified by:
attrModified in interface LiveAttributeValue

attrRemoved

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

Specified by:
attrRemoved in interface LiveAttributeValue


Copyright © 2008 Apache Software Foundation. All Rights Reserved.