Class FoundMessageView

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.LostFoundMessageView
com.nomagic.magicdraw.uml.symbols.paths.FoundMessageView
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 FoundMessageView extends com.nomagic.magicdraw.uml.symbols.paths.LostFoundMessageView

Represents a found message symbol.

Found message does not have a sender in the model, but the receiver is known. To indicate an unknown sender, a black "bubble" is drawn at the client end of the message.

  • Constructor Details

    • FoundMessageView

      public FoundMessageView()
    • FoundMessageView

      public FoundMessageView(@CheckForNull PresentationElement parent)
  • Method Details

    • 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.LostFoundMessageView
      Parameters:
      visitor - which visits this element.
      Throws:
      Exception
    • setClientPoint

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

      public void setInitialStartupPosition(Point p)
      Description copied from class: com.nomagic.magicdraw.uml.symbols.paths.LostFoundMessageView
      Sets initial position of the lost/found message.
      Specified by:
      setInitialStartupPosition in class com.nomagic.magicdraw.uml.symbols.paths.LostFoundMessageView
      Parameters:
      p - point at which to place the message.
    • setBounds

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

      public int getMinimalPossibleDistanceForMoving()
      Description copied from class: com.nomagic.magicdraw.uml.symbols.paths.SeqBaseMessageView
      Calculates minimal distance, where message can be moved. In general it is calculated minimal allowed moving value according the client or supplier bounds value.

      Distance is not calculated for ActivationView, which is in general client or supplier of the message. In this situation is taken lifeline

      Overrides:
      getMinimalPossibleDistanceForMoving in class com.nomagic.magicdraw.uml.symbols.paths.SeqBaseMessageView
      Returns:
      distance