public static final class AnimationManager.OngoingAnimation extends Object
started
in AnimationManager
and has not been stopped
yet.
It can be retrieved using the getCurrentAnimation
method.
Constructor and Description |
---|
OngoingAnimation(IAnimation animation,
double fraction)
Constructs the OngoingAnimation with information on the animation and it's state.
|
Modifier and Type | Method and Description |
---|---|
IAnimation |
getAnimation()
The animation that is ongoing, cannot be
null . |
double |
getFraction()
The current position within the animation.
|
public OngoingAnimation(@NotNull IAnimation animation, double fraction)
animation
- the ongoing animation.fraction
- the fraction status for the animation.@NotNull public IAnimation getAnimation()
null
.public double getFraction()