|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.dom.svg.AbstractSVGAnimatedValue
org.apache.batik.dom.svg.SVGOMAnimatedInteger
public class SVGOMAnimatedInteger
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,
java.lang.String ns,
java.lang.String ln,
int val)
Creates a new SVGOMAnimatedInteger. |
Method Summary | |
---|---|
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: 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 |
---|
protected int defaultValue
protected boolean valid
protected int baseVal
protected int animVal
protected boolean changing
Constructor Detail |
---|
public SVGOMAnimatedInteger(AbstractElement elt, java.lang.String ns, java.lang.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.Method Detail |
---|
public int getBaseVal()
SVGAnimatedInteger.getBaseVal()
.
getBaseVal
in interface org.w3c.dom.svg.SVGAnimatedInteger
protected void update()
public void setBaseVal(int baseVal) throws org.w3c.dom.DOMException
SVGAnimatedInteger.setBaseVal(int)
.
setBaseVal
in interface org.w3c.dom.svg.SVGAnimatedInteger
org.w3c.dom.DOMException
public int getAnimVal()
SVGAnimatedInteger.getAnimVal()
.
getAnimVal
in interface org.w3c.dom.svg.SVGAnimatedInteger
public AnimatableValue getUnderlyingValue(AnimationTarget target)
AnimatableValue
.
getUnderlyingValue
in interface AnimatedLiveAttributeValue
protected void updateAnimatedValue(AnimatableValue val)
AnimatableValue
.
updateAnimatedValue
in class AbstractSVGAnimatedValue
public void attrAdded(org.w3c.dom.Attr node, java.lang.String newv)
attrAdded
in interface LiveAttributeValue
public void attrModified(org.w3c.dom.Attr node, java.lang.String oldv, java.lang.String newv)
attrModified
in interface LiveAttributeValue
public void attrRemoved(org.w3c.dom.Attr node, java.lang.String oldv)
attrRemoved
in interface LiveAttributeValue
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |