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 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

      public ContinuousAnimation​(Attributable attributable, List<T> dataPoints, double loopDuration)
      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 class Animation<T extends InterpolatableTimePoint>
      Parameters:
      time - The amount of time that has elapsed so far.