Package com.formdev.flatlaf.util
Interface Animator.Interpolator
- All Known Implementing Classes:
CubicBezierEasing
- Enclosing class:
Animator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interpolator used by animation to change timing fraction. E.g. for easing.
-
Method Summary
Modifier and TypeMethodDescriptionfloat
interpolate
(float fraction) Interpolate the given fraction and returns a new fraction.
-
Method Details
-
interpolate
float interpolate(float fraction) Interpolate the given fraction and returns a new fraction. Both fractions are in range [0, 1].- Parameters:
fraction
- the percent (0 to 1) elapsed of the current animation cycle- Returns:
- new fraction in range [0, 1]
-