public class FXRelocateOnDragPolicy extends AbstractFXOnDragPolicy
FXRelocateOnDragPolicy is an AbstractFXOnDragPolicy that
relocates its host when it is dragged with the mouse.| Constructor and Description |
|---|
FXRelocateOnDragPolicy() |
| 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.
|
protected Point |
getInitialMouseLocationInScene()
Returns the initial mouse location in scene coordinates.
|
protected FXResizeRelocatePolicy |
getResizeRelocatePolicy(IContentPart<javafx.scene.Node,? extends javafx.scene.Node> part)
Returns the
FXResizeRelocatePolicy that is installed on the given
IContentPart. |
java.util.List<IContentPart<javafx.scene.Node,? extends javafx.scene.Node>> |
getTargetParts()
Returns a
List containing all IContentParts that should
be relocated by this policy. |
void |
press(javafx.scene.input.MouseEvent e)
This callback method is invoked when a mouse button is pressed on the
host. |
void |
release(javafx.scene.input.MouseEvent e,
Dimension delta)
This callback method is invoked when the previously pressed mouse button
is released.
|
protected void |
setInitialMouseLocationInScene(Point point)
Sets the initial mouse location to the given value.
|
commit, disableRefreshVisuals, enableRefreshVisuals, getAdaptable, getHost, init, setAdaptablepublic void drag(javafx.scene.input.MouseEvent e,
Dimension delta)
AbstractFXOnDragPolicydrag in class AbstractFXOnDragPolicye - The original MouseEvent.delta - The mouse offset since AbstractFXOnDragPolicy.press(MouseEvent) (in pixel).protected Point getInitialMouseLocationInScene()
protected FXResizeRelocatePolicy getResizeRelocatePolicy(IContentPart<javafx.scene.Node,? extends javafx.scene.Node> part)
FXResizeRelocatePolicy that is installed on the given
IContentPart.part - The IContentPart for which to return the installed
FXResizeRelocatePolicy.FXResizeRelocatePolicy that is installed on the given
IContentPart.public java.util.List<IContentPart<javafx.scene.Node,? extends javafx.scene.Node>> getTargetParts()
List containing all IContentParts that should
be relocated by this policy.List containing all IContentParts that should
be relocated by this policy.public void press(javafx.scene.input.MouseEvent e)
AbstractFXOnDragPolicyhost.press in class AbstractFXOnDragPolicye - The original MouseEventpublic void release(javafx.scene.input.MouseEvent e,
Dimension delta)
AbstractFXOnDragPolicyrelease in class AbstractFXOnDragPolicye - The original MouseEvent.delta - The mouse offset since AbstractFXOnDragPolicy.press(MouseEvent) (in pixel).protected void setInitialMouseLocationInScene(Point point)
point - The initial mouse location.Copyright (c) 2014 itemis AG and others. All rights reserved.