public abstract class CacioEventPump<ET> extends Object implements Runnable
| Modifier | Constructor and Description |
|---|---|
protected |
CacioEventPump()
Creates and starts a CacioEventPump with the specified
event source.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
dispatchNativeEvent(ET nativeEvent)
Dispatches the native event.
|
protected abstract ET |
fetchNativeEvent()
Fetches the next native event.
|
protected void |
postComponentEvent(CacioComponent source,
int id) |
protected void |
postFocusEvent(CacioComponent source,
int id,
boolean temporary,
CacioComponent opposite) |
protected void |
postKeyEvent(CacioComponent source,
int id,
long time,
int modifiers,
int keyCode) |
protected void |
postKeyTypedEvent(CacioComponent source,
int id,
long time,
int modifiers,
char keyChar) |
protected void |
postMouseEvent(CacioComponent source,
int id,
long time,
int modifiers,
int x,
int y,
int clickCount,
boolean popupTrigger) |
protected void |
postPaintEvent(CacioComponent source,
int x,
int y,
int width,
int height) |
protected void |
postPaintEvent(CacioComponent source,
int x,
int y,
int width,
int height,
boolean paintBackground) |
protected void |
postWindwoEvent(CacioComponent source,
int id,
int oldState,
int newState) |
void |
run()
The main loop of the event pump.
|
protected void |
start() |
protected CacioEventPump()
s - the event source to get events fromprotected void start()
public final void run()
protected abstract ET fetchNativeEvent() throws InterruptedException
dispatchNativeEvent for dispatching the
event.InterruptedExceptionprotected abstract void dispatchNativeEvent(ET nativeEvent)
nativeEvent - protected final void postMouseEvent(CacioComponent source, int id, long time, int modifiers, int x, int y, int clickCount, boolean popupTrigger)
protected final void postKeyEvent(CacioComponent source, int id, long time, int modifiers, int keyCode)
protected final void postKeyTypedEvent(CacioComponent source, int id, long time, int modifiers, char keyChar)
protected final void postComponentEvent(CacioComponent source, int id)
protected final void postPaintEvent(CacioComponent source, int x, int y, int width, int height, boolean paintBackground)
protected final void postPaintEvent(CacioComponent source, int x, int y, int width, int height)
protected final void postFocusEvent(CacioComponent source, int id, boolean temporary, CacioComponent opposite)
protected final void postWindwoEvent(CacioComponent source, int id, int oldState, int newState)
Copyright © 2012. All Rights Reserved.