public abstract class AbstractSVGAnimatedLength extends AbstractSVGAnimatedValue implements org.w3c.dom.svg.SVGAnimatedLength, LiveAttributeValue
SVGAnimatedLength interface.| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractSVGAnimatedLength.AnimSVGLength
This class represents the SVGLength returned by
getAnimVal(). |
protected class |
AbstractSVGAnimatedLength.BaseSVGLength
This class represents the SVGLength returned by
getBaseVal(). |
| Modifier and Type | Field and Description |
|---|---|
protected AbstractSVGAnimatedLength.AnimSVGLength |
animVal
The current animated value.
|
protected AbstractSVGAnimatedLength.BaseSVGLength |
baseVal
The base value.
|
protected boolean |
changing
Whether the value is changing.
|
protected short |
direction
This length's direction.
|
static short |
HORIZONTAL_LENGTH
This constant represents horizontal lengths.
|
protected boolean |
nonNegative
Whether the value must be non-negative.
|
static short |
OTHER_LENGTH
This constant represents other lengths.
|
static short |
VERTICAL_LENGTH
This constant represents vertical lengths.
|
element, hasAnimVal, listeners, localName, namespaceURI| Constructor and Description |
|---|
AbstractSVGAnimatedLength(AbstractElement elt,
String ns,
String ln,
short dir,
boolean nonneg)
Creates a new SVGAnimatedLength.
|
| Modifier and Type | Method and Description |
|---|---|
void |
attrAdded(Attr node,
String newv)
Called when an Attr node has been added.
|
protected void |
attrChanged()
Called when the attribute has changed in some way.
|
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.
|
org.w3c.dom.svg.SVGLength |
getAnimVal()
DOM: Implements
SVGAnimatedLength.getAnimVal(). |
org.w3c.dom.svg.SVGLength |
getBaseVal()
DOM: Implements
SVGAnimatedLength.getBaseVal(). |
float |
getCheckedValue()
Gets the current animated length value.
|
protected abstract String |
getDefaultValue() |
AnimatableValue |
getUnderlyingValue(AnimationTarget target)
Returns the base value of the attribute as an
AnimatableValue. |
protected void |
updateAnimatedValue(AnimatableValue val)
Updates the animated value with the given
AnimatableValue. |
addAnimatedAttributeListener, fireAnimatedAttributeListeners, fireBaseAttributeListeners, getLocalName, getNamespaceURI, isSpecified, removeAnimatedAttributeListenerpublic static final short HORIZONTAL_LENGTH
public static final short VERTICAL_LENGTH
public static final short OTHER_LENGTH
protected short direction
protected AbstractSVGAnimatedLength.BaseSVGLength baseVal
protected AbstractSVGAnimatedLength.AnimSVGLength animVal
protected boolean changing
protected boolean nonNegative
public AbstractSVGAnimatedLength(AbstractElement elt, String ns, String ln, short dir, boolean nonneg)
elt - The associated element.ns - The attribute's namespace URI.ln - The attribute's local name.dir - The length's direction.nonneg - Whether the length must be non-negative.protected abstract String getDefaultValue()
public org.w3c.dom.svg.SVGLength getBaseVal()
SVGAnimatedLength.getBaseVal().getBaseVal in interface org.w3c.dom.svg.SVGAnimatedLengthpublic org.w3c.dom.svg.SVGLength getAnimVal()
SVGAnimatedLength.getAnimVal().getAnimVal in interface org.w3c.dom.svg.SVGAnimatedLengthpublic float getCheckedValue()
protected void updateAnimatedValue(AnimatableValue val)
AnimatableValue.updateAnimatedValue in class AbstractSVGAnimatedValuepublic AnimatableValue getUnderlyingValue(AnimationTarget target)
AnimatableValue.getUnderlyingValue in interface AnimatedLiveAttributeValuepublic void attrAdded(Attr node, String newv)
attrAdded in interface LiveAttributeValuepublic void attrModified(Attr node, String oldv, String newv)
attrModified in interface LiveAttributeValuepublic void attrRemoved(Attr node, String oldv)
attrRemoved in interface LiveAttributeValueprotected void attrChanged()
Copyright © 2000–2017 Apache Software Foundation. All rights reserved.