Package heronarts.glx.ui
Class UIEventHandler
java.lang.Object
heronarts.glx.ui.UIEventHandler
- Direct Known Subclasses:
UIObject
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
onKeyPressed
(KeyEvent keyEvent, char keyChar, int keyCode) Subclasses override to receive key eventsprotected void
onKeyReleased
(KeyEvent keyEvent, char keyChar, int keyCode) Subclasses override to receive key eventsprotected void
onMouseDragged
(MouseEvent mouseEvent, float mx, float my, float dx, float dy) Subclasses override to receive mouse eventsprotected void
onMouseMoved
(MouseEvent mouseEvent, float mx, float my) Subclasses override to receive mouse eventsprotected void
onMouseOut
(MouseEvent mouseEvent) Subclasses override to receive events when mouse moves out of this objectprotected void
onMouseOver
(MouseEvent mouseEvent) Subclasses override to receive events when mouse moves over this objectprotected void
onMousePressed
(MouseEvent mouseEvent, float mx, float my) Subclasses override to receive mouse eventsprotected void
onMouseReleased
(MouseEvent mouseEvent, float mx, float my) Subclasses override to receive mouse eventsprotected void
onMouseScroll
(MouseEvent mouseEvent, float mx, float my, float dx, float dy) Subclasses override to receive mouse events
-
Constructor Details
-
UIEventHandler
public UIEventHandler()
-
-
Method Details
-
onMousePressed
Subclasses override to receive mouse events- Parameters:
mouseEvent
- Mouse eventmx
- x-coordinatemy
- y-coordinate
-
onMouseReleased
Subclasses override to receive mouse events- Parameters:
mouseEvent
- Mouse eventmx
- x-coordinatemy
- y-coordinate
-
onMouseDragged
Subclasses override to receive mouse events- Parameters:
mouseEvent
- Mouse eventmx
- x-coordinatemy
- y-coordinatedx
- movement in xdy
- movement in y
-
onMouseMoved
Subclasses override to receive mouse events- Parameters:
mouseEvent
- Mouse eventmx
- x-coordinatemy
- y-coordinate
-
onMouseOver
Subclasses override to receive events when mouse moves over this object- Parameters:
mouseEvent
- Mouse Event
-
onMouseOut
Subclasses override to receive events when mouse moves out of this object- Parameters:
mouseEvent
- Mouse Event
-
onMouseScroll
Subclasses override to receive mouse events- Parameters:
mouseEvent
- Mouse eventmx
- x-coordinatemy
- y-coordinatedx
- Amount of horizontal scrolldy
- Amount of vertical scroll
-
onKeyPressed
Subclasses override to receive key events- Parameters:
keyEvent
- Key eventkeyChar
- Key characterkeyCode
- Key code value
-
onKeyReleased
Subclasses override to receive key events- Parameters:
keyEvent
- Key eventkeyChar
- Key characterkeyCode
- Key code value
-