Class AssociationClassView

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.LinkWithEndsView
com.nomagic.magicdraw.uml.symbols.paths.LinkWithRolesView
com.nomagic.magicdraw.uml.symbols.paths.AssociationView
com.nomagic.magicdraw.uml.symbols.paths.AssociationClassView
All Implemented Interfaces:
BaseElement, com.nomagic.magicdraw.uml.CompartmentSupport, MDElement, ModelElementProvider, com.nomagic.magicdraw.uml.symbols.LabelOwner, com.nomagic.magicdraw.uml.symbols.LineJumpDrawer, com.nomagic.magicdraw.uml.symbols.paths.AnchoredShapeOwner<ClassView,LinkAttributeView>, com.nomagic.magicdraw.uml.symbols.paths.PathWithEnds<com.nomagic.magicdraw.uml.symbols.shapes.LinkEndView>, com.nomagic.magicdraw.uml.symbols.PropertyBasedPresentationElement, StereotypesDisplayModeOwner, com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider, NameOwner, PropertyChangeListener, Cloneable, Comparable, EventListener

@OpenApi public class AssociationClassView extends AssociationView implements com.nomagic.magicdraw.uml.symbols.paths.AnchoredShapeOwner<ClassView,LinkAttributeView>
  • Constructor Details

    • AssociationClassView

      public AssociationClassView()
    • AssociationClassView

      public AssociationClassView(@CheckForNull PresentationElement parent)
  • Method Details

    • 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()
      Specified by:
      clone in interface BaseElement
      Overrides:
      clone in class com.nomagic.magicdraw.uml.symbols.paths.LinkWithEndsView
    • getClassView

      public ClassView getClassView()
    • getLinkAttributeView

      public LinkAttributeView getLinkAttributeView()
    • isAnchoredShapeMandatory

      public boolean isAnchoredShapeMandatory()
      Specified by:
      isAnchoredShapeMandatory in interface com.nomagic.magicdraw.uml.symbols.paths.AnchoredShapeOwner<ClassView,LinkAttributeView>
    • getAnchorPath

      public LinkAttributeView getAnchorPath()
      Specified by:
      getAnchorPath in interface com.nomagic.magicdraw.uml.symbols.paths.AnchoredShapeOwner<ClassView,LinkAttributeView>
    • getAnchoredShape

      public ClassView getAnchoredShape()
      Specified by:
      getAnchoredShape in interface com.nomagic.magicdraw.uml.symbols.paths.AnchoredShapeOwner<ClassView,LinkAttributeView>
    • 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
    • isSubElement

      public boolean isSubElement(PresentationElement element)
    • 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(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 a path that it was moved by connecting shape as the path "to self"
      Overrides:
      internalMovedAsToSelf in class PathElement
      Parameters:
      dx - delta x
      dy - delta y
    • notifyBreakPointsChangedForElement

      protected void notifyBreakPointsChangedForElement(PresentationElement view, Point location)
      Description copied from class: com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
      Notify about changed break points
      Overrides:
      notifyBreakPointsChangedForElement in class com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
      Parameters:
      view - symbol
      location - location
    • 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 AssociationView
      Parameters:
      visitor - which visits this element.
      Throws:
      Exception
    • disposeChildren

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

      public 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
    • layoutAnchoredShape

      public void layoutAnchoredShape()
      Specified by:
      layoutAnchoredShape in interface com.nomagic.magicdraw.uml.symbols.paths.AnchoredShapeOwner<ClassView,LinkAttributeView>
    • 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
      Overrides:
      getElement in class AssociationView
      Returns:
      model element of this presentation element.