Class UsageView

  • 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 UsageView
    extends DependencyView
    • Field Detail

      • mShow_UML_2_0_Notation

        private java.lang.Boolean mShow_UML_2_0_Notation
    • Constructor Detail

      • UsageView

        public UsageView()
    • Method Detail

      • 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).
      • 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
      • isShowArrow

        public boolean isShowArrow()
      • isShow_UML_2_0_Notation

        public boolean isShow_UML_2_0_Notation()
      • setShow_UML_2_0_Notation

        public void setShow_UML_2_0_Notation​(boolean show_UML_2_0_Notation)
      • isConnectedToInterface

        public boolean isConnectedToInterface()
      • getElementLabel

        @CheckForNull
        public java.lang.String getElementLabel()
        Overrides:
        getElementLabel in class com.nomagic.magicdraw.uml.symbols.paths.LinkWithStereotype
      • getElement

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