public class FXBendOnSegmentHandleDragPolicy extends AbstractFXOnDragPolicy
FXBendOnSegmentHandleDragPolicy is an
AbstractFXOnDragPolicy that can be installed on the handle parts of
an FXConnection, so that the user is able to manipulate that
connection by dragging its handles. This policy expects that a handle is
created for each anchor point of the connection (start, way, end), as well as
for each middle point of a segment. Moreover, this policy expects that the
respective handles are of type FXCircleSegmentHandlePart.| Constructor and Description |
|---|
FXBendOnSegmentHandleDragPolicy() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
disableRefreshVisuals()
Disables refreshing visuals from model data for the first anchorage of
this policy.
|
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 void |
enableRefreshVisuals()
Restores the initial state of the refresh flag that was previously saved
within
disableRefreshVisuals(). |
protected FXBendPolicy |
getBendPolicy(IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> targetPart)
Returns the
FXBendPolicy that is installed on the given
IVisualPart. |
FXCircleSegmentHandlePart |
getHost()
|
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, setAdaptableprotected void disableRefreshVisuals()
public 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 void enableRefreshVisuals()
disableRefreshVisuals().protected FXBendPolicy getBendPolicy(IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> targetPart)
FXBendPolicy that is installed on the given
IVisualPart.targetPart - The IVisualPart of which the installed
FXBendPolicy is returned.FXBendPolicy that is installed on the given
IVisualPart.public FXCircleSegmentHandlePart getHost()
IPolicygetHost in interface IPolicy<javafx.scene.Node>getHost in class AbstractPolicy<javafx.scene.Node>IPolicy.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.