public class SnappingFeedbackPart extends AbstractFeedbackPart<javafx.scene.shape.Line>
SnappingFeedbackPart
visualizes a
SnappingModel.SnappingLocation
by drawing a red line at the
SnappingModel.SnappingLocation
through the whole viewport.active, adaptable, adapters, anchoragesUnmodifiable, anchoredsUnmodifiable, childrenUnmodifiable, parent, refreshVisual
anchoragesUnmodifiable, anchoredsUnmodifiable, childrenUnmodifiable, parent, refreshVisual
adapters
adaptable
active
IAdaptable.Bound<A extends IAdaptable>
IAdaptable.Bound.Impl<T extends IAdaptable>
ANCHORAGES_PROPERTY, ANCHOREDS_PROPERTY, CHILDREN_PROPERTY, PARENT_PROPERTY, REFRESH_VISUAL_PROPERTY
ADAPTERS_PROPERTY
ACTIVE_PROPERTY
Constructor and Description |
---|
SnappingFeedbackPart() |
Modifier and Type | Method and Description |
---|---|
protected void |
doAttachToAnchorageVisual(IVisualPart<? extends javafx.scene.Node> anchorage,
java.lang.String role)
Attaches this part's visual to the visual of the given anchorage.
|
protected javafx.scene.shape.Line |
doCreateVisual()
Creates this part's visual.
|
protected void |
doDetachFromAnchorageVisual(IVisualPart<? extends javafx.scene.Node> anchorage,
java.lang.String role)
Detaches this part's visual from the visual of the given anchorage.
|
protected void |
doRefreshVisual(javafx.scene.shape.Line visual)
Refreshes this part's visualization based on this part's content.
|
SnappingModel.SnappingLocation |
getSnappingLocation()
Returns the
SnappingModel.SnappingLocation for which feedback is visualized by
this SnappingFeedbackPart . |
protected void |
onViewportSizeChanged()
Callback method that is invoked when the viewport size is changed.
|
protected void |
onViewportTranslationChanged()
Callback method that is invoked when the viewport translation (scrolling)
is changed.
|
void |
setSnappingLocation(SnappingModel.SnappingLocation snappingLocation)
Sets the
SnappingModel.SnappingLocation for this feedback part to the given
value. |
doAddChildVisual, doRemoveChildVisual
activate, activateAdapters, activateChildren, activeProperty, adaptableProperty, adaptersProperty, addChild, addChild, addChildren, addChildren, anchoragesUnmodifiableProperty, anchoredsUnmodifiableProperty, attachAnchored, attachToAnchorage, attachToAnchorage, childrenUnmodifiableProperty, deactivate, deactivateAdapters, deactivateChildren, detachAnchored, detachFromAnchorage, detachFromAnchorage, determineViewer, dispose, doActivate, doDeactivate, getAdaptable, getAdapter, getAdapter, getAdapter, getAdapterKey, getAdapters, getAdapters, getAdapters, getAnchoragesUnmodifiable, getAnchoredsUnmodifiable, getBehaviors, getChildrenUnmodifiable, getHandlers, getParent, getPolicies, getRoot, getVisual, isActive, isRefreshVisual, parentProperty, refreshVisual, refreshVisualProperty, register, registerAtVisualPartMap, removeChild, removeChildren, reorderChild, setAdaptable, setAdapter, setAdapter, setAdapter, setAdapter, setParent, setRefreshVisual, unregister, unregisterFromVisualPartMap, unsetAdapter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addChild, addChild, addChildren, addChildren, anchoragesUnmodifiableProperty, anchoredsUnmodifiableProperty, attachAnchored, attachToAnchorage, attachToAnchorage, childrenUnmodifiableProperty, detachAnchored, detachFromAnchorage, detachFromAnchorage, getAnchoragesUnmodifiable, getAnchoredsUnmodifiable, getBehaviors, getChildrenUnmodifiable, getHandlers, getParent, getPolicies, getRoot, getViewer, getVisual, isRefreshVisual, parentProperty, refreshVisual, refreshVisualProperty, removeChild, removeChildren, reorderChild, setParent, setRefreshVisual
adaptersProperty, getAdapter, getAdapter, getAdapter, getAdapterKey, getAdapters, getAdapters, getAdapters, setAdapter, setAdapter, setAdapter, setAdapter, unsetAdapter
adaptableProperty, getAdaptable, setAdaptable
activate, activeProperty, deactivate, isActive
dispose
protected void doAttachToAnchorageVisual(IVisualPart<? extends javafx.scene.Node> anchorage, java.lang.String role)
AbstractVisualPart
doAttachToAnchorageVisual
in class AbstractFeedbackPart<javafx.scene.shape.Line>
anchorage
- The anchorage IVisualPart
.role
- The anchorage role.protected javafx.scene.shape.Line doCreateVisual()
AbstractVisualPart
doCreateVisual
in class AbstractVisualPart<javafx.scene.shape.Line>
protected void doDetachFromAnchorageVisual(IVisualPart<? extends javafx.scene.Node> anchorage, java.lang.String role)
AbstractVisualPart
doDetachFromAnchorageVisual
in class AbstractFeedbackPart<javafx.scene.shape.Line>
anchorage
- The anchorage IVisualPart
.role
- The anchorage role.protected void doRefreshVisual(javafx.scene.shape.Line visual)
AbstractVisualPart
doRefreshVisual
in class AbstractVisualPart<javafx.scene.shape.Line>
visual
- This part's visual.public SnappingModel.SnappingLocation getSnappingLocation()
SnappingModel.SnappingLocation
for which feedback is visualized by
this SnappingFeedbackPart
.SnappingModel.SnappingLocation
for which feedback is visualized by
this SnappingFeedbackPart
.protected void onViewportSizeChanged()
protected void onViewportTranslationChanged()
public void setSnappingLocation(SnappingModel.SnappingLocation snappingLocation)
SnappingModel.SnappingLocation
for this feedback part to the given
value.snappingLocation
- The new SnappingModel.SnappingLocation
for this feedback part.Copyright (c) 2014, 2016 itemis AG and others. All rights reserved.