|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.minueto.MinuetoEventQueue
public class MinuetoEventQueue
The MinuetoEventQueue to stores Minueto related events such as
keyboard input, mouse input and window event. Events can be processed
by registering the proper event handler and calling the handle method.
MinuetoKeyboardHandler,
MinuetoMouseHandler,
MinuetoWindowHandler| Constructor Summary | |
|---|---|
MinuetoEventQueue()
Create an empty event queue. |
|
| Method Summary | |
|---|---|
void |
add(MinuetoEvent event)
Add an event to the event queue. |
void |
handle()
Handle the next event using the appropriate handler. |
boolean |
hasNext()
Return true if the queue holds another event. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MinuetoEventQueue()
| Method Detail |
|---|
public void add(MinuetoEvent event)
event - MinuetoEvent to be added to the queue.public boolean hasNext()
boolean value indicating if the queue is not empty.public void handle()
MinuetoEventQueueEmptyException - if the event queue is empty.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||