public class TranslateSelectedAndRelocateLabelsOnDragPolicy extends FXTranslateSelectedOnDragPolicy
FXTranslateSelectedOnDragPolicy that includes dragging of
unselected label parts.adaptableadaptableIAdaptable.Bound.Impl<T extends IAdaptable>| Constructor and Description |
|---|
TranslateSelectedAndRelocateLabelsOnDragPolicy() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<AbstractLabelPart> |
computeLabelParts()
Computes the
AbstractLabelParts that are anchored to the
AbstractPolicy.getHost() of this policy and need to be relocated together with
the host. |
void |
drag(javafx.scene.input.MouseEvent e,
Dimension delta) |
void |
dragAborted() |
protected java.util.List<AbstractLabelPart> |
getLabelParts()
Returns the
AbstractLabelParts that were previously determined if
available, otherwise the label parts are computed and saved. |
void |
press(javafx.scene.input.MouseEvent e) |
void |
release(javafx.scene.input.MouseEvent e,
Dimension delta) |
getCursorSupport, getInitialMouseLocationInScene, getSnapToGridGranularityX, getSnapToGridGranularityY, getTargetParts, getTransformPolicy, hideIndicationCursor, isTranslate, setInitialMouseLocationInScene, showIndicationCursor, showIndicationCursorisRegistered, isRegisteredForHostcommit, init, restoreRefreshVisuals, rollback, storeAndDisableRefreshVisualsadaptableProperty, getAdaptable, getHost, setAdaptableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadaptableProperty, getAdaptable, setAdaptablepublic TranslateSelectedAndRelocateLabelsOnDragPolicy()
protected java.util.List<AbstractLabelPart> computeLabelParts()
AbstractLabelParts that are anchored to the
AbstractPolicy.getHost() of this policy and need to be relocated together with
the host.AbstractLabelParts that need to be relocated together
with the host.public void drag(javafx.scene.input.MouseEvent e,
Dimension delta)
drag in interface IFXOnDragPolicydrag in class FXTranslateSelectedOnDragPolicypublic void dragAborted()
dragAborted in interface IFXOnDragPolicydragAborted in class FXTranslateSelectedOnDragPolicyprotected java.util.List<AbstractLabelPart> getLabelParts()
AbstractLabelParts that were previously determined if
available, otherwise the label parts are computed and saved.AbstractLabelParts that were previously determined by
computeLabelParts().public void press(javafx.scene.input.MouseEvent e)
press in interface IFXOnDragPolicypress in class FXTranslateSelectedOnDragPolicypublic void release(javafx.scene.input.MouseEvent e,
Dimension delta)
release in interface IFXOnDragPolicyrelease in class FXTranslateSelectedOnDragPolicyCopyright (c) 2014 itemis AG and others. All rights reserved.