public class SVGOMAnimatedEnumeration extends AbstractSVGAnimatedValue implements org.w3c.dom.svg.SVGAnimatedEnumeration
SVGAnimatedEnumeration interface.| Modifier and Type | Field and Description |
|---|---|
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 String[] |
values
The values in this enumeration.
|
element, hasAnimVal, listeners, localName, namespaceURI| Constructor and Description |
|---|
SVGOMAnimatedEnumeration(AbstractElement elt,
String ns,
String ln,
String[] val,
short def)
Creates a new SVGOMAnimatedEnumeration.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
short |
getAnimVal()
DOM: Implements
SVGAnimatedEnumeration.getAnimVal(). |
short |
getBaseVal()
DOM: Implements
SVGAnimatedEnumeration.getBaseVal(). |
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(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. |
addAnimatedAttributeListener, fireAnimatedAttributeListeners, fireBaseAttributeListeners, getLocalName, getNamespaceURI, isSpecified, removeAnimatedAttributeListenerprotected String[] values
protected short defaultValue
protected boolean valid
protected short baseVal
protected short animVal
protected boolean changing
public SVGOMAnimatedEnumeration(AbstractElement elt, String ns, String ln, 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.public short getBaseVal()
SVGAnimatedEnumeration.getBaseVal().getBaseVal in interface org.w3c.dom.svg.SVGAnimatedEnumerationpublic String getBaseValAsString()
protected void update()
protected short getEnumerationNumber(String s)
public void setBaseVal(short baseVal)
throws DOMException
SVGAnimatedEnumeration.setBaseVal(short).setBaseVal in interface org.w3c.dom.svg.SVGAnimatedEnumerationDOMExceptionpublic short getAnimVal()
SVGAnimatedEnumeration.getAnimVal().getAnimVal in interface org.w3c.dom.svg.SVGAnimatedEnumerationpublic short getCheckedVal()
public AnimatableValue getUnderlyingValue(AnimationTarget target)
AnimatableValue.getUnderlyingValue in interface AnimatedLiveAttributeValuepublic void attrAdded(Attr node, String newv)
attrAdded in interface LiveAttributeValueprotected void updateAnimatedValue(AnimatableValue val)
AnimatableValue.updateAnimatedValue in class AbstractSVGAnimatedValuepublic void attrModified(Attr node, String oldv, String newv)
attrModified in interface LiveAttributeValuepublic void attrRemoved(Attr node, String oldv)
attrRemoved in interface LiveAttributeValueCopyright © 2000–2017 Apache Software Foundation. All rights reserved.