Class SeqSelfMessageView

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

    @OpenApi
    public class SeqSelfMessageView
    extends com.nomagic.magicdraw.uml.symbols.paths.SeqBaseMessageView
    • Constructor Detail

      • SeqSelfMessageView

        public SeqSelfMessageView()
    • Method Detail

      • getMiddlePoint

        public java.awt.Point getMiddlePoint()
        Description copied from class: PathElement
        Calculates and returns middle point of link. For this link it is average between supplier's and client's points.
        Returns:
        middle point.
      • intersectsInternal

        public boolean intersectsInternal​(int x,
                                          int y,
                                          int width,
                                          int height)
        checks whether object intersects with given rectangle
        Parameters:
        x - top left x point.
        y - top left y point.
        width - width of rectangle.
        height - height of rectangle.
        Returns:
        true if object and rectangle intersects
      • coversPoint

        public boolean coversPoint​(int x,
                                   int y)
        checks if object covers provided point
        Overrides:
        coversPoint in class com.nomagic.magicdraw.uml.symbols.paths.SeqBaseMessageView
        Returns:
        true if object covers this point
      • setSupplierPoint

        public void setSupplierPoint​(java.awt.Point p)
        Description copied from class: PathElement
        Sets 1st point. Sets new location for text boxes ( if point is changed, text boxes must be moved too ).
        Parameters:
        p - new 1st point.
      • setClientPoint

        public void setClientPoint​(java.awt.Point p)
        Description copied from class: PathElement
        Sets client point.
        Overrides:
        setClientPoint in class com.nomagic.magicdraw.uml.symbols.paths.SeqBaseMessageView
        Parameters:
        p - new client point.
      • sSetBounds

        public void sSetBounds​(java.awt.Rectangle rct)
        Sets new bounds for this message.
        Parameters:
        rct - new bounds
      • setBounds

        public void setBounds​(java.awt.Rectangle rct)
        Sets new bounds for this message.
        Parameters:
        rct - new bounds
      • simpleSetBounds

        public void simpleSetBounds​(java.awt.Rectangle r)
        Description copied from class: PathElement
        calls break point vector changed method.
        Overrides:
        simpleSetBounds in class com.nomagic.magicdraw.uml.symbols.paths.SeqBaseMessageView
        Parameters:
        r - new bounding rectangle.
      • 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.SeqBaseMessageView
        Parameters:
        visitor - which visits this element.
        Throws:
        java.lang.Exception
      • isMessageOrientedToSelf

        public boolean isMessageOrientedToSelf()
        Specified by:
        isMessageOrientedToSelf in class com.nomagic.magicdraw.uml.symbols.paths.SeqBaseMessageView