Package com.luciad.view.animation
Interface ALcdAnimation.Interpolator
- Enclosing class:
ALcdAnimation
public static interface ALcdAnimation.Interpolator
Implementations of this interface transform the relative progress of the animation
(between 0 and 1 with respect to the animation's duration). This enables users to
customize the timing of the animation.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ALcdAnimation.Interpolator
Implementation ofALcdAnimation.Interpolator
that returns the provided time unmodified.static final ALcdAnimation.Interpolator
Implementation ofALcdAnimation.Interpolator
that applies the "smooth step" functiony=x^2*(3-2*x)
. -
Method Summary
Modifier and TypeMethodDescriptiondouble
transform
(double aTime) Transforms the relative progress of the animation (between 0 and 1 with respect to the animation's duration).
-
Field Details
-
LINEAR
Implementation ofALcdAnimation.Interpolator
that returns the provided time unmodified. -
SMOOTH_STEP
Implementation ofALcdAnimation.Interpolator
that applies the "smooth step" functiony=x^2*(3-2*x)
.
-
-
Method Details
-
transform
double transform(double aTime) Transforms the relative progress of the animation (between 0 and 1 with respect to the animation's duration).- Parameters:
aTime
- the relative progress of the animation.- Returns:
- the transformed relative progress of the animation (value between 0 and 1).
-