public class AbstractAnimator extends Object
ViewerFrame
instance. The time unit for animation duration, start time
and current time is not specified, for example you can use ms obtained
from System.currentTimeMillis()
or a frame number when rendering
movies.Constructor and Description |
---|
AbstractAnimator(long duration)
Create new animator with the given duration.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isComplete()
Returns true if the animation is completed at the
current time . |
double |
ratioComplete()
Returns the completion ratio.
|
void |
setTime(long time)
Sets the current time for the animation.
|
public AbstractAnimator(long duration)
setTime(long)
.duration
- animation duration (in time units)public void setTime(long time)
time
- current time (in time units)public boolean isComplete()
current time
.public double ratioComplete()
Copyright © 2015–2021 Fiji. All rights reserved.