public abstract class AbstractFXOnDragPolicy extends AbstractPolicy<javafx.scene.Node>
AbstractFXOnDragPolicy
is called upon mouse drag events by the
FXClickDragTool
. You can use it as an adapter on any
IVisualPart
for which mouse drag interaction is desired, and you can
also register multiple instances of AbstractFXOnDragPolicy
on the
same IVisualPart
(with different adapter roles).Constructor and Description |
---|
AbstractFXOnDragPolicy() |
Modifier and Type | Method and Description |
---|---|
abstract void |
drag(javafx.scene.input.MouseEvent e,
Dimension delta)
This callback method is invoked when the mouse is moved while a button is
pressed.
|
abstract void |
press(javafx.scene.input.MouseEvent e)
This callback method is invoked when a mouse button is pressed on the
host . |
abstract void |
release(javafx.scene.input.MouseEvent e,
Dimension delta)
This callback method is invoked when the previously pressed mouse button
is released.
|
commit, disableRefreshVisuals, enableRefreshVisuals, getAdaptable, getHost, init, setAdaptable
public abstract void drag(javafx.scene.input.MouseEvent e, Dimension delta)
e
- The original MouseEvent
.delta
- The mouse offset since press(MouseEvent)
(in pixel).public abstract void press(javafx.scene.input.MouseEvent e)
host
.e
- The original MouseEvent
public abstract void release(javafx.scene.input.MouseEvent e, Dimension delta)
e
- The original MouseEvent
.delta
- The mouse offset since press(MouseEvent)
(in pixel).Copyright (c) 2014 itemis AG and others. All rights reserved.