public class ConditionalInterpolator
extends javafx.animation.Interpolator
Interpolator
with a defined condition.Constructor and Description |
---|
ConditionalInterpolator(javafx.animation.Interpolator interpolator,
javafx.beans.value.WritableValue<Object> target,
BooleanSupplier condition) |
Modifier and Type | Method and Description |
---|---|
boolean |
interpolate(boolean startValue,
boolean endValue,
double fraction) |
double |
interpolate(double startValue,
double endValue,
double fraction) |
int |
interpolate(int startValue,
int endValue,
double fraction) |
long |
interpolate(long startValue,
long endValue,
double fraction) |
Object |
interpolate(Object startValue,
Object endValue,
double fraction) |
public ConditionalInterpolator(javafx.animation.Interpolator interpolator, javafx.beans.value.WritableValue<Object> target, BooleanSupplier condition)
public Object interpolate(Object startValue, Object endValue, double fraction)
interpolate
in class javafx.animation.Interpolator
public boolean interpolate(boolean startValue, boolean endValue, double fraction)
interpolate
in class javafx.animation.Interpolator
public double interpolate(double startValue, double endValue, double fraction)
interpolate
in class javafx.animation.Interpolator
public int interpolate(int startValue, int endValue, double fraction)
interpolate
in class javafx.animation.Interpolator
public long interpolate(long startValue, long endValue, double fraction)
interpolate
in class javafx.animation.Interpolator