|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--GP.Animator
This is an abstract class that has an abstract Action method that you can override. This method is called at regular intervals by the animator once you tell it to Start();
Constructor Summary | |
Animator(Container container)
This constructor builds the animator with a container. |
|
Animator(Container container,
double interval)
This constructor builds the animator with a container and a time interval. |
Method Summary | |
abstract void |
Action()
This is the method that the animator calls that you need to overwrite to do something. |
double |
GetInterval()
This function returns the interval between calls to Doit(). |
void |
SetInterval(double milliseconds)
Use this method to set the interval between calls to the DoIt() method. |
void |
Start()
This method causes the animator to start calling DoIt() repeatedly. |
void |
Step()
This method calls DoIt() once, regardless of whether the animator is playing or not. |
void |
Stop()
This method causes the animator to stop calling DoIt(). |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Animator(Container container)
container
- Any Container.public Animator(Container container, double interval)
container
- Any Container.interval
- The interval between calls to Action().Method Detail |
public abstract void Action()
public void Start()
public void Step()
public void Stop()
public void SetInterval(double milliseconds)
milliseconds
- public double GetInterval()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |