Class ConstraintLinkView

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.ConstraintLinkView
All Implemented Interfaces:
BaseElement, MDElement, ModelElementProvider, com.nomagic.magicdraw.uml.symbols.LabelOwner, com.nomagic.magicdraw.uml.symbols.LineJumpDrawer, com.nomagic.magicdraw.uml.symbols.PropertyBasedPresentationElement, com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider, NameOwner, PropertyChangeListener, Cloneable, Comparable, EventListener

@OpenApi public class ConstraintLinkView extends com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView implements com.nomagic.magicdraw.uml.symbols.PropertyBasedPresentationElement
  • Constructor Details

    • ConstraintLinkView

      public ConstraintLinkView()
    • ConstraintLinkView

      public ConstraintLinkView(@CheckForNull PresentationElement parent)
  • Method Details

    • 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.ContainerLinkView
      Parameters:
      visitor - which visits this element.
      Throws:
      Exception
    • createNameLabelWrapper

      protected com.nomagic.magicdraw.uml.symbols.shapes.NameLabelWrapper createNameLabelWrapper()
      Overrides:
      createNameLabelWrapper in class com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
    • internalUpdatePresentationElement

      protected void internalUpdatePresentationElement()
      Description copied from class: PresentationElement
      Internal symbol update method for subclassing. It is called from update as part of full update action.
      Overrides:
      internalUpdatePresentationElement in class com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
      See Also:
    • constructNameTextToDisplay

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

      public boolean isShowArrow()
    • sSetShowArrow

      public void sSetShowArrow(boolean showArrow)
    • setShowArrow

      public void setShowArrow(boolean showArrow)
    • 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
    • getConstraintTextMode

      public String getConstraintTextMode()
    • 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.ContainerLinkView
      Parameters:
      changer - new properties
    • internalGetPresentationElementStroke

      public BasicStroke internalGetPresentationElementStroke(boolean line, int width)
      Description copied from class: PathElement
      This method must be overridden, if you need to use DASHED_STROKE or another one.
      Overrides:
      internalGetPresentationElementStroke in class PathElement
      Parameters:
      line - true if for line, false if for adornments also
      width - width
      Returns:
      the stroke for line drawing ( by default SOLID_STROKE).
    • getSupplierConnectionType

      public int getSupplierConnectionType()
      Overrides:
      getSupplierConnectionType in class com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
    • canChangeSupplier

      public boolean canChangeSupplier()
      Overrides:
      canChangeSupplier in class PathElement
      Returns:
      true, if view can change supplier.
    • canChangeClient

      public boolean canChangeClient()
      Overrides:
      canChangeClient in class PathElement
      Returns:
      true, if view can change client
    • hasSharedModelElement

      public boolean hasSharedModelElement()
      Description copied from class: PresentationElement
      Returns true if ModelElement of this symbol can represented with other symbol. If ModelElement is not shared, it can be deleted together with symbol deleting.
      Overrides:
      hasSharedModelElement in class PathElement
      Returns:
      true if element of this symbol can be represented with other symbol.
    • createSmartListenerConfig

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

      public boolean beforeDelete(com.dassault_systemes.modeler.foundation.editing.CompositeCommand deleteCommand, Collection removeTogether)
      Description copied from class: PresentationElement
      Method is called before deleting symbol with user "DELETE" action
      Overrides:
      beforeDelete in class PresentationElement
      removeTogether - other symbols participating in delete operation
      Returns:
      true, if symbol can be deleted
    • getElement

      public Constraint 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.
    • asPresentationElement

      public PresentationElement asPresentationElement()
      Specified by:
      asPresentationElement in interface com.nomagic.magicdraw.uml.symbols.LabelOwner
      Specified by:
      asPresentationElement in interface com.nomagic.magicdraw.uml.symbols.PropertyBasedPresentationElement
      Returns:
      converts itself to PresentationElement