Public Member Functions | |
SVEventHandler (SVWindow wdw) | |
void | mouseClicked (PInputEvent e) |
void | mousePressed (PInputEvent e) |
void | mouseDragged (PInputEvent e) |
void | mouseReleased (PInputEvent e) |
void | mouseWheelRotated (PInputEvent e) |
void | mouseMoved (PInputEvent e) |
void | mouseEntered (PInputEvent e) |
void | mouseExited (PInputEvent e) |
void | actionPerformed (ActionEvent e) |
void | keyPressed (KeyEvent e) |
void | windowClosing (WindowEvent e) |
void | keyReleased (KeyEvent e) |
void | keyTyped (KeyEvent e) |
void | windowActivated (WindowEvent e) |
void | windowClosed (WindowEvent e) |
void | windowDeactivated (WindowEvent e) |
void | windowDeiconified (WindowEvent e) |
void | windowIconified (WindowEvent e) |
void | windowOpened (WindowEvent e) |
Public Attributes | |
Timer | timer |
The ScrollViewEventHandler takes care of any events which might happen on the canvas and converts them to an according SVEvent, which is (using the processEvent method) then added to a message queue. All events from the message queue get sent gradually
Definition at line 42 of file SVEventHandler.java.
|
inline |
|
inline |
The only associated object with this is the timer, so we use it to send a SVET_HOVER event.
Definition at line 227 of file SVEventHandler.java.
|
inline |
A key was pressed - create an SVET_INPUT event.
NOTE: Might be useful to specify hotkeys.
Implementation note: The keyListener provided by Piccolo seems to be broken, so we use the AWT listener directly. There are never any keyTyped events received either so we are stuck with physical keys, which is very ugly.
Definition at line 242 of file SVEventHandler.java.
|
inline |
These are all events we do not care about and throw away
Definition at line 274 of file SVEventHandler.java.
|
inline |
Definition at line 277 of file SVEventHandler.java.
|
inline |
The mouse is clicked - create an SVET_CLICK event.
Definition at line 104 of file SVEventHandler.java.
|
inline |
The mouse is getting dragged - create an SVET_MOUSE event.
Definition at line 132 of file SVEventHandler.java.
|
inline |
The mouse entered the window. Start the timer, which will then emit SVET_HOVER events every X ms.
Definition at line 211 of file SVEventHandler.java.
|
inline |
The mouse exited the window Stop the timer, so no more SVET_HOVER events will emit.
Definition at line 219 of file SVEventHandler.java.
|
inline |
The mouse was moved - create an SVET_MOTION event. NOTE: This obviously creates a lot of traffic and, depending on the type of application, could quite possibly be disabled.
Definition at line 202 of file SVEventHandler.java.
|
inline |
The mouse key is pressed (and keeps getting pressed). Depending on the OS, show a popup menu (if the button pressed is associated with popup menus, like the RMB under windows&linux) or otherwise save the position (in case it is a selection).
Definition at line 120 of file SVEventHandler.java.
|
inline |
The mouse was released. Depending on the OS, show a popup menu (if the button pressed is associated with popup menus, like the RMB under windows&linux) or otherwise create an SVET_SELECTION event.
Definition at line 165 of file SVEventHandler.java.
|
inline |
The mouse wheel is used to zoom in and out of the viewport and center on the (x,y) position the mouse is currently on.
Definition at line 185 of file SVEventHandler.java.
|
inline |
Definition at line 280 of file SVEventHandler.java.
|
inline |
Definition at line 283 of file SVEventHandler.java.
|
inline |
A window is closed (by the 'x') - create an SVET_DESTROY event. If it was the last open Window, also send an SVET_EXIT event (but do not exit unless the client says so).
Definition at line 262 of file SVEventHandler.java.
|
inline |
Definition at line 286 of file SVEventHandler.java.
|
inline |
Definition at line 289 of file SVEventHandler.java.
|
inline |
Definition at line 292 of file SVEventHandler.java.
|
inline |
Definition at line 295 of file SVEventHandler.java.
Timer com.google.scrollview.events.SVEventHandler.timer |
Necessary to wait for a defined period of time (for SVET_HOVER).
Definition at line 46 of file SVEventHandler.java.