public interface Animator
Modifier and Type | Method and Description |
---|---|
void |
animate()
Main call back animated method.
|
long |
animationPeriod()
Returns the animation period in milliseconds.
|
boolean |
animationStarted()
Returns
true if animation was started and false otherwise. |
boolean |
invokeAnimationHandler()
Returns whether or not the animated method is defined externally, as when register it
through reflection.
|
void |
restartAnimation()
Simply calls
stopAnimation() and then startAnimation() . |
void |
setAnimationPeriod(long period)
Sets the animation period in milliseconds.
|
void |
setAnimationPeriod(long period,
boolean restart)
Sets the animation period in milliseconds and restarts the animation according to
restart . |
void |
setTimingHandler(TimingHandler h)
Sets the timing handler.
|
void |
startAnimation()
Starts the animation executing periodically the animated call back method.
|
void |
stopAnimation()
Stops the animation.
|
SeqTimer |
timer()
Returns the sequential timer.
|
TimingHandler |
timingHandler()
Returns the timing handler.
|
void |
toggleAnimation()
Starts or stops the animation according to
animationStarted() . |
void animate()
boolean invokeAnimationHandler()
long animationPeriod()
void setAnimationPeriod(long period)
void setAnimationPeriod(long period, boolean restart)
restart
.void stopAnimation()
void startAnimation()
void restartAnimation()
stopAnimation()
and then startAnimation()
.void toggleAnimation()
animationStarted()
.boolean animationStarted()
true
if animation was started and false
otherwise.void setTimingHandler(TimingHandler h)
TimingHandler timingHandler()
SeqTimer timer()
Processing Library proscene by Jean Pierre Charalambos. (c) 2014-2017 National University of Colombia