Class AbstractNodePart<O extends org.eclipse.emf.ecore.EObject,C extends org.eclipse.emf.ecore.EObject>
java.lang.Object
org.eclipse.gef.mvc.fx.parts.AbstractVisualPart<NodeVisual>
org.eclipse.gef.mvc.fx.parts.AbstractContentPart<NodeVisual>
com.amalgamasimulation.graphicaleditor.parts.AbstractContentPart<NodeVisual>
com.amalgamasimulation.graphicaleditor.parts.AbstractPart<NodeVisual,O,C>
com.amalgamasimulation.graphicaleditor.parts.AbstractLocatablePart<NodeVisual,O,C>
com.amalgamasimulation.graphicaleditor.parts.AbstractNodePart<O,C>
- All Implemented Interfaces:
ICompoundTransformablePart,IHighlightPropertyOwnerPart,ILabelPropertyOwnerPart<O>,IOptimizedPart,IPositionPropertyOwnerPart,ITransparentPropertyOwnerPart,org.eclipse.gef.common.activate.IActivatable,org.eclipse.gef.common.adapt.IAdaptable,org.eclipse.gef.common.adapt.IAdaptable.Bound<org.eclipse.gef.mvc.fx.viewer.IViewer>,org.eclipse.gef.common.dispose.IDisposable,org.eclipse.gef.mvc.fx.parts.IContentPart<NodeVisual>,org.eclipse.gef.mvc.fx.parts.IResizableContentPart<NodeVisual>,org.eclipse.gef.mvc.fx.parts.ITransformableContentPart<NodeVisual>,org.eclipse.gef.mvc.fx.parts.IVisualPart<NodeVisual>
public abstract class AbstractNodePart<O extends org.eclipse.emf.ecore.EObject,C extends org.eclipse.emf.ecore.EObject>
extends AbstractLocatablePart<NodeVisual,O,C>
implements org.eclipse.gef.mvc.fx.parts.ITransformableContentPart<NodeVisual>, org.eclipse.gef.mvc.fx.parts.IResizableContentPart<NodeVisual>, ILabelPropertyOwnerPart<O>, IOptimizedPart
-
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
org.eclipse.gef.common.adapt.IAdaptable.Bound<A extends org.eclipse.gef.common.adapt.IAdaptable>Nested classes/interfaces inherited from interface org.eclipse.gef.common.adapt.IAdaptable.Bound
org.eclipse.gef.common.adapt.IAdaptable.Bound.Impl<T extends org.eclipse.gef.common.adapt.IAdaptable> -
Field Summary
FieldsFields inherited from class com.amalgamasimulation.graphicaleditor.parts.AbstractLocatablePart
nodeBounds, offsetXObservable, offsetYObservable, xObservable, yObservableFields inherited from class com.amalgamasimulation.graphicaleditor.parts.AbstractPart
connectionPortsObservable, containerObservable, contentObservable, highlightColor, selected, showConnectionsListener, transparent, viewerFields 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.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 NodeVisualList<org.eclipse.emf.ecore.EObject> List<org.eclipse.emf.ecore.EObject> List<AbstractArcPart<org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EObject>> intintvoidvoidvoidvoidinvalidateConnectionFeedback(double x, double y) voidinvalidatePolylineConnectionFeedback(double sceneX, double sceneY, List<javafx.geometry.Point2D> logicalBendpoints) booleanisPartSelectable(ActionModel actionModel) voidonHighlight(javafx.scene.paint.Color highlightColor) voidonPartSelectionChange(boolean selected) voidvoidsetVisualTransform(javafx.scene.transform.Affine totalTransform) voidshowConnectionFeedback(javafx.scene.paint.Color connectionFeedbackColor, Double... connectionFeedbackStrokeDash) voidvoidvoidupdateOpacity(boolean transparent) voidMethods inherited from class com.amalgamasimulation.graphicaleditor.parts.AbstractLocatablePart
clearContentTransformRequest, dispose, getContentSize, getContentTransform, getContentTransformRequest, getOffsetX, getOffsetY, getX, getX, getY, getY, getZ, getZ, getZStructuralFeature, onCoordsChange, onDoRefreshVisual, setContentSize, setContentTransform, setOffsetX, setOffsetYMethods inherited from class com.amalgamasimulation.graphicaleditor.parts.AbstractPart
convertXToModel, convertXToTarget, convertYToModel, convertYToTarget, doGetContentAnchorages, doRefreshVisual, getContainer, getContainerStructuralFeature, getContainerX, getContainerX, getContainerY, getContainerY, getHighlightColor, getOffsetNodeX, getOffsetNodeY, getPart, getVisualSize, highlight, isHighlighted, isPartSelected, isTransparent, onSetContent, onSetContentInternal, setConnectionsVisible, setContent, setParent, setTransparent, setVisualSize, unhighlightMethods inherited from class com.amalgamasimulation.graphicaleditor.parts.AbstractContentPart
activateChildren, addChild, addChild, addChildren, addChildren, deactivateChildren, getChildrenUnmodifiable, isImprovedPerformanceModeActive, removeChild, removeChildren, reorderChildMethods inherited from class org.eclipse.gef.mvc.fx.parts.AbstractContentPart
addContentChild, attachToContentAnchorage, contentAnchoragesUnmodifiableProperty, contentChildrenUnmodifiableProperty, contentProperty, detachFromContentAnchorage, doAddContentChild, doAttachToContentAnchorage, doDetachFromContentAnchorage, doRemoveContentChild, doReorderContentChild, getContentAnchoragesUnmodifiable, getContentChildrenUnmodifiable, isFocusable, isSelectable, refreshContentAnchorages, refreshContentChildren, register, registerAtContentPartMap, removeContentChild, reorderContentChild, unregister, unregisterFromContentPartMapMethods inherited from class org.eclipse.gef.mvc.fx.parts.AbstractVisualPart
activate, activateAdapters, activeProperty, adaptableProperty, adaptersProperty, anchoragesUnmodifiableProperty, anchoredsUnmodifiableProperty, attachAnchored, attachToAnchorage, attachToAnchorage, childrenUnmodifiableProperty, deactivate, deactivateAdapters, detachAnchored, detachFromAnchorage, detachFromAnchorage, determineViewer, doActivate, doAddChildVisual, doAttachToAnchorageVisual, doDeactivate, doDetachFromAnchorageVisual, doRemoveChildVisual, getAdaptable, getAdapter, getAdapter, getAdapter, getAdapterKey, getAdapters, getAdapters, getAdapters, getAnchoragesUnmodifiable, getAnchoredsUnmodifiable, getBehaviors, getHandlers, getParent, getPolicies, getRoot, getVisual, isActive, isRefreshVisual, parentProperty, refreshVisual, refreshVisualProperty, registerAtVisualPartMap, setAdaptable, setAdapter, setAdapter, setAdapter, setAdapter, 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.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 com.amalgamasimulation.graphicaleditor.parts.ILabelPropertyOwnerPart
eSetName, getLabelText, getName, getNameFeature, getNewObjectName, getSizeFontMethods inherited from interface com.amalgamasimulation.graphicaleditor.parts.IPositionPropertyOwnerPart
createCoordsObservable, getCoordsOwner, getPositionInternalContainerDescriptor, getXStructuralFeature, getYStructuralFeatureMethods inherited from interface org.eclipse.gef.mvc.fx.parts.IResizableContentPart
getContentSize, getVisualSize, setContentSize, setVisualSizeMethods inherited from interface org.eclipse.gef.mvc.fx.parts.ITransformableContentPart
getContentTransform, getVisualTransform, setContentTransformMethods 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
-
MIN_VISIBLE_ELLIPSE_SIZE
public static double MIN_VISIBLE_ELLIPSE_SIZE
-
-
Constructor Details
-
AbstractNodePart
public AbstractNodePart()
-
-
Method Details
-
isPartSelectable
- Overrides:
isPartSelectablein classAbstractPart<NodeVisual,O extends org.eclipse.emf.ecore.EObject, C extends org.eclipse.emf.ecore.EObject>
-
getConnectedArcParts
public List<AbstractArcPart<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EObject, getConnectedArcParts()org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EObject>> -
getArcsIn
-
getArcsOut
-
doCreateVisual
- Specified by:
doCreateVisualin classAbstractPart<NodeVisual,O extends org.eclipse.emf.ecore.EObject, C extends org.eclipse.emf.ecore.EObject>
-
doGetContentChildren
- Overrides:
doGetContentChildrenin classAbstractPart<NodeVisual,O extends org.eclipse.emf.ecore.EObject, C extends org.eclipse.emf.ecore.EObject>
-
getContent
- Specified by:
getContentin interfaceorg.eclipse.gef.mvc.fx.parts.IContentPart<O extends org.eclipse.emf.ecore.EObject>- Specified by:
getContentin interfaceILabelPropertyOwnerPart<O extends org.eclipse.emf.ecore.EObject>- Overrides:
getContentin classAbstractPart<NodeVisual,O extends org.eclipse.emf.ecore.EObject, C extends org.eclipse.emf.ecore.EObject>
-
getLabelHorizontalOffset
public int getLabelHorizontalOffset()- Specified by:
getLabelHorizontalOffsetin interfaceILabelPropertyOwnerPart<O extends org.eclipse.emf.ecore.EObject>
-
getLabelVerticalOffset
public int getLabelVerticalOffset()- Specified by:
getLabelVerticalOffsetin interfaceILabelPropertyOwnerPart<O extends org.eclipse.emf.ecore.EObject>
-
updateOpacity
public void updateOpacity(boolean transparent) - Specified by:
updateOpacityin interfaceITransparentPropertyOwnerPart
-
showDistanceMeterSource
public void showDistanceMeterSource() -
hideDistanceMeterSource
public void hideDistanceMeterSource() -
showDistanceMeterDest
public void showDistanceMeterDest() -
hideDistanceMeterDest
public void hideDistanceMeterDest() -
invalidateConnectionFeedback
public void invalidateConnectionFeedback(double x, double y) -
invalidatePolylineConnectionFeedback
public void invalidatePolylineConnectionFeedback(double sceneX, double sceneY, List<javafx.geometry.Point2D> logicalBendpoints) -
showConnectionFeedback
public void showConnectionFeedback(javafx.scene.paint.Color connectionFeedbackColor, Double... connectionFeedbackStrokeDash) -
hideConnectionFeedback
public void hideConnectionFeedback() -
onPartSelectionChange
public void onPartSelectionChange(boolean selected) - Overrides:
onPartSelectionChangein classAbstractPart<NodeVisual,O extends org.eclipse.emf.ecore.EObject, C extends org.eclipse.emf.ecore.EObject>
-
setVisualTransform
public void setVisualTransform(javafx.scene.transform.Affine totalTransform) - Specified by:
setVisualTransformin interfaceorg.eclipse.gef.mvc.fx.parts.ITransformableContentPart<O extends org.eclipse.emf.ecore.EObject>
-
onHighlight
public void onHighlight(javafx.scene.paint.Color highlightColor) - Specified by:
onHighlightin classAbstractPart<NodeVisual,O extends org.eclipse.emf.ecore.EObject, C extends org.eclipse.emf.ecore.EObject>
-
onUnhighlight
public void onUnhighlight()- Specified by:
onUnhighlightin classAbstractPart<NodeVisual,O extends org.eclipse.emf.ecore.EObject, C extends org.eclipse.emf.ecore.EObject>
-
updateVisibility
public void updateVisibility()- Specified by:
updateVisibilityin interfaceIOptimizedPart
-