java.lang.Object
io.sf.carte.echosvg.anim.AbstractAnimation
io.sf.carte.echosvg.anim.InterpolatingAnimation
- Direct Known Subclasses:
- MotionAnimation,- SimpleAnimation
An abstract animation class for those animations that interpolate values.
 Specifically, this is for animations that have the 'calcMode', 'keyTimes',
 'keySplines', 'additive' and 'cumulative' attributes.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected booleanWhether this animation adds to ones below it in the animation sandwich or replaces them.protected intThe interpolation mode of this animator.protected booleanWhether this animation accumulates from previous iterations.protected Cubic[]Cubics built from the bezier control points inkeySplines.protected float[]Bezier control points that control the pacing of the animation.protected float[]Time values to control the pacing of the animation.Fields inherited from class io.sf.carte.echosvg.anim.AbstractAnimationanimatableElement, beginTime, CALC_MODE_DISCRETE, CALC_MODE_LINEAR, CALC_MODE_PACED, CALC_MODE_SPLINE, composedValue, higherAnimation, isActive, isDirty, isFrozen, lowerAnimation, timedElement, toAnimation, usesUnderlyingValue, value
- 
Constructor SummaryConstructorsConstructorDescriptionInterpolatingAnimation(TimedElement timedElement, AnimatableElement animatableElement, int calcMode, float[] keyTimes, float[] keySplines, boolean additive, boolean cumulative) Creates a new InterpolatingAnimation.
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidsampledAt(float simpleTime, float simpleDur, int repeatIteration) Called when the element is sampled at the given time.protected abstract voidsampledAtUnitTime(float unitTime, int repeatIteration) Called when the element is sampled at the given unit time.protected voidsampledLastValue(int repeatIteration) Called when the element is sampled for its "last" value.protected booleanReturns whether this animation will replace values on animations lower in the sandwich.Methods inherited from class io.sf.carte.echosvg.anim.AbstractAnimationgetComposedValue, getTimedElement, getValue, markDirty, toString, usesUnderlyingValue
- 
Field Details- 
calcModeprotected int calcModeThe interpolation mode of this animator. This should take one of the CALC_MODE_* constants defined inAbstractAnimation.
- 
keyTimesprotected float[] keyTimesTime values to control the pacing of the animation.
- 
keySplinesprotected float[] keySplinesBezier control points that control the pacing of the animation.
- 
keySplineCubicsCubics built from the bezier control points inkeySplines.
- 
additiveprotected boolean additiveWhether this animation adds to ones below it in the animation sandwich or replaces them.
- 
cumulativeprotected boolean cumulativeWhether this animation accumulates from previous iterations.
 
- 
- 
Constructor Details- 
InterpolatingAnimationpublic InterpolatingAnimation(TimedElement timedElement, AnimatableElement animatableElement, int calcMode, float[] keyTimes, float[] keySplines, boolean additive, boolean cumulative) Creates a new InterpolatingAnimation.
 
- 
- 
Method Details- 
willReplaceprotected boolean willReplace()Returns whether this animation will replace values on animations lower in the sandwich.- Overrides:
- willReplacein class- AbstractAnimation
 
- 
sampledLastValueprotected void sampledLastValue(int repeatIteration) Called when the element is sampled for its "last" value.- Overrides:
- sampledLastValuein class- AbstractAnimation
 
- 
sampledAtprotected void sampledAt(float simpleTime, float simpleDur, int repeatIteration) Called when the element is sampled at the given time.- Specified by:
- sampledAtin class- AbstractAnimation
 
- 
sampledAtUnitTimeprotected abstract 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.
 
-