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 theSVGAnimatedBooleaninterface.- Version:
- $Id: SVGOMAnimatedBoolean.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Field Summary
Fields Modifier and Type Field Description protected booleananimValThe current animated value.protected booleanbaseValThe current base value.protected booleanchangingWhether the value is changing.protected booleandefaultValueThe default value.protected booleanvalidWhether the base value is valid.-
Fields inherited from class org.apache.batik.anim.dom.AbstractSVGAnimatedValue
element, hasAnimVal, listeners, localName, namespaceURI
-
-
Constructor Summary
Constructors Constructor Description SVGOMAnimatedBoolean(AbstractElement elt, java.lang.String ns, java.lang.String ln, boolean val)Creates a new SVGOMAnimatedBoolean.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattrAdded(org.w3c.dom.Attr node, java.lang.String newv)Called when an Attr node has been added.voidattrModified(org.w3c.dom.Attr node, java.lang.String oldv, java.lang.String newv)Called when an Attr node has been modified.voidattrRemoved(org.w3c.dom.Attr node, java.lang.String oldv)Called when an Attr node has been removed.booleangetAnimVal()DOM: ImplementsSVGAnimatedBoolean.getAnimVal().booleangetBaseVal()DOM: ImplementsSVGAnimatedBoolean.getBaseVal().AnimatableValuegetUnderlyingValue(AnimationTarget target)Returns the base value of the attribute as anAnimatableValue.voidsetAnimatedValue(boolean animVal)Sets the animated value.voidsetBaseVal(boolean baseVal)DOM: ImplementsSVGAnimatedBoolean.setBaseVal(boolean).protected voidupdate()Updates the base value from the attribute.protected voidupdateAnimatedValue(AnimatableValue val)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 Detail
-
defaultValue
protected boolean defaultValue
The default value.
-
valid
protected boolean valid
Whether the base value is valid.
-
baseVal
protected boolean baseVal
The current base value.
-
animVal
protected boolean animVal
The current animated value.
-
changing
protected boolean changing
Whether the value is changing.
-
-
Constructor Detail
-
SVGOMAnimatedBoolean
public SVGOMAnimatedBoolean(AbstractElement elt, java.lang.String ns, java.lang.String ln, boolean val)
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 Detail
-
getBaseVal
public boolean getBaseVal()
DOM: ImplementsSVGAnimatedBoolean.getBaseVal().- Specified by:
getBaseValin interfaceorg.w3c.dom.svg.SVGAnimatedBoolean
-
update
protected void update()
Updates the base value from the attribute.
-
setBaseVal
public void setBaseVal(boolean baseVal) throws org.w3c.dom.DOMExceptionDOM: ImplementsSVGAnimatedBoolean.setBaseVal(boolean).- Specified by:
setBaseValin interfaceorg.w3c.dom.svg.SVGAnimatedBoolean- Throws:
org.w3c.dom.DOMException
-
getAnimVal
public boolean getAnimVal()
DOM: ImplementsSVGAnimatedBoolean.getAnimVal().- Specified by:
getAnimValin interfaceorg.w3c.dom.svg.SVGAnimatedBoolean
-
setAnimatedValue
public void setAnimatedValue(boolean animVal)
Sets the animated value.
-
updateAnimatedValue
protected void updateAnimatedValue(AnimatableValue val)
Updates the animated value with the givenAnimatableValue.- Specified by:
updateAnimatedValuein classAbstractSVGAnimatedValue
-
getUnderlyingValue
public AnimatableValue getUnderlyingValue(AnimationTarget target)
Returns the base value of the attribute as anAnimatableValue.- Specified by:
getUnderlyingValuein interfaceAnimatedLiveAttributeValue
-
attrAdded
public void attrAdded(org.w3c.dom.Attr node, java.lang.String newv)Called when an Attr node has been added.- Specified by:
attrAddedin interfaceLiveAttributeValue
-
attrModified
public void attrModified(org.w3c.dom.Attr node, java.lang.String oldv, java.lang.String newv)Called when an Attr node has been modified.- Specified by:
attrModifiedin interfaceLiveAttributeValue
-
attrRemoved
public void attrRemoved(org.w3c.dom.Attr node, java.lang.String oldv)Called when an Attr node has been removed.- Specified by:
attrRemovedin interfaceLiveAttributeValue
-
-