Class ExtensionView

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.ExtensionView
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

@OpenApi public class ExtensionView extends AssociationView
  • Constructor Details

    • ExtensionView

      public ExtensionView()
    • ExtensionView

      public ExtensionView(@CheckForNull PresentationElement parent)
  • Method Details

    • createLabels

      protected void createLabels()
      Overrides:
      createLabels in class com.nomagic.magicdraw.uml.symbols.paths.LinkWithStereotype
    • getRequiredLabelBox

      @CheckForNull public TextBoxView getRequiredLabelBox()
    • getExtensionRequiredLabelWrapper

      public com.nomagic.magicdraw.uml.symbols.paths.ExtensionRequiredLabelWrapper getExtensionRequiredLabelWrapper()
    • 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
    • getModelElementForSupplierEndShape

      protected Element getModelElementForSupplierEndShape()
      Overrides:
      getModelElementForSupplierEndShape in class AssociationView
    • getModelElementForClientEndShape

      protected Element getModelElementForClientEndShape()
      Overrides:
      getModelElementForClientEndShape in class AssociationView
    • paintSelf

      public void paintSelf(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)
      Overrides:
      paintSelf in class com.nomagic.magicdraw.uml.symbols.paths.LinkWithRolesView
    • useOtherExistingElement

      @CheckForNull public com.nomagic.utils.Pair<com.dassault_systemes.modeler.foundation.model.ModelElement,Consumer<com.dassault_systemes.modeler.foundation.model.ModelElement>> useOtherExistingElement()
      Description copied from class: PathElement
      Finds and returns other model element which is semantically equivalent to this path model element. Found element can be modified. This method is invoked during new PathElement creation and purpose of it is to reuse existing model elements instead of creating new ones.
      Overrides:
      useOtherExistingElement in class PathElement
      Returns:
      element
    • createSmartListenerConfig

      protected void createSmartListenerConfig(List<SmartListenerConfig> configurations)
      Overrides:
      createSmartListenerConfig in class AssociationView
    • isShowRequired

      public boolean isShowRequired()
    • sSetShowRequired

      public void sSetShowRequired(boolean show)
    • setShowRequired

      public void setShowRequired(boolean show)
    • getElement

      public Extension 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.