Class AssociationView

    • Constructor Detail

      • AssociationView

        public AssociationView()
    • Method Detail

      • createNameLabelWrapper

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

        public com.nomagic.magicdraw.uml.symbols.paths.AssociationNameLabelWrapper getNameLabelWrapper()
        Overrides:
        getNameLabelWrapper in class com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
      • getAssociationNameBox

        public com.nomagic.magicdraw.uml.symbols.shapes.AssociationTextBoxView getAssociationNameBox()
        Gets association name box.
        Returns:
        association name box.
      • updateNameBox

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

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

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

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

        public void propertyChange​(java.beans.PropertyChangeEvent e)
        Description copied from class: PresentationElement
        Listens for property change it can be: data was edited text box was edited
        Specified by:
        propertyChange in interface java.beans.PropertyChangeListener
      • 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.LinkWithRolesView
        Parameters:
        visitor - which visits this element.
        Throws:
        java.lang.Exception
      • canAddInstance

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

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

        public boolean canHavePaths()
        Returns:
        true if symbol can have connected paths. Return false here.
      • getElement

        public Association 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.