Class CollaborationUseView

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.shapes.ShapeElement
com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
com.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
com.nomagic.magicdraw.uml.symbols.shapes.CollaborationUseView
All Implemented Interfaces:
BaseElement, CompartmentElement, com.nomagic.magicdraw.uml.CompartmentSupport, MDElement, ModelElementProvider, com.nomagic.magicdraw.uml.symbols.CompartmentContainer, com.nomagic.magicdraw.uml.symbols.CompartmentOwner, com.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShape, com.nomagic.magicdraw.uml.symbols.PropertyBasedPresentationElement, com.nomagic.magicdraw.uml.symbols.shapes.QualifiedNameLabelOwner, StereotypesDisplayModeOwner, com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider, com.nomagic.magicdraw.uml.symbols.Wrapable, NameOwner, PropertyChangeListener, Cloneable, Comparable, EventListener

@OpenApi public class CollaborationUseView extends com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView implements CompartmentElement
  • Constructor Details

    • CollaborationUseView

      public CollaborationUseView()
    • CollaborationUseView

      public CollaborationUseView(@CheckForNull PresentationElement parent)
  • Method Details

    • getClassifier

      public Classifier getClassifier()
      Specified by:
      getClassifier in class com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
    • sSetClassifiers

      public void sSetClassifiers(List<Classifier> type)
      Description copied from class: com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
      Sets one classifier.
      Specified by:
      sSetClassifiers in class com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
      Parameters:
      type - a collection of classifiers to set as type of this typed element
    • getMetaClassifiersQPropertyName

      public String getMetaClassifiersQPropertyName()
      Specified by:
      getMetaClassifiersQPropertyName in class com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
    • getCollaborationUse

      public CollaborationUse getCollaborationUse()
    • accept

      public void accept(Visitor o) 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.shapes.TypedElementView
      Parameters:
      o - which visits this element.
      Throws:
      Exception
    • createSmartListenerConfig

      protected void createSmartListenerConfig(List<SmartListenerConfig> configurations)
      Overrides:
      createSmartListenerConfig in class com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
    • internalGetPresentationElementStroke

      public BasicStroke internalGetPresentationElementStroke(int width)
      Description copied from class: PresentationElement
      Return a stroke used to paint symbol's main part
      Overrides:
      internalGetPresentationElementStroke in class PresentationElement
      Parameters:
      width - a custom stroke width. Other stroke parameters will be specific to symbol
      Returns:
      a stroke used to paint symbol's main part
    • findOwnerForElement

      public com.dassault_systemes.modeler.foundation.model.ModelElement findOwnerForElement(PresentationElement newParent, com.dassault_systemes.modeler.foundation.model.ModelElementOwnershipContext ownershipContext)
      Overrides:
      findOwnerForElement in class PresentationElement
    • getCompartmentElementID

      public String getCompartmentElementID()
      Specified by:
      getCompartmentElementID in interface CompartmentElement
    • getCompartmentText

      public String getCompartmentText()
      Specified by:
      getCompartmentText in interface CompartmentElement
    • getTypeClass

      public Class getTypeClass()
      Overrides:
      getTypeClass in class com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
    • doActualShapeDrawing

      protected void doActualShapeDrawing(Graphics2D g, Rectangle bounds)
      Description copied from class: com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
      This method can be overridden by child classes to disable parent drawing.
      Overrides:
      doActualShapeDrawing in class com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
      Parameters:
      g - graphics
      bounds - bounds
    • getDefaultDimension

      protected UnmodifiableDimension getDefaultDimension()
      Overrides:
      getDefaultDimension in class com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
    • isOvalShape

      protected boolean isOvalShape()
      Overrides:
      isOvalShape in class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
    • internalGetModelElementToConnectRelationship

      @CheckForNull public com.dassault_systemes.modeler.foundation.model.ModelElement internalGetModelElementToConnectRelationship(@CheckForNull com.dassault_systemes.modeler.foundation.model.ModelElement relationship, boolean asClient)
      Description copied from class: PresentationElement
      Returns element that should be used for given relationship connecting. All possible elements are returned by method PresentationElement.getModelElementsForRelationshipConnecting().
      Overrides:
      internalGetModelElementToConnectRelationship in class PresentationElement
      Returns:
      all possible elements
      See Also:
    • internalGetModelElementsForRelationshipConnecting

      public Collection<? extends com.dassault_systemes.modeler.foundation.model.ModelElement> internalGetModelElementsForRelationshipConnecting()
      Description copied from class: PresentationElement
      Returns all possible element that can be used for some relationship connecting.
      Overrides:
      internalGetModelElementsForRelationshipConnecting in class PresentationElement
      Returns:
      all possible elements