|
||||||||||
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.SVGOMAnimatedEnumeration
public class SVGOMAnimatedEnumeration
This class provides an implementation of the SVGAnimatedEnumeration
interface.
Field Summary | |
---|---|
protected short |
animVal
The current animated value. |
protected short |
baseVal
The current base value. |
protected boolean |
changing
Whether the value is changing. |
protected short |
defaultValue
The default value, if the attribute is not specified. |
protected boolean |
valid
Whether the current base value is valid. |
protected java.lang.String[] |
values
The values in this enumeration. |
Fields inherited from class org.apache.batik.dom.svg.AbstractSVGAnimatedValue |
---|
element, hasAnimVal, listeners, localName, namespaceURI |
Constructor Summary | |
---|---|
SVGOMAnimatedEnumeration(AbstractElement elt,
java.lang.String ns,
java.lang.String ln,
java.lang.String[] val,
short def)
Creates a new SVGOMAnimatedEnumeration. |
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. |
short |
getAnimVal()
DOM: Implements SVGAnimatedEnumeration.getAnimVal() . |
short |
getBaseVal()
DOM: Implements SVGAnimatedEnumeration.getBaseVal() . |
java.lang.String |
getBaseValAsString()
Returns the base value as a string. |
short |
getCheckedVal()
Gets the current animated value, throwing an exception if the attribute is malformed. |
protected short |
getEnumerationNumber(java.lang.String s)
Returns the enumeration number of the specified string. |
AnimatableValue |
getUnderlyingValue(AnimationTarget target)
Returns the base value of the attribute as an AnimatableValue . |
void |
setBaseVal(short baseVal)
DOM: Implements SVGAnimatedEnumeration.setBaseVal(short) . |
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 java.lang.String[] values
protected short defaultValue
protected boolean valid
protected short baseVal
protected short animVal
protected boolean changing
Constructor Detail |
---|
public SVGOMAnimatedEnumeration(AbstractElement elt, java.lang.String ns, java.lang.String ln, java.lang.String[] val, short def)
elt
- The associated element.ns
- The attribute's namespace URI.ln
- The attribute's local name.val
- The values in this enumeration.def
- The default value to use.Method Detail |
---|
public short getBaseVal()
SVGAnimatedEnumeration.getBaseVal()
.
getBaseVal
in interface org.w3c.dom.svg.SVGAnimatedEnumeration
public java.lang.String getBaseValAsString()
protected void update()
protected short getEnumerationNumber(java.lang.String s)
public void setBaseVal(short baseVal) throws org.w3c.dom.DOMException
SVGAnimatedEnumeration.setBaseVal(short)
.
setBaseVal
in interface org.w3c.dom.svg.SVGAnimatedEnumeration
org.w3c.dom.DOMException
public short getAnimVal()
SVGAnimatedEnumeration.getAnimVal()
.
getAnimVal
in interface org.w3c.dom.svg.SVGAnimatedEnumeration
public short getCheckedVal()
public AnimatableValue getUnderlyingValue(AnimationTarget target)
AnimatableValue
.
getUnderlyingValue
in interface AnimatedLiveAttributeValue
public void attrAdded(org.w3c.dom.Attr node, java.lang.String newv)
attrAdded
in interface LiveAttributeValue
protected void updateAnimatedValue(AnimatableValue val)
AnimatableValue
.
updateAnimatedValue
in class AbstractSVGAnimatedValue
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 |