java.lang.Object
io.sf.carte.echosvg.anim.AbstractAnimation
io.sf.carte.echosvg.anim.InterpolatingAnimation
io.sf.carte.echosvg.anim.SimpleAnimation
io.sf.carte.echosvg.anim.TransformAnimation
An animation class for 'animateTransform' animations.
-
Field Summary
Modifier and TypeFieldDescriptionprotected float[]
Time values to control the pacing of the second component of the animation.protected float[]
Time values to control the pacing of the third component of the animation.protected short
The transform type.Fields inherited from class io.sf.carte.echosvg.anim.SimpleAnimation
by, from, to, values
Fields inherited from class io.sf.carte.echosvg.anim.InterpolatingAnimation
additive, calcMode, cumulative, keySplineCubics, keySplines, keyTimes
Fields inherited from class io.sf.carte.echosvg.anim.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
ConstructorDescriptionTransformAnimation
(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
Modifier and TypeMethodDescriptionprotected void
sampledAtUnitTime
(float unitTime, int repeatIteration) Called when the element is sampled at the given unit time.Methods inherited from class io.sf.carte.echosvg.anim.InterpolatingAnimation
sampledAt, sampledLastValue, willReplace
Methods inherited from class io.sf.carte.echosvg.anim.AbstractAnimation
getComposedValue, getTimedElement, getValue, markDirty, toString, usesUnderlyingValue
-
Field Details
-
type
protected short typeThe transform type. This should take one of the constants defined inSVGTransform
. -
keyTimes2
protected float[] keyTimes2Time values to control the pacing of the second component of the animation. -
keyTimes3
protected float[] keyTimes3Time values to control the pacing of the third component of the animation.
-
-
Constructor Details
-
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 Details
-
sampledAtUnitTime
protected void sampledAtUnitTime(float unitTime, int repeatIteration) Called when the element is sampled at the given unit time. This updates theAbstractAnimation.value
of the animation if active.- Overrides:
sampledAtUnitTime
in classSimpleAnimation
-