Method Summary |
void |
breakpoint()
Suspends the animator until one of the restart actions is triggered. |
boolean |
buttonAction(String actionCommand)
Triggers an action for the action specified by the
action command. |
void |
callAction()
Triggers a "call" action, as if the Call button
is pushed. |
void |
checkForTermination()
Checks to see whether this Animator has been asked
to terminate. |
void |
delay()
Delays the calling thread according to the speed. |
int |
getAnimatorState()
Returns the state of the animator. |
double |
getSpeed()
Returns the speed parameter for the animator. |
void |
pause(double milliseconds)
Delays this thread for the specified time, which is expressed in
milliseconds. |
void |
registerSpeedBar(JScrollBar scrollBar)
Registers the specified scroll bar as the delay controller for the animator. |
void |
registerSpeedBar(JSlider slider)
Registers the specified slider as the delay controller for the animator. |
void |
requestTermination()
Signals the Animator that it should stop running at the
next available opportunity, which is when the client next calls
pause or checkForTermination. |
void |
run()
Specifies the code for the animator. |
void |
setSpeed(double speed)
Sets the speed parameter for the animator. |
void |
start()
Starts the thread. |
void |
startAction()
Triggers a "start" action, as if the Start button
is pushed. |
void |
stepAction()
Triggers a "step" action, as if the Step button
is pushed. |
void |
stopAction()
Triggers a "stop" action, as if the Stop button
is pushed. |
void |
trace()
Checks the state of the animator and executes any actions have been requested. |
void |
trace(int depth)
Checks the state of the animator and executes any actions have been requested
to occur at the specified call stack depth. |