public class NavigationEvent extends Event
NativeObject.InitializerdefaultInit, LIFECYCLE, ownsHandle| Constructor and Description |
|---|
NavigationEvent(NativeObject.Initializer init)
This constructor is for internal use only.
|
NavigationEvent(Structure structure)
Creates a new navigation event from the given description.
|
| Modifier and Type | Method and Description |
|---|---|
static NavigationEvent |
createKeyEvent(java.lang.String event,
java.lang.String key)
Creates a new key navigation event.
|
static NavigationEvent |
createKeyPressEvent(java.lang.String key)
Creates a new key press navigation event.
|
static NavigationEvent |
createKeyReleaseEvent(java.lang.String key)
Creates a new key release navigation event.
|
static NavigationEvent |
createMouseButtonPressEvent(double x,
double y,
int button)
Creates a mouse button press navigation event.
|
static NavigationEvent |
createMouseButtonReleaseEvent(double x,
double y,
int button)
Creates a mouse button release navigation event.
|
static NavigationEvent |
createMouseEvent(java.lang.String event,
double x,
double y,
int button)
Creates a mouse navigation event.
|
static NavigationEvent |
createMouseMoveEvent(double x,
double y,
int button)
Creates a mouse move navigation event.
|
java.lang.String |
toString()
Gets a human-readable string representation of this navigation event.
|
getStructuredisposeNativeHandle, isWritable, makeWritable, ref, unrefclassFor, disown, dispose, equals, finalize, getNativeAddress, handle, hashCode, initializer, initializer, instanceFor, invalidate, isDisposed, nativeValue, objectFor, objectFor, objectFor, objectForpublic NavigationEvent(NativeObject.Initializer init)
init - initialization data.public NavigationEvent(Structure structure)
Unless you really need a custom navigation event, use one of the static convenience methods for creating navigation events.
structure - the description of the navigation event.public java.lang.String toString()
toString in class NativeObjectpublic static NavigationEvent createMouseEvent(java.lang.String event, double x, double y, int button)
event - the type of mouse event.x - the X location of the mouse cursory - the Y location of the mouse cursorbutton - the button(s) currently pressedpublic static NavigationEvent createMouseMoveEvent(double x, double y, int button)
x - the X location of the mouse cursory - the Y location of the mouse cursorbutton - the button(s) currently pressedpublic static NavigationEvent createMouseButtonPressEvent(double x, double y, int button)
x - the X location of the mouse cursory - the Y location of the mouse cursorbutton - the button(s) currently pressedpublic static NavigationEvent createMouseButtonReleaseEvent(double x, double y, int button)
x - the X location of the mouse cursory - the Y location of the mouse cursorbutton - the button(s) currently pressedpublic static NavigationEvent createKeyEvent(java.lang.String event, java.lang.String key)
event - the type of key event.key - the ascii key code for the key.public static NavigationEvent createKeyPressEvent(java.lang.String key)
key - the ascii key code for the key.public static NavigationEvent createKeyReleaseEvent(java.lang.String key)
key - the ascii key code for the key.