Class ConstraintLinkView

  • All Implemented Interfaces:
    BaseElement, MDElement, ModelElementProvider, com.nomagic.magicdraw.uml.symbols.LabelOwner, com.nomagic.magicdraw.uml.symbols.LineJumpDrawer, com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider, NameOwner, java.beans.PropertyChangeListener, java.lang.Cloneable, java.lang.Comparable, java.util.EventListener

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

      • ConstraintLinkView

        public ConstraintLinkView()
    • Method Detail

      • accept

        public void accept​(Visitor visitor)
                    throws java.lang.Exception
        Description copied from interface: MDElement
        Method accepts visitor, and calls method visit<class name>(this) of 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:
        java.lang.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:
        PresentationElement.update()
      • updateNameBox

        public void updateNameBox()
        Overrides:
        updateNameBox in class com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
      • 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 java.lang.String getConstraintTextMode()
      • internalApplyProperties

        public void internalApplyProperties​(PropertyManager man)
        Description copied from class: PathElement
        Applies properties
        Overrides:
        internalApplyProperties in class com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
        Parameters:
        man - new properties
      • internalGetPresentationElementStroke

        public java.awt.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.
        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()
        Returns:
        true, if view can change supplier.
      • canChangeClient

        public boolean canChangeClient()
        Returns:
        true, if view can change client
      • hasSharedData

        public boolean hasSharedData()
        Description copied from class: PresentationElement
        Returns true if data of this object can be shared. If data is not shared data can be deleted with del key. Or it must be deleted with CRL+D
        Returns:
        true, if link has shared data.
      • createSmartListenerConfig

        protected void createSmartListenerConfig​(java.util.List<SmartListenerConfig> configurations)
      • beforeDelete

        public boolean beforeDelete​(com.nomagic.magicdraw.commands.MacroCommand deleteCommand,
                                    java.util.Collection removeTogether)
        Description copied from class: PresentationElement
        Method is called before deleting symbol with user "DELETE" action
        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.