Class SimpleAnimation
java.lang.Object
org.apache.batik.anim.AbstractAnimation
org.apache.batik.anim.InterpolatingAnimation
org.apache.batik.anim.SimpleAnimation
- Direct Known Subclasses:
ColorAnimation, TransformAnimation
An animation class for 'animate' animations.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AnimatableValueRelative offset value for the animation.protected AnimatableValueStarting value of the animation.protected AnimatableValueEnding value of the animation.protected AnimatableValue[]Values between which to interpolate.Fields inherited from class InterpolatingAnimation
additive, calcMode, cumulative, keySplineCubics, keySplines, keyTimesFields inherited from class AbstractAnimation
animatableElement, beginTime, CALC_MODE_DISCRETE, CALC_MODE_LINEAR, CALC_MODE_PACED, CALC_MODE_SPLINE, composedValue, higherAnimation, isActive, isDirty, isFrozen, lowerAnimation, timedElement, toAnimation, usesUnderlyingValue, value -
Constructor Summary
ConstructorsConstructorDescriptionSimpleAnimation(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
Modifier and TypeMethodDescriptionprotected voidsampledAtUnitTime(float unitTime, int repeatIteration) Called when the element is sampled at the given unit time.Methods inherited from class InterpolatingAnimation
sampledAt, sampledLastValue, willReplaceMethods inherited from class AbstractAnimation
getComposedValue, getTimedElement, getValue, markDirty, toString, usesUnderlyingValue
-
Field Details
-
values
Values between which to interpolate. -
from
Starting value of the animation. -
to
Ending value of the animation. -
by
Relative offset value for the animation.
-
-
Constructor Details
-
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 Details
-
sampledAtUnitTime
protected void sampledAtUnitTime(float unitTime, int repeatIteration) Called when the element is sampled at the given unit time. This updates theAbstractAnimation.valueof the animation if active.- Specified by:
sampledAtUnitTimein classInterpolatingAnimation
-