public class FXBendOnSegmentHandleDragPolicy extends AbstractFXOnDragPolicy
FXBendOnSegmentHandleDragPolicy is an
AbstractFXOnDragPolicy that can be installed on the handle parts of
an Connection, 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 |
|---|---|
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 FXBendPolicy |
getBendPolicy(IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> targetPart)
Returns the
FXBendPolicy that is installed on the given
IVisualPart. |
FXCircleSegmentHandlePart |
getHost()
|
protected IVisualPart<javafx.scene.Node,? extends Connection> |
getTargetPart()
Returns the target
IVisualPart for 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.
|
commit, init, restoreRefreshVisuals, rollback, storeAndDisableRefreshVisualsgetAdaptable, 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 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.protected IVisualPart<javafx.scene.Node,? extends Connection> getTargetPart()
IVisualPart for this policy. Per default the
first anchorage is returned, which has to be an IVisualPart with
an Connection visual.IVisualPart for 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).Copyright (c) 2014 itemis AG and others. All rights reserved.