public interface InputService extends SciJavaService
| Modifier and Type | Method and Description |
|---|---|
Display<?> |
getDisplay()
Gets the display associated with the last observed mouse cursor.
|
EventService |
getEventService() |
InputModifiers |
getModifiers() |
int |
getX()
Gets the last observed X coordinate of the mouse cursor, relative to a
specific display.
|
int |
getY()
Gets the last observed Y coordinate of the mouse cursor, relative to a
specific display.
|
boolean |
isAltDown() |
boolean |
isAltGrDown() |
boolean |
isButtonDown(int button)
Gets whether the given mouse button is currently pressed.
|
boolean |
isCtrlDown() |
boolean |
isKeyDown(KeyCode code) |
boolean |
isMetaDown() |
boolean |
isShiftDown() |
initialize, registerEventHandlerscontext, getContext, setContextgetPriority, setPrioritycompareTogetInfo, setInfodisposeEventService getEventService()
InputModifiers getModifiers()
boolean isAltDown()
boolean isAltGrDown()
boolean isCtrlDown()
boolean isMetaDown()
boolean isShiftDown()
boolean isKeyDown(KeyCode code)
Display<?> getDisplay()
int getX()
getDisplay()int getY()
getDisplay()boolean isButtonDown(int button)
button - One of:
Copyright © 2009–2016 SciJava. All rights reserved.