org.apache.batik.anim

Class TransformAnimation

public class TransformAnimation extends SimpleAnimation

An animation class for 'animateTransform' animations.
Field Summary
protected float[]keyTimes2
Time values to control the pacing of the second component of the animation.
protected float[]keyTimes3
Time values to control the pacing of the third component of the animation.
protected shorttype
The transform type.
Constructor Summary
TransformAnimation(TimedElement timedElement, AnimatableElement animatableElement, int calcMode, float[] keyTimes, float[] keySplines, boolean additive, boolean cumulative, AnimatableValue[] values, AnimatableValue from, AnimatableValue to, AnimatableValue by, short type)
Creates a new TransformAnimation.
Method Summary
protected voidsampledAtUnitTime(float unitTime, int repeatIteration)
Called when the element is sampled at the given unit time.

Field Detail

keyTimes2

protected float[] keyTimes2
Time values to control the pacing of the second component of the animation.

keyTimes3

protected float[] keyTimes3
Time values to control the pacing of the third component of the animation.

type

protected short type
The transform type. This should take one of the constants defined in {@link org.w3c.dom.svg.SVGTransform}.

Constructor Detail

TransformAnimation

public TransformAnimation(TimedElement timedElement, AnimatableElement animatableElement, int calcMode, float[] keyTimes, float[] keySplines, boolean additive, boolean cumulative, AnimatableValue[] values, AnimatableValue from, AnimatableValue to, AnimatableValue by, short type)
Creates a new TransformAnimation.

Method Detail

sampledAtUnitTime

protected void sampledAtUnitTime(float unitTime, int repeatIteration)
Called when the element is sampled at the given unit time. This updates the {@link #value} of the animation if active.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.