Spec-Zone .ru
спецификации, руководства, описания, API
|
public class MouseDragEvent extends MouseEvent
MouseEvent
.
Full press-drag-release gesture can be started by calling
startFullDrag()
(on a node or scene) inside of a DRAG_DETECTED
event handler. This call activates delivering of MouseDragEvent
s
to the nodes that are under cursor during the dragging gesture.
When you drag a node, it's still under cursor, so it is considered
being a potential gesture target during the whole gesture. If you need to
drag a node to a different node and let the other node know about it,
you need to ensure that the nodes under the dragged node are picked
as the potential gesture targets. You can achieve this by calling
setMouseTransparent(true)
on the dragged node in a
MOUSE_PRESSED
handler and returning it back to false in a
MOUSE_RELEASED
handler. This way the nodes under the dragged
node will receive the MouseDragEvent
s, while all the
MouseEvent
s will still be delivered to the (currently mouse
transparent) gesture source.
The entered/exited events behave similarly to mouse entered/exited
events, please see MouseEvent
overview.
Modifier and Type | Field and Description |
---|---|
static EventType<MouseDragEvent> |
ANY
Common supertype for all mouse event types.
|
static EventType<MouseDragEvent> |
MOUSE_DRAG_ENTERED
This event occurs when the gesture enters a node.
|
static EventType<MouseDragEvent> |
MOUSE_DRAG_ENTERED_TARGET
This event occurs when the gesture enters a node.
|
static EventType<MouseDragEvent> |
MOUSE_DRAG_EXITED
This event occurs when the gesture exits a node.
|
static EventType<MouseDragEvent> |
MOUSE_DRAG_EXITED_TARGET
This event occurs when the gesture exits a node.
|
static EventType<MouseDragEvent> |
MOUSE_DRAG_OVER
This event occurs when the gesture progresses within this node.
|
static EventType<MouseDragEvent> |
MOUSE_DRAG_RELEASED
This event occurs when the gesture ends (by releasing mouse button)
on this node.
|
DRAG_DETECTED, MOUSE_CLICKED, MOUSE_DRAGGED, MOUSE_ENTERED, MOUSE_ENTERED_TARGET, MOUSE_EXITED, MOUSE_EXITED_TARGET, MOUSE_MOVED, MOUSE_PRESSED, MOUSE_RELEASED
consumed, eventType, NULL_SOURCE_TARGET, target
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getGestureSource()
Returns the source object of the ongoing gesture.
|
copyFor, getButton, getClickCount, getSceneX, getSceneY, getScreenX, getScreenY, getX, getY, isAltDown, isControlDown, isDragDetect, isMetaDown, isMiddleButtonDown, isPrimaryButtonDown, isSecondaryButtonDown, isShiftDown, isShortcutDown, isStillSincePress, isSynthesized, setDragDetect, toString
clone, consume, fireEvent, getEventType, getTarget, isConsumed
public static final EventType<MouseDragEvent> ANY
public static final EventType<MouseDragEvent> MOUSE_DRAG_OVER
public static final EventType<MouseDragEvent> MOUSE_DRAG_RELEASED
public static final EventType<MouseDragEvent> MOUSE_DRAG_ENTERED_TARGET
MOUSE_DRAG_ENTERED
event handler should
be used.public static final EventType<MouseDragEvent> MOUSE_DRAG_ENTERED
MOUSE_DRAG_ENTERED_TARGET
.public static final EventType<MouseDragEvent> MOUSE_DRAG_EXITED_TARGET
MOUSE_DRAG_EXITED
event handler should
be used.public static final EventType<MouseDragEvent> MOUSE_DRAG_EXITED
MOUSE_DRAG_EXITED_TARGET
.Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to