Package org.apache.batik.anim.dom
Class SVGOMAnimatedBoolean
java.lang.Object
org.apache.batik.anim.dom.AbstractSVGAnimatedValue
org.apache.batik.anim.dom.SVGOMAnimatedBoolean
- All Implemented Interfaces:
AnimatedLiveAttributeValue
,LiveAttributeValue
,org.w3c.dom.svg.SVGAnimatedBoolean
public class SVGOMAnimatedBoolean
extends AbstractSVGAnimatedValue
implements org.w3c.dom.svg.SVGAnimatedBoolean
This class implements the
SVGAnimatedBoolean
interface.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
The current animated value.protected boolean
The current base value.protected boolean
Whether the value is changing.protected boolean
The default value.protected boolean
Whether the base value is valid.Fields inherited from class org.apache.batik.anim.dom.AbstractSVGAnimatedValue
element, hasAnimVal, listeners, localName, namespaceURI
-
Constructor Summary
ConstructorsConstructorDescriptionSVGOMAnimatedBoolean
(AbstractElement elt, String ns, String ln, boolean val) Creates a new SVGOMAnimatedBoolean. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.boolean
DOM: ImplementsSVGAnimatedBoolean.getAnimVal()
.boolean
DOM: ImplementsSVGAnimatedBoolean.getBaseVal()
.getUnderlyingValue
(AnimationTarget target) Returns the base value of the attribute as anAnimatableValue
.void
setAnimatedValue
(boolean animVal) Sets the animated value.void
setBaseVal
(boolean baseVal) DOM: ImplementsSVGAnimatedBoolean.setBaseVal(boolean)
.protected void
update()
Updates the base value from the attribute.protected void
Updates the animated value with the givenAnimatableValue
.Methods inherited from class org.apache.batik.anim.dom.AbstractSVGAnimatedValue
addAnimatedAttributeListener, fireAnimatedAttributeListeners, fireBaseAttributeListeners, getLocalName, getNamespaceURI, isSpecified, removeAnimatedAttributeListener
-
Field Details
-
defaultValue
protected boolean defaultValueThe default value. -
valid
protected boolean validWhether the base value is valid. -
baseVal
protected boolean baseValThe current base value. -
animVal
protected boolean animValThe current animated value. -
changing
protected boolean changingWhether the value is changing.
-
-
Constructor Details
-
SVGOMAnimatedBoolean
Creates a new SVGOMAnimatedBoolean.- Parameters:
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.
-
-
Method Details
-
getBaseVal
public boolean getBaseVal()DOM: ImplementsSVGAnimatedBoolean.getBaseVal()
.- Specified by:
getBaseVal
in interfaceorg.w3c.dom.svg.SVGAnimatedBoolean
-
update
protected void update()Updates the base value from the attribute. -
setBaseVal
DOM: ImplementsSVGAnimatedBoolean.setBaseVal(boolean)
.- Specified by:
setBaseVal
in interfaceorg.w3c.dom.svg.SVGAnimatedBoolean
- Throws:
DOMException
-
getAnimVal
public boolean getAnimVal()DOM: ImplementsSVGAnimatedBoolean.getAnimVal()
.- Specified by:
getAnimVal
in interfaceorg.w3c.dom.svg.SVGAnimatedBoolean
-
setAnimatedValue
public void setAnimatedValue(boolean animVal) Sets the animated value. -
updateAnimatedValue
Updates the animated value with the givenAnimatableValue
.- Specified by:
updateAnimatedValue
in classAbstractSVGAnimatedValue
-
getUnderlyingValue
Returns the base value of the attribute as anAnimatableValue
.- Specified by:
getUnderlyingValue
in interfaceAnimatedLiveAttributeValue
-
attrAdded
Called when an Attr node has been added.- Specified by:
attrAdded
in interfaceLiveAttributeValue
-
attrModified
Called when an Attr node has been modified.- Specified by:
attrModified
in interfaceLiveAttributeValue
-
attrRemoved
Called when an Attr node has been removed.- Specified by:
attrRemoved
in interfaceLiveAttributeValue
-