javafx.animation
Interface Interpolatable<T>
All Known Implementing Classes:
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface Interpolatable<T>
A value that can be interpolated. It defines single
interpolate(Object, double) method, which returns interpolated value of given fraction.Since:
JavaFX 2.0
-
Method Summary
All MethodsInstance MethodsAbstract Methods Modifier and Type Method and Description Tinterpolate(T endValue, double t)The function calculates an interpolated value along the fractiontbetween0.0and1.0.
-
Method Detail
-
interpolate
T interpolate(T endValue, double t)The function calculates an interpolated value along the fractiontbetween0.0and1.0. Whent= 1.0,endValis returned.Parameters:
endValue- target valueReturns:
interpolated value
-
© 2008, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from JavaFX API Documentation.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Java, JavaFX and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.