Class ExtensionView

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

    @OpenApi
    public class ExtensionView
    extends AssociationView
    • Constructor Detail

      • ExtensionView

        public ExtensionView()
    • Method Detail

      • createLabels

        protected void createLabels()
        Overrides:
        createLabels in class com.nomagic.magicdraw.uml.symbols.paths.LinkWithStereotype
      • getRequiredLabelBox

        @CheckForNull
        public TextBoxView getRequiredLabelBox()
      • getExtensionRequiredLabelWrapper

        public com.nomagic.magicdraw.uml.symbols.paths.ExtensionRequiredLabelWrapper getExtensionRequiredLabelWrapper()
      • 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
        Parameters:
        visitor - which visits this element.
        Throws:
        java.lang.Exception
      • getFirstMemberEnd

        protected Element getFirstMemberEnd()
      • getSecondMemberEnd

        protected Element getSecondMemberEnd()
      • paintSelf

        public void paintSelf​(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)
        Overrides:
        paintSelf in class com.nomagic.magicdraw.uml.symbols.paths.LinkWithRolesView
      • findOtherExistingElement

        @CheckForNull
        public Element findOtherExistingElement()
        Description copied from class: PathElement
        Finds and returns model element which meaning is the same as this link model element. This method should be used for Generalization and (maybe)other links. Default behavior is to return model element of this link. This method should be overridden in generalization and (maybe) other links. Make sure that ends are set before calling this method.
        Returns:
        element
      • createSmartListenerConfig

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

        public boolean isShowRequired()
      • sSetShowRequired

        public void sSetShowRequired​(boolean show)
      • setShowRequired

        public void setShowRequired​(boolean show)
      • getElement

        public Extension 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
        Returns:
        model element of this presentation element.