org.apache.batik.anim

Class SimpleAnimation

public class SimpleAnimation extends InterpolatingAnimation

An animation class for 'animate' animations.
Field Summary
protected AnimatableValueby
Relative offset value for the animation.
protected AnimatableValuefrom
Starting value of the animation.
protected AnimatableValueto
Ending value of the animation.
protected AnimatableValue[]values
Values between which to interpolate.
Constructor Summary
SimpleAnimation(TimedElement timedElement, AnimatableElement animatableElement, int calcMode, float[] keyTimes, float[] keySplines, boolean additive, boolean cumulative, AnimatableValue[] values, AnimatableValue from, AnimatableValue to, AnimatableValue by)
Creates a new SimpleAnimation.
Method Summary
protected voidsampledAtUnitTime(float unitTime, int repeatIteration)
Called when the element is sampled at the given unit time.

Field Detail

by

protected AnimatableValue by
Relative offset value for the animation.

from

protected AnimatableValue from
Starting value of the animation.

to

protected AnimatableValue to
Ending value of the animation.

values

protected AnimatableValue[] values
Values between which to interpolate.

Constructor Detail

SimpleAnimation

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

Method Detail

sampledAtUnitTime

protected void sampledAtUnitTime(float unitTime, int repeatIteration)
Called when the element is sampled at the given unit time. This updates the SimpleAnimation of the animation if active.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.