|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
de.cau.cs.kieler.core.kivi.internal.EffectsWorker
public class EffectsWorker
Worker thread that handles the execution of effects.
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
EffectsWorker()
Default constructor, sets thread name as effects. |
Method Summary | |
---|---|
void |
addEffectsListener(IEffectsListener listener)
Add an effects listener to the worker. |
void |
enqueueEffect(IEffect effect)
Enqueue a single effect for execution. |
int |
getQueueSize()
Get the current size of the queue. |
void |
removeEffectsListener(IEffectsListener listener)
Remove an effects listener from the worker. |
void |
run()
When an object implementing interface Runnable is used
to create a thread, starting the thread causes the object's
run method to be called in that separately executing
thread. |
void |
undoEffect(IEffect effect)
Undo a single effect. |
Methods inherited from class java.lang.Thread |
---|
currentThread, getName, getPriority, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, setDaemon, setName, setPriority, sleep, start, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EffectsWorker()
Method Detail |
---|
public void run()
Runnable
Runnable
is used
to create a thread, starting the thread causes the object's
run
method to be called in that separately executing
thread.
run
in interface Runnable
run
in class Thread
public int getQueueSize()
public void enqueueEffect(IEffect effect)
effect
- the effect to executepublic void undoEffect(IEffect effect)
effect
- the effect to undopublic void addEffectsListener(IEffectsListener listener)
listener
- the listener to addpublic void removeEffectsListener(IEffectsListener listener)
listener
- the listener to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |