Class SeqSelfMessageView

java.lang.Object
com.nomagic.magicdraw.uml.MDElementImpl
com.nomagic.magicdraw.uml.symbols.PresentationElement
com.nomagic.magicdraw.uml.symbols.paths.PathConnector
com.nomagic.magicdraw.uml.symbols.paths.PathElement
com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
com.nomagic.magicdraw.uml.symbols.paths.LinkWithStereotype
com.nomagic.magicdraw.uml.symbols.paths.SeqBaseMessageView
com.nomagic.magicdraw.uml.symbols.paths.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, com.nomagic.magicdraw.uml.symbols.PropertyBasedPresentationElement, StereotypesDisplayModeOwner, com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider, NameOwner, PropertyChangeListener, Cloneable, Comparable, EventListener

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

    • SeqSelfMessageView

      public SeqSelfMessageView()
    • SeqSelfMessageView

      public SeqSelfMessageView(@CheckForNull PresentationElement parent)
  • Method Details

    • getMiddlePoint

      public 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.
      Overrides:
      getMiddlePoint in class PathElement
      Returns:
      middle point.
    • intersectsInternal

      public boolean intersectsInternal(int x, int y, int width, int height)
      Description copied from class: PathElement
      Check intersection with given rectangle. Intersection is counted by getting index of segment in path.
      Overrides:
      intersectsInternal in class PathElement
      Parameters:
      x - top left x point.
      y - top left y point.
      width - width of rectangle.
      height - height of rectangle.
      Returns:
      true if rectangle intersect with any line of path.
    • coversPoint

      public boolean coversPoint(int x, int y, com.nomagic.magicdraw.uml.symbols.IntersectionKind kind)
      Description copied from class: PathElement
      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(Point p)
      Description copied from class: PathElement
      Sets first point. Sets new location for text boxes if a point is changed, text boxes must be moved too.
      Overrides:
      setSupplierPoint in class PathElement
      Parameters:
      p - new 1st point
    • setClientPoint

      public void setClientPoint(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(Rectangle rct)
      Description copied from class: PathElement
      Moves path to new location.
      Overrides:
      sSetBounds in class PathElement
      Parameters:
      rct - new location of a path
    • setBounds

      public void setBounds(Rectangle rct)
      Description copied from class: PathElement
      Moves link to new location.
      Overrides:
      setBounds in class PathElement
      Parameters:
      rct - new location of a path
    • simpleSetBounds

      public void simpleSetBounds(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 Exception
      Description copied from interface: MDElement
      Method accepts a visitor, and calls method "visit<class name>(this)" of a 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:
      Exception
    • isMessageOrientedToSelf

      public boolean isMessageOrientedToSelf()
      Specified by:
      isMessageOrientedToSelf in class com.nomagic.magicdraw.uml.symbols.paths.SeqBaseMessageView
      Returns:
      true only if message is oriented to self. Recursive message is also oriented to self