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 the
SVGAnimatedInteger interface.- Version:
- $Id$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intThe current animated value.protected intThe current base value.protected booleanWhether the value is changing.protected intThe default value.protected booleanWhether the base value is valid.Fields inherited from class AbstractSVGAnimatedValue
element, hasAnimVal, listeners, localName, namespaceURI -
Constructor Summary
ConstructorsConstructorDescriptionSVGOMAnimatedInteger(AbstractElement elt, String ns, String ln, int val) Creates a new SVGOMAnimatedInteger. -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled when an Attr node has been added.voidattrModified(Attr node, String oldv, String newv) Called when an Attr node has been modified.voidattrRemoved(Attr node, String oldv) Called when an Attr node has been removed.intDOM: ImplementsSVGAnimatedInteger.getAnimVal().intDOM: ImplementsSVGAnimatedInteger.getBaseVal().getUnderlyingValue(AnimationTarget target) Returns the base value of the attribute as anAnimatableValue.voidsetBaseVal(int baseVal) DOM: ImplementsSVGAnimatedInteger.setBaseVal(int).protected voidupdate()Updates the base value from the attribute.protected voidUpdates the animated value with the givenAnimatableValue.
-
Field Details
-
defaultValue
protected int defaultValueThe default value. -
valid
protected boolean validWhether the base value is valid. -
baseVal
protected int baseValThe current base value. -
animVal
protected int animValThe current animated value. -
changing
protected boolean changingWhether the value is changing.
-
-
Constructor Details
-
SVGOMAnimatedInteger
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 Details
-
getBaseVal
public int getBaseVal()DOM: ImplementsSVGAnimatedInteger.getBaseVal().- Specified by:
getBaseValin interfaceorg.w3c.dom.svg.SVGAnimatedInteger
-
update
protected void update()Updates the base value from the attribute. -
setBaseVal
DOM: ImplementsSVGAnimatedInteger.setBaseVal(int).- Specified by:
setBaseValin interfaceorg.w3c.dom.svg.SVGAnimatedInteger- Throws:
DOMException
-
getAnimVal
public int getAnimVal()DOM: ImplementsSVGAnimatedInteger.getAnimVal().- Specified by:
getAnimValin interfaceorg.w3c.dom.svg.SVGAnimatedInteger
-
getUnderlyingValue
Returns the base value of the attribute as anAnimatableValue.- Specified by:
getUnderlyingValuein interfaceAnimatedLiveAttributeValue
-
updateAnimatedValue
Updates the animated value with the givenAnimatableValue.- Specified by:
updateAnimatedValuein classAbstractSVGAnimatedValue
-
attrAdded
Called when an Attr node has been added.- Specified by:
attrAddedin interfaceLiveAttributeValue
-
attrModified
Called when an Attr node has been modified.- Specified by:
attrModifiedin interfaceLiveAttributeValue
-
attrRemoved
Called when an Attr node has been removed.- Specified by:
attrRemovedin interfaceLiveAttributeValue
-