Class NoteAnchorView

All Implemented Interfaces:
BaseElement, MDElement, ModelElementProvider, com.nomagic.magicdraw.uml.symbols.LineJumpDrawer, com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider, NameOwner, PropertyChangeListener, Cloneable, Comparable, EventListener

@OpenApi public class NoteAnchorView extends PathElement
Note anchor symbol.
  • Constructor Details

    • NoteAnchorView

      public NoteAnchorView()
    • NoteAnchorView

      public NoteAnchorView(@CheckForNull PresentationElement parent)
  • Method Details

    • internalGetPresentationElementStroke

      public 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.
      Overrides:
      internalGetPresentationElementStroke in class PathElement
      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 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 PathElement
      Parameters:
      visitor - which visits this element.
      Throws:
      Exception
    • updateNoteElement

      public void updateNoteElement()
    • paintChildren

      public void paintChildren(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)
      Specified by:
      paintChildren in class PresentationElement
    • setSupplier

      public void setSupplier(PresentationElement shape)
      Description copied from class: PathElement
      Sets supplier end for link. Removes this link from old shape. Inserts this link to new shape. Method also sets supplier point to the middle point of shape.
      Overrides:
      setSupplier in class PathElement
      Parameters:
      shape - new supplier.
    • setClient

      public void setClient(PresentationElement obj)
      Description copied from class: PathElement
      Sets client for this link. Changes parent object to the parent of client. Client's parent will always contain incoming links.
      Overrides:
      setClient in class PathElement
      Parameters:
      obj - shape to check
    • getAnnotateData

      public com.nomagic.magicdraw.uml.symbols.paths.NoteAnchorView.AnnotationData getAnnotateData()
      Find out from client and supplier who is comment and who is annotated element.
      Returns:
      annotated element data
    • getAnnotateData

      public com.nomagic.magicdraw.uml.symbols.paths.NoteAnchorView.AnnotationData getAnnotateData(@CheckForNull PresentationElement client, @CheckForNull PresentationElement supplier)
      Find out from client and supplier who is comment and who is annotated element.
      Parameters:
      client - client
      supplier - supplier
      Returns:
      annotated element data