public class TranslateSelectedAndRelocateLabelsOnDragPolicy extends FXTranslateSelectedOnDragPolicy
FXTranslateSelectedOnDragPolicy
that includes dragging of
unselected label parts.adaptable
adaptable
IAdaptable.Bound.Impl<T extends IAdaptable>
Constructor and Description |
---|
TranslateSelectedAndRelocateLabelsOnDragPolicy() |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<AbstractLabelPart> |
computeLabelParts()
Computes the
AbstractLabelPart s 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
AbstractLabelPart s 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, showIndicationCursor
isRegistered, isRegisteredForHost
commit, init, restoreRefreshVisuals, rollback, storeAndDisableRefreshVisuals
adaptableProperty, getAdaptable, getHost, setAdaptable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
adaptableProperty, getAdaptable, setAdaptable
public TranslateSelectedAndRelocateLabelsOnDragPolicy()
protected java.util.List<AbstractLabelPart> computeLabelParts()
AbstractLabelPart
s that are anchored to the
AbstractPolicy.getHost()
of this policy and need to be relocated together with
the host.AbstractLabelPart
s that need to be relocated together
with the host.public void drag(javafx.scene.input.MouseEvent e, Dimension delta)
drag
in interface IFXOnDragPolicy
drag
in class FXTranslateSelectedOnDragPolicy
public void dragAborted()
dragAborted
in interface IFXOnDragPolicy
dragAborted
in class FXTranslateSelectedOnDragPolicy
protected java.util.List<AbstractLabelPart> getLabelParts()
AbstractLabelPart
s that were previously determined if
available, otherwise the label parts are computed
and saved.AbstractLabelPart
s that were previously determined by
computeLabelParts()
.public void press(javafx.scene.input.MouseEvent e)
press
in interface IFXOnDragPolicy
press
in class FXTranslateSelectedOnDragPolicy
public void release(javafx.scene.input.MouseEvent e, Dimension delta)
release
in interface IFXOnDragPolicy
release
in class FXTranslateSelectedOnDragPolicy
Copyright (c) 2014 itemis AG and others. All rights reserved.