Delivery of gestures is dependent on the capabilities of the underlying platform and connected input devices. For instance on a PC with mouse and keyboard there is no way of producing a rotating gesture.
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| public static final EventType | ANY
Common supertype for all gestures.
|
| private final boolean | |
| private final boolean | |
| private final boolean | |
| private final boolean | |
| private PickResult | pickResult
Information about the pick if the picked |
| private final double | |
| private final double | |
| private final double | |
| private final double | |
| private static final long | |
| private final boolean | |
| private transient double | |
| private transient double | |
| private transient double | z
Depth z position of the event relative to the origin of the MouseEvent's node. |
| Access | Constructor and Description |
|---|---|
| protected | GestureEvent(final EventType<? extends GestureEvent>
Type of the event eventType)
Deprecated
since 8. Do not use this constructor. Constructs empty event.
Creates a new instance of |
| protected | GestureEvent(Object
Event source source, EventTarget Event target target, final EventType<? extends GestureEvent> Type of the event eventType)
Deprecated
since 8. Do not use this constructor. Constructs empty event.
Creates a new instance of |
| protected | GestureEvent(Object
the source of the event. Can be null. source, EventTarget the target of the event. Can be null. target, final EventType<? extends GestureEvent> The type of the event. eventType, double The x with respect to the scene. x, double The y with respect to the scene. y, double The x coordinate relative to screen. screenX, double The y coordinate relative to screen. screenY, boolean true if shift modifier was pressed. shiftDown, boolean true if control modifier was pressed. controlDown, boolean true if alt modifier was pressed. altDown, boolean true if meta modifier was pressed. metaDown, boolean true if the event was caused by direct input device. See direct, boolean isDirect()if represents inertia of an already finished gesture. inertia, PickResult pick result. Can be null, in this case a 2D pick result
without any further values is constructed
based on the scene coordinates and the target pickResult)Constructs new GestureEvent event. |
| protected | GestureEvent(final EventType<? extends GestureEvent>
The type of the event. eventType, double The x with respect to the scene. x, double The y with respect to the scene. y, double The x coordinate relative to screen. screenX, double The y coordinate relative to screen. screenY, boolean true if shift modifier was pressed. shiftDown, boolean true if control modifier was pressed. controlDown, boolean true if alt modifier was pressed. altDown, boolean true if meta modifier was pressed. metaDown, boolean true if the event was caused by direct input device. See direct, boolean isDirect()if represents inertia of an already finished gesture. inertia, PickResult pick result. Can be null, in this case a 2D pick result
without any further values is constructed
based on the scene coordinates pickResult)Constructs new GestureEvent event with empty source and target |
| Modifier and Type | Method and Description |
|---|---|
| public GestureEvent | copyFor(Object
the new source of the copied event newSource, EventTarget the new target of the copied event newTarget)Overrides javafx. Creates and returns a copy of this event with the specified event source and target. |
| public EventType | getEventType()
Overrides javafx. Gets the event type of this event. |
| public final PickResult | Returns: new PickResult object that contains information about the pickReturns information about the pick. |
| public final double | Returns: the horizontal position of the event relative to the origin of theScene that contains the event's sourceGets the horizontal position of the event relative to the
origin of the |
| public final double | Returns: the vertical position of the event relative to the origin of theScene that contains the event's sourceGets the vertical position of the event relative to the
origin of the |
| public final double | Returns: the absolute horizontal position of the eventGets the absolute horizontal position of the event. |
| public final double | Returns: the absolute vertical position of the eventGets the absolute vertical position of the event. |
| public final double | Returns: the horizontal position of the event relative to the origin of the event's source.Gets the horizontal position of the event relative to the origin of the event's source. |
| public final double | Returns: the vertical position of the event relative to the origin of the event's source.Gets the vertical position of the event relative to the origin of the event's source. |
| public final double | Returns: depth position of the event relative to the origin of the MouseEvent's source.Depth position of the event relative to the origin of the MouseEvent's source. |
| public final boolean | Returns: true if the Alt modifier is down on this eventIndicates whether or not the Alt modifier is down on this event. |
| public final boolean | Returns: true if the Control modifier is down on this eventIndicates whether or not the Control modifier is down on this event. |
| public final boolean | Returns: true if this event is caused by a direct input deviceIndicates whether this gesture is caused by a direct or indirect input device. |
| public boolean | Returns: true if this is an inertia eventIndicates if this event represents an inertia of an already finished gesture. |
| public final boolean | Returns: true if the Meta modifier is down on this eventIndicates whether or not the Meta modifier is down on this event. |
| public final boolean | Returns: true if the Shift modifier is down on this eventIndicates whether or not the Shift modifier is down on this event. |
| public final boolean | Returns: true if the shortcut modifier is down, false
otherwiseIndicates whether or not the host platform common shortcut modifier is down on this event. |
| private void | |
| private void | recomputeCoordinatesToSource(GestureEvent
Event whose coordinates are to be filled newEvent, Object Source object to compute coordinates for newSource)Fills the given event by this event's coordinates recomputed to the given source object. |
| public String | Returns: a string representation of thisGestureEvent object.Overrides java. Returns a string representation of this |
| altDown | back to summary |
|---|---|
private final boolean altDown
| |
| ANY | back to summary |
|---|---|
| public static final EventType<GestureEvent> ANY Hides javafx. Common supertype for all gestures. | |
| controlDown | back to summary |
|---|---|
private final boolean controlDown
| |
| direct | back to summary |
|---|---|
private final boolean direct
| |
| inertia | back to summary |
|---|---|
private final boolean inertia
| |
| metaDown | back to summary |
|---|---|
private final boolean metaDown
| |
| pickResult | back to summary |
|---|---|
| private PickResult pickResult Information about the pick if the picked | |
| sceneX | back to summary |
|---|---|
private final double sceneX
| |
| sceneY | back to summary |
|---|---|
private final double sceneY
| |
| screenX | back to summary |
|---|---|
private final double screenX
| |
| screenY | back to summary |
|---|---|
private final double screenY
| |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| shiftDown | back to summary |
|---|---|
private final boolean shiftDown
| |
| x | back to summary |
|---|---|
| private transient double x | |
| y | back to summary |
|---|---|
| private transient double y | |
| z | back to summary |
|---|---|
| private transient double z Depth z position of the event relative to the origin of the MouseEvent's node. | |
| GestureEvent | back to summary |
|---|---|
| protected GestureEvent(final EventType<? extends GestureEvent> eventType)
Deprecated since 8. Do not use this constructor. Constructs empty event. Creates a new instance of
| |
| GestureEvent | back to summary |
|---|---|
| protected GestureEvent(Object source, EventTarget target, final EventType<? extends GestureEvent> eventType)
Deprecated since 8. Do not use this constructor. Constructs empty event. Creates a new instance of
| |
| GestureEvent | back to summary |
|---|---|
| protected GestureEvent(Object source, EventTarget target, final EventType<? extends GestureEvent> eventType, double x, double y, double screenX, double screenY, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown, boolean direct, boolean inertia, PickResult pickResult) Constructs new GestureEvent event.
| |
| GestureEvent | back to summary |
|---|---|
| protected GestureEvent(final EventType<? extends GestureEvent> eventType, double x, double y, double screenX, double screenY, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown, boolean direct, boolean inertia, PickResult pickResult) Constructs new GestureEvent event with empty source and target
| |
| copyFor | back to summary |
|---|---|
| public GestureEvent copyFor(Object newSource, EventTarget newTarget) Overrides javafx. Doc from javafx. Creates and returns a copy of this event with the specified event source
and target. If the source or target is set to
| |
| getEventType | back to summary |
|---|---|
| public EventType Overrides javafx. Doc from javafx. Gets the event type of this event. Objects of the same
| |
| getPickResult | back to summary |
|---|---|
| public final PickResult getPickResult() Returns information about the pick.
| |
| getSceneX | back to summary |
|---|---|
| public final double getSceneX() Gets the horizontal position of the event relative to the
origin of the
| |
| getSceneY | back to summary |
|---|---|
| public final double getSceneY() Gets the vertical position of the event relative to the
origin of the
| |
| getScreenX | back to summary |
|---|---|
| public final double getScreenX() Gets the absolute horizontal position of the event.
| |
| getScreenY | back to summary |
|---|---|
| public final double getScreenY() Gets the absolute vertical position of the event.
| |
| getX | back to summary |
|---|---|
| public final double getX() Gets the horizontal position of the event relative to the origin of the event's source.
| |
| getY | back to summary |
|---|---|
| public final double getY() Gets the vertical position of the event relative to the origin of the event's source.
| |
| getZ | back to summary |
|---|---|
| public final double getZ() Depth position of the event relative to the origin of the MouseEvent's source.
| |
| isAltDown | back to summary |
|---|---|
| public final boolean isAltDown() Indicates whether or not the Alt modifier is down on this event.
| |
| isControlDown | back to summary |
|---|---|
| public final boolean isControlDown() Indicates whether or not the Control modifier is down on this event.
| |
| isDirect | back to summary |
|---|---|
| public final boolean isDirect() Indicates whether this gesture is caused by a direct or indirect input device. With direct input device the gestures are performed directly at the concrete coordinates, a typical example would be a touch screen. With indirect device the gestures are performed indirectly and usually mouse cursor position is used as the gesture coordinates, a typical example would be a track pad.
| |
| isInertia | back to summary |
|---|---|
| public boolean isInertia() Indicates if this event represents an inertia of an already finished gesture.
| |
| isMetaDown | back to summary |
|---|---|
| public final boolean isMetaDown() Indicates whether or not the Meta modifier is down on this event.
| |
| isShiftDown | back to summary |
|---|---|
| public final boolean isShiftDown() Indicates whether or not the Shift modifier is down on this event.
| |
| isShortcutDown | back to summary |
|---|---|
| public final boolean isShortcutDown() Indicates whether or not the host platform common shortcut modifier is
down on this event. This common shortcut modifier is a modifier key which
is used commonly in shortcuts on the host platform. It is for example
| |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException Hides javafx.
| |
| recomputeCoordinatesToSource | back to summary |
|---|---|
| private void recomputeCoordinatesToSource(GestureEvent newEvent, Object newSource) Fills the given event by this event's coordinates recomputed to the given source object.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representation of this | |