public class SVGOMAnimatedBoolean extends AbstractSVGAnimatedValue implements org.w3c.dom.svg.SVGAnimatedBoolean
SVGAnimatedBoolean
interface.Modifier and Type | Field and Description |
---|---|
protected boolean |
animVal
The current animated value.
|
protected boolean |
baseVal
The current base value.
|
protected boolean |
changing
Whether the value is changing.
|
protected boolean |
defaultValue
The default value.
|
protected boolean |
valid
Whether the base value is valid.
|
element, hasAnimVal, listeners, localName, namespaceURI
Constructor and Description |
---|
SVGOMAnimatedBoolean(AbstractElement elt,
java.lang.String ns,
java.lang.String ln,
boolean val)
Creates a new SVGOMAnimatedBoolean.
|
Modifier and Type | Method and Description |
---|---|
void |
attrAdded(Attr node,
java.lang.String newv)
Called when an Attr node has been added.
|
void |
attrModified(Attr node,
java.lang.String oldv,
java.lang.String newv)
Called when an Attr node has been modified.
|
void |
attrRemoved(Attr node,
java.lang.String oldv)
Called when an Attr node has been removed.
|
boolean |
getAnimVal()
DOM: Implements
SVGAnimatedBoolean.getAnimVal() . |
boolean |
getBaseVal()
DOM: Implements
SVGAnimatedBoolean.getBaseVal() . |
AnimatableValue |
getUnderlyingValue(AnimationTarget target)
Returns the base value of the attribute as an
AnimatableValue . |
void |
setAnimatedValue(boolean animVal)
Sets the animated value.
|
void |
setBaseVal(boolean baseVal)
DOM: Implements
SVGAnimatedBoolean.setBaseVal(boolean) . |
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, removeAnimatedAttributeListener
protected boolean defaultValue
protected boolean valid
protected boolean baseVal
protected boolean animVal
protected boolean changing
public SVGOMAnimatedBoolean(AbstractElement elt, java.lang.String ns, java.lang.String ln, boolean 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 boolean getBaseVal()
SVGAnimatedBoolean.getBaseVal()
.getBaseVal
in interface org.w3c.dom.svg.SVGAnimatedBoolean
protected void update()
public void setBaseVal(boolean baseVal) throws DOMException
SVGAnimatedBoolean.setBaseVal(boolean)
.setBaseVal
in interface org.w3c.dom.svg.SVGAnimatedBoolean
DOMException
public boolean getAnimVal()
SVGAnimatedBoolean.getAnimVal()
.getAnimVal
in interface org.w3c.dom.svg.SVGAnimatedBoolean
public void setAnimatedValue(boolean animVal)
protected void updateAnimatedValue(AnimatableValue val)
AnimatableValue
.updateAnimatedValue
in class AbstractSVGAnimatedValue
public AnimatableValue getUnderlyingValue(AnimationTarget target)
AnimatableValue
.getUnderlyingValue
in interface AnimatedLiveAttributeValue
public void attrAdded(Attr node, java.lang.String newv)
attrAdded
in interface LiveAttributeValue
public void attrModified(Attr node, java.lang.String oldv, java.lang.String newv)
attrModified
in interface LiveAttributeValue
public void attrRemoved(Attr node, java.lang.String oldv)
attrRemoved
in interface LiveAttributeValue
Copyright © 2022 Apache Software Foundation. All Rights Reserved.