charva.awt
Class EventQueue
java.lang.Object
|
+--charva.awt.EventQueue
- public class EventQueue
- extends java.lang.Object
The EventQueue class queues "AWT" events, which are used to trigger
drawing actions. They can be enqueued using the postEvent() method
by any thread (e.g the keyboard reading thread enqueues KeyEvents),
but only the event-dispatching thread should call getNextEvent(),
because only the event-dispatching thread should do any drawing.
This is because the ncurses library is not re-entrant.
SyncEvents are enqueued with a lower priority than other events, and
if multiple SyncEvents are found on the queue they are coalesced into
a single SyncEvent.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static EventQueue getInstance()
postEvent
public void postEvent(AWTEvent evt_)
getNextEvent
public AWTEvent getNextEvent()
invokeLater
public static void invokeLater(java.lang.Runnable runnable_)
- Causes the runnable's run() method to be called in the
AWT dispatch thread.