public class FXResizeTranslateOnHandleDragPolicy extends AbstractFXOnDragPolicy
FXResizeTranslateOnHandleDragPolicy is an
AbstractFXOnDragPolicy that handles the resize and relocation of its
(selected) first anchorage when an AbstractFXSegmentHandlePart of the
box selection of the first anchorage is dragged with the mouse.| Constructor and Description |
|---|
FXResizeTranslateOnHandleDragPolicy() |
| 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.
|
AbstractFXSegmentHandlePart<? extends javafx.scene.Node> |
getHost()
|
protected FXResizePolicy |
getResizePolicy()
Returns the
FXResizePolicy that is installed on the
getTargetPart(). |
protected IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> |
getTargetPart()
Returns the target
IVisualPart for this policy. |
protected FXTransformPolicy |
getTransformPolicy()
Returns the
FXTransformPolicy that is installed on the
getTargetPart(). |
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.
|
commit, disableRefreshVisuals, enableRefreshVisuals, getAdaptable, 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).public AbstractFXSegmentHandlePart<? extends javafx.scene.Node> getHost()
IPolicygetHost in interface IPolicy<javafx.scene.Node>getHost in class AbstractPolicy<javafx.scene.Node>IPolicy.protected FXResizePolicy getResizePolicy()
FXResizePolicy that is installed on the
getTargetPart().FXResizePolicy that is installed on the
getTargetPart().protected IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> getTargetPart()
IVisualPart for this policy. Per default the
first anchorage is returned.IVisualPart for this policy.protected FXTransformPolicy getTransformPolicy()
FXTransformPolicy that is installed on the
getTargetPart().FXTransformPolicy that is installed on the
getTargetPart().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).Copyright (c) 2014 itemis AG and others. All rights reserved.