Class TransitionToSelfView

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.AbstractShapeWithLabels
com.nomagic.magicdraw.uml.symbols.shapes.ShapeWithLabels
com.nomagic.magicdraw.uml.symbols.shapes.PathToSelfShape
com.nomagic.magicdraw.uml.symbols.shapes.TransitionToSelfView
All Implemented Interfaces:
BaseElement, com.nomagic.magicdraw.uml.CompartmentSupport, MDElement, ModelElementProvider, com.nomagic.magicdraw.uml.symbols.LabelOwner, com.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShape, com.nomagic.magicdraw.uml.symbols.paths.PathCustomDraw, com.nomagic.magicdraw.uml.symbols.PropertyBasedPresentationElement, StereotypesDisplayModeOwner, com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider, NameOwner, PropertyChangeListener, Cloneable, Comparable, EventListener

@OpenApi public class TransitionToSelfView extends com.nomagic.magicdraw.uml.symbols.shapes.PathToSelfShape
  • Constructor Details

    • TransitionToSelfView

      public TransitionToSelfView()
    • TransitionToSelfView

      public TransitionToSelfView(@CheckForNull PresentationElement parent)
  • Method Details

    • paintSelf

      public void paintSelf(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)
      Overrides:
      paintSelf in class com.nomagic.magicdraw.uml.symbols.shapes.PathToSelfShape
    • 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.PathToSelfShape
      Parameters:
      visitor - which visits this element.
      Throws:
      Exception
    • createStereotypeLabelWrapper

      protected com.nomagic.magicdraw.uml.symbols.shapes.StereotypeLabelWrapper createStereotypeLabelWrapper()
      Overrides:
      createStereotypeLabelWrapper in class com.nomagic.magicdraw.uml.symbols.shapes.ShapeWithLabels
    • 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
    • getOnEdgeCornerDistance

      public int getOnEdgeCornerDistance()
      Overrides:
      getOnEdgeCornerDistance in class ShapeElement
      Returns:
      inset from a corner
    • constructNameText

      @CheckForNull public String constructNameText()
      Overrides:
      constructNameText in class com.nomagic.magicdraw.uml.symbols.shapes.ShapeWithLabels
    • getElement

      public Transition 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.
    • createSmartListenerConfig

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

      protected boolean checkShowsProxy()
      Overrides:
      checkShowsProxy in class com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
    • preDisposeOnUpdate

      protected boolean preDisposeOnUpdate()
      Description copied from class: PresentationElement
      Validate symbol against model and try to fix it before actual symbol update. If symbol is not valid and can not be fixed, request symbol dispose by returning true. Check if symbol should be disposed, because model does not correspond to symbol. This may happen for example if path supplier or client in model is changed, but path still is connected to symbols of old ends.

      Method also can fix symbol if possible - for example reconnect path to other symbols in diagram and etc.

      Overrides:
      preDisposeOnUpdate in class PresentationElement
      Returns:
      true if symbol must be disposed
    • isShowPort

      public boolean isShowPort()
      Returns value of the "Show Port" symbol property.
      Returns:
      value of the "Show Port" property.
    • setShowPort

      public void setShowPort(boolean showPort)
      Sets value of the "Show Port" symbol property.
      Parameters:
      showPort - value of the "Show Port" property.
    • sSetShowPort

      public void sSetShowPort(boolean showPort)
      Sets value of the "Show Port" symbol property.
      Parameters:
      showPort - value of the "Show Port" property.
    • internalSilentApply

      public void internalSilentApply()
      Description copied from class: PresentationElement
      Silently applies all properties after initialization
      Overrides:
      internalSilentApply in class com.nomagic.magicdraw.uml.symbols.shapes.ShapeWithLabels
    • internalApplyProperties

      public void internalApplyProperties(com.dassault_systemes.modeler.magic.diagram.styledelegates.PresentationElementStyleChanger changer)
      Description copied from class: PresentationElement
      Applies properties from given property manager
      Overrides:
      internalApplyProperties in class com.nomagic.magicdraw.uml.symbols.shapes.ShapeWithLabels
      Parameters:
      changer - new properties
    • getOpaqueBehaviorDisplayMode

      public String getOpaqueBehaviorDisplayMode()
    • sSetOpaqueBehaviorDisplayMode

      public void sSetOpaqueBehaviorDisplayMode(String mode)
    • setOpaqueBehaviorDisplayMode

      public void setOpaqueBehaviorDisplayMode(String mode)
    • isShowOperationsSignature

      public boolean isShowOperationsSignature()
      Returns:
      is trigger event operation signature shown
    • sSetShowOperationsSignature

      public void sSetShowOperationsSignature(boolean showSignature)
      Sets if trigger event operation signature should be shown
      Parameters:
      showSignature - new value
    • setShowOperationsSignature

      public void setShowOperationsSignature(boolean showSignature)
      Sets if trigger event operation signature should be shown
      Parameters:
      showSignature - new value
    • isUseAdvancedColoring

      public boolean isUseAdvancedColoring()
      Returns:
      true if advanced coloring should be used
    • sSetUseAdvancedColoring

      public void sSetUseAdvancedColoring(boolean use)
      Sets if operation should be colored using advanced coloring
      Parameters:
      use - new value
    • setUseAdvancedColoring

      public void setUseAdvancedColoring(boolean use)
      Sets if operation should be colored using advanced coloring
      Parameters:
      use - new value
    • hasSharedModelElement

      public boolean hasSharedModelElement()
      Description copied from class: PresentationElement
      Returns true if ModelElement of this symbol can represented with other symbol. If ModelElement is not shared, it can be deleted together with symbol deleting.
      Overrides:
      hasSharedModelElement in class PresentationElement
      Returns:
      true if element of this symbol can be represented with other symbol.