org.apache.batik.dom.svg
public class SVGOMAnimatedInteger extends AbstractSVGAnimatedValue implements SVGAnimatedInteger
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. |
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 {@link SVGAnimatedInteger#getAnimVal()}. |
int | getBaseVal()
DOM: Implements {@link SVGAnimatedInteger#getBaseVal()}. |
AnimatableValue | getUnderlyingValue(AnimationTarget target)
Returns the base value of the attribute as an {@link AnimatableValue}. |
void | setBaseVal(int baseVal)
DOM: Implements {@link 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 {@link AnimatableValue}. |
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.