org.apache.batik.dom.svg

Class SVGOMAnimatedPreserveAspectRatio

public class SVGOMAnimatedPreserveAspectRatio extends AbstractSVGAnimatedValue implements SVGAnimatedPreserveAspectRatio

This class implements the {@link SVGAnimatedPreserveAspectRatio} interface.
Nested Class Summary
classSVGOMAnimatedPreserveAspectRatio.AnimSVGPARValue
This class represents the SVGPreserveAspectRatio returned by {@link #getAnimVal()}.
classSVGOMAnimatedPreserveAspectRatio.BaseSVGPARValue
This class represents the SVGPreserveAspectRatio returned by {@link #getBaseVal()}.
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.
SVGPreserveAspectRatiogetAnimVal()
DOM: Implements {@link SVGAnimatedPreserveAspectRatio#getAnimVal()}.
SVGPreserveAspectRatiogetBaseVal()
DOM: Implements {@link SVGAnimatedPreserveAspectRatio#getBaseVal()}.
AnimatableValuegetUnderlyingValue(AnimationTarget target)
Returns the base value of the attribute as an {@link AnimatableValue}.
protected voidupdateAnimatedValue(AnimatableValue val)
Updates the animated value with the given {@link 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.

getAnimVal

public SVGPreserveAspectRatio getAnimVal()
DOM: Implements {@link SVGAnimatedPreserveAspectRatio#getAnimVal()}.

getBaseVal

public SVGPreserveAspectRatio getBaseVal()
DOM: Implements {@link SVGAnimatedPreserveAspectRatio#getBaseVal()}.

getUnderlyingValue

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

updateAnimatedValue

protected void updateAnimatedValue(AnimatableValue val)
Updates the animated value with the given {@link AnimatableValue}.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.