public class SVGOMAnimatedInteger extends AbstractSVGAnimatedValue
SVGAnimatedInteger interface.| Modifier and Type | Field and Description |
|---|---|
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.
|
element, hasAnimVal, listeners, localName, namespaceURI| Constructor and Description |
|---|
SVGOMAnimatedInteger(AbstractElement elt,
String ns,
String ln,
int val)
Creates a new SVGOMAnimatedInteger.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
addAnimatedAttributeListener, fireAnimatedAttributeListeners, fireBaseAttributeListeners, getLocalName, getNamespaceURI, isSpecified, removeAnimatedAttributeListenerprotected int defaultValue
protected boolean valid
protected int baseVal
protected int animVal
protected boolean changing
public SVGOMAnimatedInteger(AbstractElement elt, String ns, String ln, int val)
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.public int getBaseVal()
SVGAnimatedInteger#getBaseVal().protected void update()
public void setBaseVal(int baseVal)
throws DOMException
SVGAnimatedInteger#setBaseVal(int).DOMExceptionpublic int getAnimVal()
SVGAnimatedInteger#getAnimVal().public AnimatableValue getUnderlyingValue(AnimationTarget target)
AnimatableValue.protected void updateAnimatedValue(AnimatableValue val)
AnimatableValue.updateAnimatedValue in class AbstractSVGAnimatedValuepublic void attrModified(Attr node, String oldv, String newv)
Copyright ? 2015 Apache Software Foundation. All Rights Reserved.