Class Interval

java.lang.Object
javafx.animation.Interpolator
io.github.palexdev.mfxeffects.animations.base.Curve
io.github.palexdev.mfxeffects.animations.motion.Interval

public class Interval extends Curve

A curve that is 0.0 until begin, then curved (according to the given Curve) from 0.0 at begin to 1.0 at end then remains 1.0 past end.

An Interval can be used to delay an animation. For example, a six-second animation that uses an Interval with its begin set to 0.5 and its end set to 1.0 will essentially become a three-second animation that starts three seconds later.

Interval

  • Nested Class Summary

    Nested classes/interfaces inherited from class javafx.animation.Interpolator

    javafx.animation.Interpolator.StepPosition
  • Field Summary

    Fields inherited from class javafx.animation.Interpolator

    DISCRETE, EASE_BOTH, EASE_IN, EASE_OUT, LINEAR, STEP_END, STEP_START
  • Constructor Summary

    Constructors
    Constructor
    Description
    Interval(double begin, double end)
     
    Interval(double begin, double end, Curve curve)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    curve(double t)
     

    Methods inherited from class io.github.palexdev.mfxeffects.animations.base.Curve

    flipped

    Methods inherited from class javafx.animation.Interpolator

    interpolate, interpolate, interpolate, interpolate, interpolate, SPLINE, STEPS, TANGENT, TANGENT

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Interval

      public Interval(double begin, double end)
    • Interval

      public Interval(double begin, double end, Curve curve)
  • Method Details

    • curve

      public double curve(double t)
      Specified by:
      curve in class Curve