AnimatedLiveAttributeValue, LiveAttributeValue, org.w3c.dom.svg.SVGAnimatedLengthSVGOMAnimatedLengthpublic abstract class AbstractSVGAnimatedLength extends AbstractSVGAnimatedValue implements org.w3c.dom.svg.SVGAnimatedLength, LiveAttributeValue
SVGAnimatedLength interface.| Modifier and Type | Class | 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 | 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 | Description |
|---|---|
AbstractSVGAnimatedLength(AbstractElement elt,
java.lang.String ns,
java.lang.String ln,
short dir,
boolean nonneg) |
Creates a new SVGAnimatedLength.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
attrAdded(org.w3c.dom.Attr node,
java.lang.String newv) |
Called when an Attr node has been added.
|
protected void |
attrChanged() |
Called when the attribute has changed in some way.
|
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.
|
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 java.lang.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, java.lang.String ns, java.lang.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 java.lang.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(org.w3c.dom.Attr node,
java.lang.String newv)
attrAdded in interface LiveAttributeValuepublic void attrModified(org.w3c.dom.Attr node,
java.lang.String oldv,
java.lang.String newv)
attrModified in interface LiveAttributeValuepublic void attrRemoved(org.w3c.dom.Attr node,
java.lang.String oldv)
attrRemoved in interface LiveAttributeValueprotected void attrChanged()
Copyright ? 2018 Apache Software Foundation. All Rights Reserved.