|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sub_arctic.anim.anim_generator
This is the object which generates the animation events. It works by delivering a "fake" animation event (also known as a "tick"), then sleeping for a short period of time. Normally exactly one object of this class is created; it is created by the first call to "set_need_ticks(true)".
Field Summary | |
protected static java.lang.Thread |
_anim_thread
The thread which is providing the animation ticks |
protected static boolean |
_need_ticks
Indication of whether we need the pulses at all. |
protected static int |
_sleep_time
This is how long we sleep between animation event generations (in milliseconds). |
Method Summary | |
static boolean |
need_ticks()
Return whether we need the animation events (ticks) or not. |
void |
run()
This is the method that gets run on the thread. |
static void |
set_need_ticks(boolean b)
Set the state of tick (animation event) generation. |
static void |
set_sleep_time(int x)
Set the current amount of sleep time between animation events. |
static int |
sleep_time()
Retrieve the amount of time between animation events. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected static int _sleep_time
protected static java.lang.Thread _anim_thread
protected static boolean _need_ticks
Method Detail |
public static int sleep_time()
public static void set_sleep_time(int x)
public static boolean need_ticks()
The animation agent will turn on ticks when it has objects in its queues, and turn off ticks when it has no objects to consider.
public static void set_need_ticks(boolean b)
boolean
- b true if we need to be generating ticks to the event
dispatch code.public void run()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |