Class SwimlaneCellView

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.TableCellView<ActivityPartition,com.nomagic.magicdraw.uml.symbols.shapes.SwimlaneHeaderView>
com.nomagic.magicdraw.uml.symbols.shapes.SwimlaneCellView
All Implemented Interfaces:
BaseElement, MDElement, ModelElementProvider, com.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShape, com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider, NameOwner, PropertyChangeListener, Cloneable, Comparable, EventListener

@OpenApi public class SwimlaneCellView extends com.nomagic.magicdraw.uml.symbols.shapes.TableCellView<ActivityPartition,com.nomagic.magicdraw.uml.symbols.shapes.SwimlaneHeaderView>
  • Constructor Details

    • SwimlaneCellView

      public SwimlaneCellView()
    • SwimlaneCellView

      public SwimlaneCellView(@CheckForNull PresentationElement parent)
  • Method Details

    • 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.shapes.TableCellView<ActivityPartition,com.nomagic.magicdraw.uml.symbols.shapes.SwimlaneHeaderView>
      Parameters:
      visitor - which visits this element.
      Throws:
      Exception
    • 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:
    • 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.shapes.ContainerShapeView
    • sSetModelElement

      public void sSetModelElement(@CheckForNull com.dassault_systemes.modeler.foundation.model.ModelElement element)
      Overrides:
      sSetModelElement in class PresentationElement
    • addHeader

      public void addHeader(ActivityPartition partition)
      Overrides:
      addHeader in class com.nomagic.magicdraw.uml.symbols.shapes.TableCellView<ActivityPartition,com.nomagic.magicdraw.uml.symbols.shapes.SwimlaneHeaderView>
    • removeHeader

      public void removeHeader(boolean vertical)
      Specified by:
      removeHeader in class com.nomagic.magicdraw.uml.symbols.shapes.TableCellView<ActivityPartition,com.nomagic.magicdraw.uml.symbols.shapes.SwimlaneHeaderView>
    • sAddPresentationElement

      public void sAddPresentationElement(PresentationElement symbol, int index)
      Description copied from class: PresentationElement
      Add given child to this symbol at given index
      Overrides:
      sAddPresentationElement in class com.nomagic.magicdraw.uml.symbols.shapes.TableCellView<ActivityPartition,com.nomagic.magicdraw.uml.symbols.shapes.SwimlaneHeaderView>
      Parameters:
      symbol - child to add
      index - index to add at. Can be -1
    • addPresentationElement

      public void addPresentationElement(PresentationElement element, int index, boolean resize)
      Description copied from class: com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
      If a specified object not inserted in this container then adds a new object view to the container.
      Overrides:
      addPresentationElement in class com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
      Parameters:
      element - new PresentationElement object
      index - index to add at
      resize - resize parent
    • removeFromPartition

      public static void removeFromPartition(PresentationElement parent, PresentationElement toRemove)
      If given parent is ActivityPartition (SwimlaneCellView), the information about inPartition is removed from Element of given toRemove symbol. If not, does nothing.
      Parameters:
      parent - possible ActivityPartition symbol
      toRemove - element to remove from partition