Package org.vanted.animation
Class ContinuousAnimation<T extends InterpolatableTimePoint>
java.lang.Object
org.vanted.animation.Animation<T>
org.vanted.animation.ContinuousAnimation<T>
- Direct Known Subclasses:
ArrowSizeAnimation
,ColorAnimation
,FrameThicknessAnimation
,OpacityAnimation
,Position2DAnimation
,PositionXAnimation
,PositionYAnimation
,SizeAnimation
public abstract class ContinuousAnimation<T extends InterpolatableTimePoint> extends Animation<T>
Similar to a normal animation but contains an Interpolator so that the
animation can transition from one data point value to another data point
value in a progressive manner.
- Author:
- - Patrick Shaw
-
Constructor Summary
Constructors Constructor Description ContinuousAnimation(Attributable attributable, List<T> dataPoints, double loopDuration)
Uses a LinearInterpolatorContinuousAnimation(Attributable attributable, List<T> dataPoints, double loopDuration, double startTime)
Uses a LinearInterpolatorContinuousAnimation(Attributable attributable, List<T> dataPoints, double loopDuration, double startTime, int noLoops)
Uses a LinearInterpolator.ContinuousAnimation(Attributable attributable, List<T> dataPoints, double loopDuration, double startTime, int noLoops, Looper looper)
Uses a LinearInterpolatorContinuousAnimation(Attributable attributable, List<T> dataPoints, double loopDuration, double startTime, int noLoops, Looper looper, Interpolator interpolator)
-
Method Summary
Modifier and Type Method Description void
update(double time, boolean animatorFinished)
Modifies a particular attribute in a node relative to the time elapsed.Methods inherited from class org.vanted.animation.Animation
getEndTime, getLoopDuration, getStartTime, isFinished, reset, setDataPoints, setLoopDuration, setLoopDuration, setLoopDuration, setLooper, setNoLoops, setNoLoops, setStartTime, setStartTime
-
Constructor Details
-
ContinuousAnimation
public ContinuousAnimation(Attributable attributable, List<T> dataPoints, double loopDuration, double startTime, int noLoops, Looper looper, Interpolator interpolator)- Parameters:
interpolator
- Determines how values will be interpolated between data points.
-
ContinuousAnimation
public ContinuousAnimation(Attributable attributable, List<T> dataPoints, double loopDuration, double startTime, int noLoops, Looper looper)Uses a LinearInterpolator -
ContinuousAnimation
public ContinuousAnimation(Attributable attributable, List<T> dataPoints, double loopDuration, double startTime, int noLoops)Uses a LinearInterpolator. -
ContinuousAnimation
public ContinuousAnimation(Attributable attributable, List<T> dataPoints, double loopDuration, double startTime)Uses a LinearInterpolator -
ContinuousAnimation
Uses a LinearInterpolator- Parameters:
interpolator
- Determines how values will be interpolated between data points.
-
-
Method Details
-
update
public void update(double time, boolean animatorFinished)Description copied from class:Animation
Modifies a particular attribute in a node relative to the time elapsed.- Overrides:
update
in classAnimation<T extends InterpolatableTimePoint>
- Parameters:
time
- The amount of time that has elapsed so far.
-