public class AbstractAnimator extends Object
System.currentTimeMillis()
or a
frame number when rendering movies.
Copied from bdv-core, where it was copied from Mastodon.
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.