|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.batik.anim.dom.AbstractSVGAnimatedValue
org.apache.batik.anim.dom.SVGOMAnimatedNumber
public class SVGOMAnimatedNumber
This class implements the SVGAnimatedNumber interface.
| Field Summary | |
|---|---|
protected boolean |
allowPercentage
Whether the parsed number can be a percentage. |
protected float |
animVal
The current animated value. |
protected float |
baseVal
The current base value. |
protected boolean |
changing
Whether the value is changing. |
protected float |
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 | |
|---|---|
SVGOMAnimatedNumber(AbstractElement elt,
String ns,
String ln,
float val)
Creates a new SVGOMAnimatedNumber. |
|
SVGOMAnimatedNumber(AbstractElement elt,
String ns,
String ln,
float val,
boolean allowPercentage)
Creates a new SVGOMAnimatedNumber possibly parsing it as a percentage. |
|
| 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. |
float |
getAnimVal()
DOM: Implements SVGAnimatedNumber.getAnimVal(). |
float |
getBaseVal()
DOM: Implements SVGAnimatedNumber.getBaseVal(). |
AnimatableValue |
getUnderlyingValue(AnimationTarget target)
Returns the base value of the attribute as an AnimatableValue. |
void |
setBaseVal(float baseVal)
DOM: Implements SVGAnimatedNumber.setBaseVal(float). |
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.anim.dom.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 float defaultValue
protected boolean allowPercentage
protected boolean valid
protected float baseVal
protected float animVal
protected boolean changing
| Constructor Detail |
|---|
public SVGOMAnimatedNumber(AbstractElement elt,
String ns,
String ln,
float 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 SVGOMAnimatedNumber(AbstractElement elt,
String ns,
String ln,
float val,
boolean allowPercentage)
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.allowPercentage - Allows number specified as a percentage.| Method Detail |
|---|
public float getBaseVal()
SVGAnimatedNumber.getBaseVal().
getBaseVal in interface org.w3c.dom.svg.SVGAnimatedNumberprotected void update()
public void setBaseVal(float baseVal)
throws DOMException
SVGAnimatedNumber.setBaseVal(float).
setBaseVal in interface org.w3c.dom.svg.SVGAnimatedNumberDOMExceptionpublic float getAnimVal()
SVGAnimatedNumber.getAnimVal().
getAnimVal in interface org.w3c.dom.svg.SVGAnimatedNumberpublic AnimatableValue getUnderlyingValue(AnimationTarget target)
AnimatableValue.
getUnderlyingValue in interface AnimatedLiveAttributeValueprotected void updateAnimatedValue(AnimatableValue val)
AnimatableValue.
updateAnimatedValue in class AbstractSVGAnimatedValue
public void attrAdded(Attr node,
String newv)
attrAdded in interface LiveAttributeValue
public void attrModified(Attr node,
String oldv,
String newv)
attrModified in interface LiveAttributeValue
public void attrRemoved(Attr node,
String oldv)
attrRemoved in interface LiveAttributeValue
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||