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>
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
  • Field Details

    • MIN_VISIBLE_ELLIPSE_SIZE

      public static double MIN_VISIBLE_ELLIPSE_SIZE
  • Constructor Details

    • AbstractNodePart

      public AbstractNodePart()
  • Method Details

    • isPartSelectable

      public boolean isPartSelectable(ActionModel actionModel)
      Overrides:
      isPartSelectable in class AbstractPart<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,org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EObject>> getConnectedArcParts()
    • getArcsIn

      public List<org.eclipse.emf.ecore.EObject> getArcsIn()
    • getArcsOut

      public List<org.eclipse.emf.ecore.EObject> getArcsOut()
    • doCreateVisual

      protected NodeVisual doCreateVisual()
      Specified by:
      doCreateVisual in class AbstractPart<NodeVisual,O extends org.eclipse.emf.ecore.EObject,C extends org.eclipse.emf.ecore.EObject>
    • doGetContentChildren

      protected List<? extends Object> doGetContentChildren()
      Overrides:
      doGetContentChildren in class AbstractPart<NodeVisual,O extends org.eclipse.emf.ecore.EObject,C extends org.eclipse.emf.ecore.EObject>
    • getContent

      public O getContent()
      Specified by:
      getContent in interface org.eclipse.gef.mvc.fx.parts.IContentPart<O extends org.eclipse.emf.ecore.EObject>
      Specified by:
      getContent in interface ILabelPropertyOwnerPart<O extends org.eclipse.emf.ecore.EObject>
      Overrides:
      getContent in class AbstractPart<NodeVisual,O extends org.eclipse.emf.ecore.EObject,C extends org.eclipse.emf.ecore.EObject>
    • getLabelHorizontalOffset

      public int getLabelHorizontalOffset()
      Specified by:
      getLabelHorizontalOffset in interface ILabelPropertyOwnerPart<O extends org.eclipse.emf.ecore.EObject>
    • getLabelVerticalOffset

      public int getLabelVerticalOffset()
      Specified by:
      getLabelVerticalOffset in interface ILabelPropertyOwnerPart<O extends org.eclipse.emf.ecore.EObject>
    • updateOpacity

      public void updateOpacity(boolean transparent)
      Specified by:
      updateOpacity in interface ITransparentPropertyOwnerPart
    • 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:
      onPartSelectionChange in class AbstractPart<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:
      setVisualTransform in interface org.eclipse.gef.mvc.fx.parts.ITransformableContentPart<O extends org.eclipse.emf.ecore.EObject>
    • onHighlight

      public void onHighlight(javafx.scene.paint.Color highlightColor)
      Specified by:
      onHighlight in class AbstractPart<NodeVisual,O extends org.eclipse.emf.ecore.EObject,C extends org.eclipse.emf.ecore.EObject>
    • onUnhighlight

      public void onUnhighlight()
      Specified by:
      onUnhighlight in class AbstractPart<NodeVisual,O extends org.eclipse.emf.ecore.EObject,C extends org.eclipse.emf.ecore.EObject>
    • updateVisibility

      public void updateVisibility()
      Specified by:
      updateVisibility in interface IOptimizedPart