Class AssociationClassView

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

    @OpenApi
    public class AssociationClassView
    extends AssociationView
    • Constructor Detail

      • AssociationClassView

        public AssociationClassView()
      • AssociationClassView

        public AssociationClassView​(@CheckForNull
                                    PresentationElement parent)
    • Method Detail

      • setClassView

        public void setClassView​(ClassView classView)
      • sSetLinkAttributeView

        public void sSetLinkAttributeView​(@CheckForNull
                                          LinkAttributeView linkAttributeView)
      • sSetClassView

        public void sSetClassView​(ClassView classView)
      • setLinkAttributeView

        public void setLinkAttributeView​(LinkAttributeView linkAttributeView)
      • clone

        public AssociationClassView clone()
        Description copied from class: ElementImpl
        Returns a copy of the Element.
        Specified by:
        clone in interface BaseElement
        Overrides:
        clone in class com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
        Returns:
        the cloned object
      • getClassView

        public ClassView getClassView()
      • removePresentationElement

        public void removePresentationElement​(PresentationElement element)
        Description copied from class: PresentationElement
        Removes given child
        Overrides:
        removePresentationElement in class com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
        Parameters:
        element - child
      • setElement

        public void setElement​(Element element)
        Overrides:
        setElement in class com.nomagic.magicdraw.uml.symbols.paths.LinkWithEndsView
      • sSetElement

        public void sSetElement​(Element element)
        Overrides:
        sSetElement in class com.nomagic.magicdraw.uml.symbols.paths.LinkWithEndsView
      • simpleSetBounds

        public void simpleSetBounds​(java.awt.Rectangle rct)
        Description copied from class: PathElement
        calls break point vector changed method.
        Overrides:
        simpleSetBounds in class com.nomagic.magicdraw.uml.symbols.paths.LinkWithEndsView
        Parameters:
        rct - new bounding rectangle.
      • internalMovedAsToSelf

        public void internalMovedAsToSelf​(int dx,
                                          int dy)
        Description copied from class: PathElement
        This is an internal method to notify link that it was moved by connecting shape as link "to self"
        Parameters:
        dx - delta x
        dy - delta y
      • notifyBreakPointsChangedForElement

        protected void notifyBreakPointsChangedForElement​(PresentationElement view,
                                                          java.awt.Point location)
        Overrides:
        notifyBreakPointsChangedForElement in class com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
      • 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
        Parameters:
        visitor - which visits this element.
        Throws:
        java.lang.Exception
      • disposeChildren

        protected void disposeChildren()
        Description copied from class: PresentationElement
        Removes all children from itself. Such removing causes calling dispose for every child.
      • layoutAssociationClassViewElements

        public void layoutAssociationClassViewElements()
      • getBoundsToRepaint

        public java.awt.Rectangle getBoundsToRepaint()
                                              throws NoRectangleDefinedException
        Description copied from class: PresentationElement
        Return bounds of the symbol that must be repainted. throws NoRectangleDefinedException
        Overrides:
        getBoundsToRepaint in class com.nomagic.magicdraw.uml.symbols.paths.LinkWithEndsView
        Returns:
        rectangle of bounds
        Throws:
        NoRectangleDefinedException
      • getElement

        public AssociationClass getElement()
        Description copied from class: PresentationElement
        Returns model element of this presentation element. Some presentation elements (for example TextBoxes) do not have model elements.
        Specified by:
        getElement in interface com.nomagic.magicdraw.uml.symbols.LabelOwner
        Specified by:
        getElement in interface ModelElementProvider
        Returns:
        model element of this presentation element.