public class OffsetEdgeLabelOnDragPolicy extends AbstractFXInteractionPolicy implements IFXOnDragPolicy
OffsetEdgeLabelOnDragPolicy is an IFXOnDragPolicy that
can be installed on EdgeLabelParts (see getHost()). It moves
its host when the host is dragged.| Constructor and Description |
|---|
OffsetEdgeLabelOnDragPolicy() |
| Modifier and Type | Method and Description |
|---|---|
void |
drag(javafx.scene.input.MouseEvent e,
Dimension delta) |
void |
dragAborted() |
protected CursorSupport |
getCursorSupport()
Returns the
CursorSupport of this policy. |
EdgeLabelPart |
getHost() |
void |
hideIndicationCursor() |
void |
press(javafx.scene.input.MouseEvent e) |
void |
release(javafx.scene.input.MouseEvent e,
Dimension delta) |
boolean |
showIndicationCursor(javafx.scene.input.KeyEvent event) |
boolean |
showIndicationCursor(javafx.scene.input.MouseEvent event) |
isRegistered, isRegisteredForHostcommit, init, restoreRefreshVisuals, rollback, storeAndDisableRefreshVisualsgetAdaptable, setAdaptableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAdaptable, setAdaptablepublic void drag(javafx.scene.input.MouseEvent e,
Dimension delta)
drag in interface IFXOnDragPolicypublic void dragAborted()
dragAborted in interface IFXOnDragPolicyprotected CursorSupport getCursorSupport()
CursorSupport of this policy.CursorSupport of this policy.public EdgeLabelPart getHost()
getHost in interface IPolicy<javafx.scene.Node>getHost in class AbstractPolicy<javafx.scene.Node>public void hideIndicationCursor()
hideIndicationCursor in interface IFXOnDragPolicypublic void press(javafx.scene.input.MouseEvent e)
press in interface IFXOnDragPolicypublic void release(javafx.scene.input.MouseEvent e,
Dimension delta)
release in interface IFXOnDragPolicypublic boolean showIndicationCursor(javafx.scene.input.KeyEvent event)
showIndicationCursor in interface IFXOnDragPolicypublic boolean showIndicationCursor(javafx.scene.input.MouseEvent event)
showIndicationCursor in interface IFXOnDragPolicyCopyright (c) 2014 itemis AG and others. All rights reserved.