Class NoteAnchorView

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

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

      • NoteAnchorView

        public NoteAnchorView()
    • 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
        Overrides:
        accept in class PathElement
        Parameters:
        visitor - which visits this element.
        Throws:
        java.lang.Exception
      • updateNoteElement

        public void updateNoteElement()
      • paintChildren

        public void paintChildren​(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)
      • 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.
        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.
        Parameters:
        obj - shape to check
      • annotateElement

        private void annotateElement()
        Add connected to comment element as annotated element.
      • 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