Class ConnectorView

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.paths.PathElement
com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
com.nomagic.magicdraw.uml.symbols.paths.LinkWithStereotype
com.nomagic.magicdraw.uml.symbols.paths.LinkWithEndsView
com.nomagic.magicdraw.uml.symbols.paths.ConnectorView
All Implemented Interfaces:
BaseElement, com.nomagic.magicdraw.uml.CompartmentSupport, MDElement, ModelElementProvider, com.nomagic.magicdraw.uml.symbols.LabelOwner, com.nomagic.magicdraw.uml.symbols.LineJumpDrawer, com.nomagic.magicdraw.uml.symbols.paths.PathWithEnds<com.nomagic.magicdraw.uml.symbols.shapes.LinkEndView>, com.nomagic.magicdraw.uml.symbols.PropertyBasedPresentationElement, StereotypesDisplayModeOwner, com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider, NameOwner, PropertyChangeListener, Cloneable, Comparable, EventListener
Direct Known Subclasses:
ConnectorToSelfView

@OpenApi public class ConnectorView extends com.nomagic.magicdraw.uml.symbols.paths.LinkWithEndsView
  • Constructor Details

    • ConnectorView

      public ConnectorView()
    • ConnectorView

      public ConnectorView(@CheckForNull PresentationElement parent)
  • Method Details

    • createNameLabelWrapper

      protected com.nomagic.magicdraw.uml.symbols.shapes.NameLabelWrapper createNameLabelWrapper()
      Overrides:
      createNameLabelWrapper in class com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
    • 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.paths.LinkWithEndsView
      Parameters:
      visitor - which visits this element.
      Throws:
      Exception
    • getElement

      public Connector 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 com.nomagic.magicdraw.uml.symbols.LabelOwner
      Specified by:
      getElement in interface ModelElementProvider
      Overrides:
      getElement in class PresentationElement
      Returns:
      model element of this presentation element.
    • canAddInstance

      public boolean canAddInstance(PresentationElement symbol)
      Description copied from class: PresentationElement
      Object view has no children.
      Overrides:
      canAddInstance in class com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
    • updateNameBox

      public void updateNameBox()
      Overrides:
      updateNameBox in class com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
    • constructNameTextToDisplay

      public String constructNameTextToDisplay()
      Overrides:
      constructNameTextToDisplay in class com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
      Returns:
      pure name text for displaying
    • isShowType

      public boolean isShowType()
    • setShowType

      public void setShowType(boolean showType)
    • sSetShowType

      public void sSetShowType(boolean showType)
    • isShowInheritedSign

      public boolean isShowInheritedSign()
      Returns:
      true if inherited sign is shown
    • sSetShowInheritedSign

      public void sSetShowInheritedSign(boolean showInheritedSign)
      Show inherited sign
      Parameters:
      showInheritedSign - show
    • setShowInheritedSign

      public void setShowInheritedSign(boolean showInheritedSign)
      Show inherited sign
      Parameters:
      showInheritedSign - show
    • createSmartListenerConfig

      protected void createSmartListenerConfig(List<SmartListenerConfig> configurations)
      Overrides:
      createSmartListenerConfig in class com.nomagic.magicdraw.uml.symbols.paths.LinkWithStereotype
    • createEndBoxes

      public void createEndBoxes()
    • isShowConnectorEndA

      public boolean isShowConnectorEndA()
    • isShowConnectorEndB

      public boolean isShowConnectorEndB()
    • setShowConnectorEndA

      public void setShowConnectorEndA(boolean show)
    • setShowConnectorEndB

      public void setShowConnectorEndB(boolean show)
    • sSetShowConnectorEndA

      public void sSetShowConnectorEndA(boolean show)
    • sSetShowConnectorEndB

      public void sSetShowConnectorEndB(boolean show)
    • internalSilentApply

      public void internalSilentApply()
      Description copied from class: PresentationElement
      Silently applies all properties after initialization
      Overrides:
      internalSilentApply in class com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
    • internalApplyProperties

      public void internalApplyProperties(com.dassault_systemes.modeler.magic.diagram.styledelegates.PresentationElementStyleChanger changer)
      Description copied from class: PathElement
      Applies properties
      Overrides:
      internalApplyProperties in class com.nomagic.magicdraw.uml.symbols.paths.LinkWithStereotype
      Parameters:
      changer - new properties
    • canHavePaths

      public boolean canHavePaths()
      Overrides:
      canHavePaths in class PresentationElement
      Returns:
      true if symbol can have connected paths. Return false here.
    • getModelElementForSupplierEndShape

      protected Element getModelElementForSupplierEndShape()
      Specified by:
      getModelElementForSupplierEndShape in class com.nomagic.magicdraw.uml.symbols.paths.LinkWithEndsView
    • getModelElementForClientEndShape

      protected Element getModelElementForClientEndShape()
      Specified by:
      getModelElementForClientEndShape in class com.nomagic.magicdraw.uml.symbols.paths.LinkWithEndsView
    • getType

      public Association getType()
    • setClient

      public void setClient(PresentationElement obj)
      Description copied from class: PathElement
      Sets client for this link. Changes parent object to the parent of client. Client's parent will always contain incoming links.
      Overrides:
      setClient in class PathElement
      Parameters:
      obj - shape to check
    • setSupplier

      public void setSupplier(PresentationElement obj)
      Description copied from class: PathElement
      Sets supplier end for link. Removes this link from old shape. Inserts this link to new shape. Method also sets supplier point to the middle point of shape.
      Overrides:
      setSupplier in class PathElement
      Parameters:
      obj - new supplier.
    • updatePartWithPortForConnectorEnds

      public void updatePartWithPortForConnectorEnds()
      Updates partWithPort property for both connector ends.
    • getPartWithPortForView

      @CheckForNull public static Property getPartWithPortForView(PresentationElement view, ConnectorView connectorView)
      Calculate partWithPort property value
      Parameters:
      view - symbol for which to calculate property value
      connectorView - connector view
      Returns:
      Property or null