Class ColorAnimation

Direct Known Subclasses:
FillColorAnimation, LabelColorAnimation, OutlineColorAnimation

public abstract class ColorAnimation
extends ContinuousAnimation<ColorTimePoint>
Animates the color of an Attributable object.
Author:
- Patrick Shaw
  • Constructor Details

    • ColorAnimation

      public ColorAnimation​(Attributable attributable, List<ColorTimePoint> dataPoints, double loopDuration, double startTime, int noLoops, Looper looper, Interpolator interpolator, ColorMode colorMode)
      Parameters:
      colorMode - Specifies which colour-interpolation mode the interpolator should use
      RGB: Maintains brightness but not saturation during interpolation
      HSB: Maintains saturation but not perceived-brightness during interpolation
      TODO CIE-Lch: Maintains both perceived-brightness and saturation. Performance heavy.
    • ColorAnimation

      public ColorAnimation​(Attributable attributable, List<ColorTimePoint> dataPoints, double loopDuration, double startTime, int noLoops, Looper looper, Interpolator interpolator)
      Uses RGB interpolation
    • ColorAnimation

      public ColorAnimation​(Attributable attributable, List<ColorTimePoint> dataPoints, double loopDuration, double startTime, int noLoops, Looper looper)
      Uses RGB interpolation
    • ColorAnimation

      public ColorAnimation​(Attributable attributable, List<ColorTimePoint> dataPoints, double loopDuration, double startTime, int noLoops)
      Uses RGB interpolation
    • ColorAnimation

      public ColorAnimation​(Attributable attributable, List<ColorTimePoint> dataPoints, double loopDuration, double startTime)
      Uses RGB interpolation
    • ColorAnimation

      public ColorAnimation​(Attributable attributable, List<ColorTimePoint> dataPoints, double loopDuration)
      Uses RGB interpolation