Package org.apache.batik.anim.dom
Class SVGOMAnimatedInteger
- java.lang.Object
-
- org.apache.batik.anim.dom.AbstractSVGAnimatedValue
-
- org.apache.batik.anim.dom.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 theSVGAnimatedInteger
interface.
-
-
Field Summary
Fields Modifier and Type Field 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.-
Fields inherited from class org.apache.batik.anim.dom.AbstractSVGAnimatedValue
element, hasAnimVal, listeners, localName, namespaceURI
-
-
Constructor Summary
Constructors Constructor Description SVGOMAnimatedInteger(AbstractElement elt, java.lang.String ns, java.lang.String ln, int val)
Creates a new SVGOMAnimatedInteger.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.int
getAnimVal()
DOM: ImplementsSVGAnimatedInteger.getAnimVal()
.int
getBaseVal()
DOM: ImplementsSVGAnimatedInteger.getBaseVal()
.AnimatableValue
getUnderlyingValue(AnimationTarget target)
Returns the base value of the attribute as anAnimatableValue
.void
setBaseVal(int baseVal)
DOM: ImplementsSVGAnimatedInteger.setBaseVal(int)
.protected void
update()
Updates the base value from the attribute.protected void
updateAnimatedValue(AnimatableValue val)
Updates the animated value with the givenAnimatableValue
.-
Methods inherited from class org.apache.batik.anim.dom.AbstractSVGAnimatedValue
addAnimatedAttributeListener, fireAnimatedAttributeListeners, fireBaseAttributeListeners, getLocalName, getNamespaceURI, isSpecified, removeAnimatedAttributeListener
-
-
-
-
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, java.lang.String ns, java.lang.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: ImplementsSVGAnimatedInteger.getBaseVal()
.- Specified by:
getBaseVal
in interfaceorg.w3c.dom.svg.SVGAnimatedInteger
-
update
protected void update()
Updates the base value from the attribute.
-
setBaseVal
public void setBaseVal(int baseVal) throws org.w3c.dom.DOMException
DOM: ImplementsSVGAnimatedInteger.setBaseVal(int)
.- Specified by:
setBaseVal
in interfaceorg.w3c.dom.svg.SVGAnimatedInteger
- Throws:
org.w3c.dom.DOMException
-
getAnimVal
public int getAnimVal()
DOM: ImplementsSVGAnimatedInteger.getAnimVal()
.- Specified by:
getAnimVal
in interfaceorg.w3c.dom.svg.SVGAnimatedInteger
-
getUnderlyingValue
public AnimatableValue getUnderlyingValue(AnimationTarget target)
Returns the base value of the attribute as anAnimatableValue
.- Specified by:
getUnderlyingValue
in interfaceAnimatedLiveAttributeValue
-
updateAnimatedValue
protected void updateAnimatedValue(AnimatableValue val)
Updates the animated value with the givenAnimatableValue
.- Specified by:
updateAnimatedValue
in classAbstractSVGAnimatedValue
-
attrAdded
public void attrAdded(org.w3c.dom.Attr node, java.lang.String newv)
Called when an Attr node has been added.- Specified by:
attrAdded
in interfaceLiveAttributeValue
-
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.- Specified by:
attrModified
in interfaceLiveAttributeValue
-
attrRemoved
public void attrRemoved(org.w3c.dom.Attr node, java.lang.String oldv)
Called when an Attr node has been removed.- Specified by:
attrRemoved
in interfaceLiveAttributeValue
-
-