Package org.eclipse.gef.zest.fx.parts
Class EdgePart
- All Implemented Interfaces:
IActivatable,IAdaptable,IAdaptable.Bound<IViewer>,IDisposable,IBendableContentPart<Connection>,IContentPart<Connection>,IResizableContentPart<Connection>,ITransformableContentPart<Connection>,IVisualPart<Connection>
public class EdgePart
extends AbstractContentPart<Connection>
implements IBendableContentPart<Connection>
The
EdgePart is the controller for an Edge content object. It
uses Connection for the visualization.-
Property Summary
Properties inherited from class org.eclipse.gef.mvc.fx.parts.AbstractContentPart
contentAnchoragesUnmodifiable, contentChildrenUnmodifiable, contentProperties inherited from class org.eclipse.gef.mvc.fx.parts.AbstractVisualPart
active, adaptable, adapters, anchoragesUnmodifiable, anchoredsUnmodifiable, childrenUnmodifiable, parent, refreshVisualProperties inherited from interface org.eclipse.gef.common.activate.IActivatable
activeProperties inherited from interface org.eclipse.gef.common.adapt.IAdaptable
adaptersProperties inherited from interface org.eclipse.gef.common.adapt.IAdaptable.Bound
adaptableProperties inherited from interface org.eclipse.gef.mvc.fx.parts.IContentPart
contentAnchoragesUnmodifiable, contentChildrenUnmodifiable, contentProperties inherited from interface org.eclipse.gef.mvc.fx.parts.IVisualPart
anchoragesUnmodifiable, anchoredsUnmodifiable, childrenUnmodifiable, parent, refreshVisual -
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.gef.common.adapt.IAdaptable
IAdaptable.Bound<A extends IAdaptable>Nested classes/interfaces inherited from interface org.eclipse.gef.common.adapt.IAdaptable.Bound
IAdaptable.Bound.Impl<T extends IAdaptable>Nested classes/interfaces inherited from interface org.eclipse.gef.mvc.fx.parts.IBendableContentPart
IBendableContentPart.BendPoint -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CSS class that is assigned to the visual of thisEdgePart.static final Stringstatic final StringCSS class assigned to the decorations.Fields inherited from interface org.eclipse.gef.common.activate.IActivatable
ACTIVE_PROPERTYFields inherited from interface org.eclipse.gef.common.adapt.IAdaptable
ADAPTERS_PROPERTYFields inherited from interface org.eclipse.gef.mvc.fx.parts.IBendableContentPart
CONTROL_ROLE_PREFIX, SOURCE_ROLE, TARGET_ROLEFields inherited from interface org.eclipse.gef.mvc.fx.parts.IContentPart
CONTENT_ANCHORAGES_PROPERTY, CONTENT_CHILDREN_PROPERTY, CONTENT_PROPERTYFields inherited from interface org.eclipse.gef.mvc.fx.parts.ITransformableContentPart
TRANSFORM_PROVIDER_KEY, TRANSFORM_PROVIDER_ROLEFields inherited from interface org.eclipse.gef.mvc.fx.parts.IVisualPart
ANCHORAGES_PROPERTY, ANCHOREDS_PROPERTY, CHILDREN_PROPERTY, PARENT_PROPERTY, REFRESH_VISUAL_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voiddoAddChildVisual(IVisualPart<? extends javafx.scene.Node> child, int index) protected voiddoAttachToAnchorageVisual(IVisualPart<? extends javafx.scene.Node> anchorage, String role) protected voiddoAttachToContentAnchorage(Object contentAnchorage, String role) protected Connectionprotected voidprotected voiddoDetachFromAnchorageVisual(IVisualPart<? extends javafx.scene.Node> anchorage, String role) protected voiddoDetachFromContentAnchorage(Object contentAnchorage, String role) protected SetMultimap<? extends Object,String> protected voiddoRefreshVisual(Connection visual) protected voiddoRemoveChildVisual(IVisualPart<? extends javafx.scene.Node> child, int index) javafx.scene.NodegetCurve()Returns theNodethat displays the edge.protected voidChanges the tooltip of thisEdgePartto the given value.voidsetContentBendPoints(List<IBendableContentPart.BendPoint> bendPoints) Methods inherited from class org.eclipse.gef.mvc.fx.parts.AbstractContentPart
addContentChild, attachToContentAnchorage, contentAnchoragesUnmodifiableProperty, contentChildrenUnmodifiableProperty, contentProperty, detachFromContentAnchorage, doAddContentChild, doRemoveContentChild, doReorderContentChild, getContentAnchoragesUnmodifiable, getContentChildrenUnmodifiable, isFocusable, isSelectable, refreshContentAnchorages, refreshContentChildren, register, registerAtContentPartMap, removeContentChild, reorderContentChild, setContent, unregister, unregisterFromContentPartMapMethods inherited from class org.eclipse.gef.mvc.fx.parts.AbstractVisualPart
activate, activateAdapters, activateChildren, activeProperty, adaptableProperty, adaptersProperty, addChild, addChild, addChildren, addChildren, anchoragesUnmodifiableProperty, anchoredsUnmodifiableProperty, attachAnchored, attachToAnchorage, attachToAnchorage, childrenUnmodifiableProperty, deactivate, deactivateAdapters, deactivateChildren, detachAnchored, detachFromAnchorage, detachFromAnchorage, determineViewer, dispose, getAdaptable, getAdapter, getAdapter, getAdapter, getAdapterKey, getAdapters, getAdapters, getAdapters, getAnchoragesUnmodifiable, getAnchoredsUnmodifiable, getBehaviors, getChildrenUnmodifiable, getHandlers, getParent, getPolicies, getRoot, getVisual, isActive, isRefreshVisual, parentProperty, refreshVisual, refreshVisualProperty, registerAtVisualPartMap, removeChild, removeChildren, reorderChild, setAdaptable, setAdapter, setAdapter, setAdapter, setAdapter, setParent, setRefreshVisual, unregisterFromVisualPartMap, unsetAdapterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.gef.common.activate.IActivatable
activate, activeProperty, deactivate, isActiveMethods inherited from interface org.eclipse.gef.common.adapt.IAdaptable
adaptersProperty, getAdapter, getAdapter, getAdapter, getAdapterKey, getAdapters, getAdapters, getAdapters, setAdapter, setAdapter, setAdapter, setAdapter, unsetAdapterMethods inherited from interface org.eclipse.gef.common.adapt.IAdaptable.Bound
adaptableProperty, getAdaptable, setAdaptableMethods inherited from interface org.eclipse.gef.mvc.fx.parts.IBendableContentPart
getBendableVisual, getContentSize, getContentTransform, getRole, getVisualBendPoints, getVisualSize, getVisualTransform, setContentSize, setContentTransform, setVisualBendPoints, setVisualSize, setVisualTransformMethods inherited from interface org.eclipse.gef.mvc.fx.parts.IContentPart
addContentChild, attachToContentAnchorage, contentAnchoragesUnmodifiableProperty, contentChildrenUnmodifiableProperty, contentProperty, detachFromContentAnchorage, getContentAnchoragesUnmodifiable, getContentChildrenUnmodifiable, isFocusable, isSelectable, refreshContentAnchorages, refreshContentChildren, removeContentChild, reorderContentChild, setContentMethods inherited from interface org.eclipse.gef.common.dispose.IDisposable
disposeMethods inherited from interface org.eclipse.gef.mvc.fx.parts.IVisualPart
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
-
Field Details
-
CSS_CLASS
The CSS class that is assigned to the visual of thisEdgePart.- See Also:
-
CSS_CLASS_CURVE
- See Also:
-
CSS_CLASS_DECORATION
CSS class assigned to the decorations.- See Also:
-
-
Constructor Details
-
EdgePart
public EdgePart()
-
-
Method Details
-
doActivate
protected void doActivate()- Overrides:
doActivatein classAbstractVisualPart<Connection>
-
doAddChildVisual
- Overrides:
doAddChildVisualin classAbstractVisualPart<Connection>
-
doAttachToAnchorageVisual
protected void doAttachToAnchorageVisual(IVisualPart<? extends javafx.scene.Node> anchorage, String role) - Overrides:
doAttachToAnchorageVisualin classAbstractVisualPart<Connection>
-
doAttachToContentAnchorage
- Overrides:
doAttachToContentAnchoragein classAbstractContentPart<Connection>
-
doCreateVisual
- Specified by:
doCreateVisualin classAbstractVisualPart<Connection>
-
doDeactivate
protected void doDeactivate()- Overrides:
doDeactivatein classAbstractVisualPart<Connection>
-
doDetachFromAnchorageVisual
protected void doDetachFromAnchorageVisual(IVisualPart<? extends javafx.scene.Node> anchorage, String role) - Overrides:
doDetachFromAnchorageVisualin classAbstractVisualPart<Connection>
-
doDetachFromContentAnchorage
- Overrides:
doDetachFromContentAnchoragein classAbstractContentPart<Connection>
-
doGetContentAnchorages
- Specified by:
doGetContentAnchoragesin classAbstractContentPart<Connection>
-
doGetContentChildren
- Specified by:
doGetContentChildrenin classAbstractContentPart<Connection>
-
doRefreshVisual
- Specified by:
doRefreshVisualin classAbstractVisualPart<Connection>
-
doRemoveChildVisual
- Overrides:
doRemoveChildVisualin classAbstractVisualPart<Connection>
-
getContent
- Specified by:
getContentin interfaceIContentPart<Connection>- Overrides:
getContentin classAbstractContentPart<Connection>
-
getContentBendPoints
- Specified by:
getContentBendPointsin interfaceIBendableContentPart<Connection>
-
getCurve
public javafx.scene.Node getCurve()Returns theNodethat displays the edge.- Returns:
- The
Nodeused to display the edge.
-
refreshTooltip
protected void refreshTooltip()Changes the tooltip of thisEdgePartto the given value.- Since:
- 5.1
-
setContentBendPoints
- Specified by:
setContentBendPointsin interfaceIBendableContentPart<Connection>
-