public interface IFXOnDragPolicy extends IPolicy<javafx.scene.Node>
IFXOnDragPolicy
interface
will be notified about mouse press-drag-release events by the
FXClickDragTool
.adaptable
IAdaptable.Bound.Impl<T extends IAdaptable>
Modifier and Type | Method and Description |
---|---|
void |
drag(javafx.scene.input.MouseEvent e,
Dimension delta)
This callback method is invoked when the mouse is moved while a button is
pressed.
|
void |
dragAborted()
This callback method is invoked when the mouse drag gesture is aborted,
i.e. the gesture ends unexpectedly, without a mouse release event being
fired.
|
void |
hideIndicationCursor()
Restores the original mouse cursor when it was previously changed by a
call to
showIndicationCursor(KeyEvent) or
showIndicationCursor(MouseEvent) . |
void |
press(javafx.scene.input.MouseEvent e)
This callback method is invoked when a mouse button is pressed on the
host, which starts a mouse drag gesture.
|
void |
release(javafx.scene.input.MouseEvent e,
Dimension delta)
This callback method is invoked when the initially pressed mouse button
is released, which ends the gesture.
|
boolean |
showIndicationCursor(javafx.scene.input.KeyEvent event)
Changes the mouse cursor depending on the given
KeyEvent to
indicate the action that is performed by this policy. |
boolean |
showIndicationCursor(javafx.scene.input.MouseEvent event)
Changes the mouse cursor depending on the given
MouseEvent to
indicate the action that is performed by this policy. |
adaptableProperty, getAdaptable, setAdaptable
void drag(javafx.scene.input.MouseEvent e, Dimension delta)
e
- The original MouseEvent
.delta
- The mouse offset since press(MouseEvent)
(in pixel).void dragAborted()
void hideIndicationCursor()
showIndicationCursor(KeyEvent)
or
showIndicationCursor(MouseEvent)
.void press(javafx.scene.input.MouseEvent e)
e
- The original MouseEvent
void release(javafx.scene.input.MouseEvent e, Dimension delta)
e
- The original MouseEvent
.delta
- The mouse offset since press(MouseEvent)
(in pixel).boolean showIndicationCursor(javafx.scene.input.KeyEvent event)
KeyEvent
to
indicate the action that is performed by this policy. The return value
indicates if the mouse cursor was changed or not.event
- The KeyEvent
that initiated the determination of an
indication cursor.true
if the mouse cursor was changed, otherwise
false
.boolean showIndicationCursor(javafx.scene.input.MouseEvent event)
MouseEvent
to
indicate the action that is performed by this policy. The return value
indicates if the mouse cursor was changed or not.event
- The MouseEvent
that initiated the determination of an
indication cursor.true
if the mouse cursor was changed, otherwise
false
.Copyright (c) 2014 itemis AG and others. All rights reserved.