Class FlowConnectorView

java.lang.Object
com.nomagic.magicdraw.uml.MDElementImpl
com.nomagic.magicdraw.uml.symbols.PresentationElement
com.nomagic.magicdraw.uml.symbols.paths.PathConnector
com.nomagic.magicdraw.uml.symbols.shapes.ShapeElement
com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
com.nomagic.magicdraw.uml.symbols.shapes.TextShapeView
com.nomagic.magicdraw.uml.symbols.shapes.FlowConnectorView
All Implemented Interfaces:
BaseElement, MDElement, ModelElementProvider, com.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShape, com.nomagic.magicdraw.uml.symbols.shapes.PlainTextOrHTMLChangeable, com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider, com.nomagic.magicdraw.uml.symbols.Wrapable, NameOwner, PropertyChangeListener, Cloneable, Comparable, EventListener

@OpenApi public class FlowConnectorView extends com.nomagic.magicdraw.uml.symbols.shapes.TextShapeView
This class creates a split shape for flows.

  • Constructor Details

    • FlowConnectorView

      public FlowConnectorView()
    • FlowConnectorView

      public FlowConnectorView(@CheckForNull PresentationElement parent)
  • Method Details

    • isAllowRemoveOnUpdate

      public static boolean isAllowRemoveOnUpdate()
    • setAllowRemoveOnUpdate

      public static void setAllowRemoveOnUpdate(boolean allowRemoveOnUpdate)
    • minimumSizeIgnoringOrientation

      protected void minimumSizeIgnoringOrientation(Dimension min)
      Overrides:
      minimumSizeIgnoringOrientation in class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
    • getHumanType

      public String getHumanType()
      Description copied from class: PresentationElement
      Returns human representation of the data type
      Specified by:
      getHumanType in interface BaseElement
      Overrides:
      getHumanType in class PresentationElement
      Returns:
      the name of the data
    • internalGetHeaderInsets

      protected com.nomagic.ui.UnmodifiableInsets internalGetHeaderInsets()
      Overrides:
      internalGetHeaderInsets in class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
    • internalSpecificUpdate

      protected void internalSpecificUpdate()
      Description copied from class: com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
      Specific to every shape and model element update operation. Must be overridden in subclasses if you need to do specific tasks. !!! Important - all resizing, paths moving and so on is done in updatePresentationElement and should not be done in specific update.
      Overrides:
      internalSpecificUpdate in class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
      See Also:
      • AbstractHeaderShapeView.internalUpdatePresentationElement()
    • accept

      public void accept(Visitor visitor) throws Exception
      Description copied from interface: MDElement
      Method accepts a visitor, and calls method "visit<class name>(this)" of a visitor. See "Visitor" pattern for more details.
      Specified by:
      accept in interface MDElement
      Overrides:
      accept in class com.nomagic.magicdraw.uml.symbols.shapes.TextShapeView
      Parameters:
      visitor - which visits this element.
      Throws:
      Exception
    • paintSelf

      public void paintSelf(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)
      Overrides:
      paintSelf in class com.nomagic.magicdraw.uml.symbols.shapes.TextShapeView
    • getBaseFlowView

      @CheckForNull public com.nomagic.magicdraw.uml.symbols.paths.BaseFlowView getBaseFlowView()
    • isWrapEnabled

      public boolean isWrapEnabled()
      Specified by:
      isWrapEnabled in interface com.nomagic.magicdraw.uml.symbols.Wrapable
      Overrides:
      isWrapEnabled in class com.nomagic.magicdraw.uml.symbols.shapes.TextShapeView
    • isOvalShape

      protected boolean isOvalShape()
      Overrides:
      isOvalShape in class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
    • getHeaderDistanceFromTopForOvalShape

      protected int getHeaderDistanceFromTopForOvalShape()
      Overrides:
      getHeaderDistanceFromTopForOvalShape in class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
    • getHeaderVerticalPositionForLayout

      protected com.nomagic.magicdraw.uml.symbols.shapes.TextObject.VerticalPosition getHeaderVerticalPositionForLayout()
      Overrides:
      getHeaderVerticalPositionForLayout in class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
      Returns:
      header vertical position used for layout adjusted by current shape state
    • findOwnerForElement

      public com.dassault_systemes.modeler.foundation.model.ModelElement findOwnerForElement(PresentationElement newParent, com.dassault_systemes.modeler.foundation.model.ModelElementOwnershipContext ownershipContext)
      Overrides:
      findOwnerForElement in class PresentationElement
    • findNameForConnector

      public static String findNameForConnector(DiagramPresentationElement diagram)
      Returns unique name for connector view in given diagram
      Parameters:
      diagram - diagram
      Returns:
      name
    • getElement

      public ActivityNode getElement()
      Description copied from class: PresentationElement
      Returns model element of this presentation element. Some presentation elements (for example TextBoxes) do not have model elements.
      Specified by:
      getElement in interface ModelElementProvider
      Overrides:
      getElement in class PresentationElement
      Returns:
      model element of this presentation element.