org.apache.batik.dom.svg

Class SVGOMAnimatedPreserveAspectRatio

public class SVGOMAnimatedPreserveAspectRatio extends AbstractSVGAnimatedValue implements SVGAnimatedPreserveAspectRatio

This class implements the SVGAnimatedPreserveAspectRatio interface.
Nested Class Summary
classSVGOMAnimatedPreserveAspectRatio.AnimSVGPARValue
This class represents the SVGPreserveAspectRatio returned by AnimSVGPARValue.
classSVGOMAnimatedPreserveAspectRatio.BaseSVGPARValue
This class represents the SVGPreserveAspectRatio returned by BaseSVGPARValue.
Field Summary
protected SVGOMAnimatedPreserveAspectRatio.AnimSVGPARValueanimVal
The animated value.
protected SVGOMAnimatedPreserveAspectRatio.BaseSVGPARValuebaseVal
The base value.
protected booleanchanging
Whether the value is changing.
Constructor Summary
SVGOMAnimatedPreserveAspectRatio(AbstractElement elt)
Creates a new SVGOMAnimatedPreserveAspectRatio.
Method Summary
voidattrAdded(Attr node, String newv)
Called when an Attr node has been added.
voidattrModified(Attr node, String oldv, String newv)
Called when an Attr node has been modified.
voidattrRemoved(Attr node, String oldv)
Called when an Attr node has been removed.
voidcheck()
Throws an exception if the points list value is malformed.
SVGPreserveAspectRatiogetAnimVal()
DOM: Implements SVGAnimatedPreserveAspectRatio#getAnimVal().
SVGPreserveAspectRatiogetBaseVal()
DOM: Implements SVGAnimatedPreserveAspectRatio#getBaseVal().
AnimatableValuegetUnderlyingValue(AnimationTarget target)
Returns the base value of the attribute as an AnimatableValue.
protected voidupdateAnimatedValue(AnimatableValue val)
Updates the animated value with the given AnimatableValue.

Field Detail

animVal

protected SVGOMAnimatedPreserveAspectRatio.AnimSVGPARValue animVal
The animated value.

baseVal

protected SVGOMAnimatedPreserveAspectRatio.BaseSVGPARValue baseVal
The base value.

changing

protected boolean changing
Whether the value is changing.

Constructor Detail

SVGOMAnimatedPreserveAspectRatio

public SVGOMAnimatedPreserveAspectRatio(AbstractElement elt)
Creates a new SVGOMAnimatedPreserveAspectRatio.

Parameters: elt The associated element.

Method Detail

attrAdded

public void attrAdded(Attr node, String newv)
Called when an Attr node has been added.

attrModified

public void attrModified(Attr node, String oldv, String newv)
Called when an Attr node has been modified.

attrRemoved

public void attrRemoved(Attr node, String oldv)
Called when an Attr node has been removed.

check

public void check()
Throws an exception if the points list value is malformed.

getAnimVal

public SVGPreserveAspectRatio getAnimVal()
DOM: Implements SVGAnimatedPreserveAspectRatio#getAnimVal().

getBaseVal

public SVGPreserveAspectRatio getBaseVal()
DOM: Implements SVGAnimatedPreserveAspectRatio#getBaseVal().

getUnderlyingValue

public AnimatableValue getUnderlyingValue(AnimationTarget target)
Returns the base value of the attribute as an AnimatableValue.

updateAnimatedValue

protected void updateAnimatedValue(AnimatableValue val)
Updates the animated value with the given AnimatableValue.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.