Class AssociationView

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
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.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
Direct Known Subclasses:
AssociationClassView, CommunicationPathView, ExtensionView

@OpenApi public class AssociationView extends com.nomagic.magicdraw.uml.symbols.paths.LinkWithRolesView
  • Constructor Details

    • AssociationView

      public AssociationView()
    • AssociationView

      public AssociationView(@CheckForNull PresentationElement parent)
  • Method Details

    • createNameLabelWrapper

      protected com.nomagic.magicdraw.uml.symbols.shapes.NameLabelWrapper createNameLabelWrapper()
      Overrides:
      createNameLabelWrapper in class com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
    • getNameLabelWrapper

      public com.nomagic.magicdraw.uml.symbols.paths.AssociationNameLabelWrapper getNameLabelWrapper()
      Overrides:
      getNameLabelWrapper in class com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
    • getAssociationNameBox

      public com.nomagic.magicdraw.uml.symbols.shapes.AssociationTextBoxView getAssociationNameBox()
      Gets association name box.
      Returns:
      association name box.
    • updateNameBox

      public void updateNameBox()
      Overrides:
      updateNameBox in class com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
    • constructNameTextToDisplay

      public String constructNameTextToDisplay()
      Overrides:
      constructNameTextToDisplay in class com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
      Returns:
      pure name text for displaying
    • getModelElementForSupplierEndShape

      @CheckForNull protected Element getModelElementForSupplierEndShape()
      Specified by:
      getModelElementForSupplierEndShape in class com.nomagic.magicdraw.uml.symbols.paths.LinkWithEndsView
    • getModelElementForClientEndShape

      @CheckForNull protected Element getModelElementForClientEndShape()
      Specified by:
      getModelElementForClientEndShape in class com.nomagic.magicdraw.uml.symbols.paths.LinkWithEndsView
    • internalApplyProperties

      public void internalApplyProperties(com.dassault_systemes.modeler.magic.diagram.styledelegates.PresentationElementStyleChanger changer)
      Description copied from class: PathElement
      Applies properties
      Overrides:
      internalApplyProperties in class com.nomagic.magicdraw.uml.symbols.paths.LinkWithStereotype
      Parameters:
      changer - new properties
    • propertyChange

      public void propertyChange(PropertyChangeEvent e)
      Description copied from class: PresentationElement
      Listens for property change it can be: data was edited text box was edited
      Specified by:
      propertyChange in interface PropertyChangeListener
      Overrides:
      propertyChange in class PresentationElement
    • 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.LinkWithRolesView
      Parameters:
      visitor - which visits this element.
      Throws:
      Exception
    • canAddInstance

      public boolean canAddInstance(PresentationElement symbol)
      Description copied from class: PresentationElement
      Object view has no children.
      Overrides:
      canAddInstance in class com.nomagic.magicdraw.uml.symbols.paths.ContainerLinkView
    • createSmartListenerConfig

      protected void createSmartListenerConfig(List<SmartListenerConfig> configurations)
      Overrides:
      createSmartListenerConfig in class com.nomagic.magicdraw.uml.symbols.paths.LinkWithStereotype
    • canHavePaths

      public boolean canHavePaths()
      Overrides:
      canHavePaths in class PresentationElement
      Returns:
      true if symbol can have connected paths. Return false here.
    • getElement

      public Association 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 PresentationElement
      Returns:
      model element of this presentation element.