Package org.reactfx.util
Interface Interpolator<T>
- Type Parameters:
T
- type of the values to interpolate
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interpolates values between two boundary values.
This is a simpler and more flexible interface than the class
Interpolator
. Simpler, because it only interpolates
values of one type, T
. More flexible, because the values to
interpolate don't have to be numbers nor implement
Interpolatable.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Interpolator
<Double> static final Interpolator
<Integer> static final Interpolator
<Long> static final Interpolator
<Number> static final Interpolator
<Double> static final Interpolator
<Integer> static final Interpolator
<Long> static final Interpolator
<Number> static final Interpolator
<Double> static final Interpolator
<Integer> static final Interpolator
<Long> static final Interpolator
<Number> static final Interpolator
<Double> static final Interpolator
<Integer> static final Interpolator
<Long> static final Interpolator
<Number> -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends javafx.animation.Interpolatable<T>>
Interpolator<T> get()
interpolate
(T start, T end, double fraction)
-
Field Details
-
LINEAR_DOUBLE
-
LINEAR_INTEGER
-
LINEAR_LONG
-
LINEAR_NUMBER
-
EASE_BOTH_DOUBLE
-
EASE_BOTH_INTEGER
-
EASE_BOTH_LONG
-
EASE_BOTH_NUMBER
-
EASE_IN_DOUBLE
-
EASE_IN_INTEGER
-
EASE_IN_LONG
-
EASE_IN_NUMBER
-
EASE_OUT_DOUBLE
-
EASE_OUT_INTEGER
-
EASE_OUT_LONG
-
EASE_OUT_NUMBER
-
-
Method Details
-
interpolate
-
get
-