Class 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, StereotypesDisplayModeOwner, com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider, NameOwner, java.beans.PropertyChangeListener, java.lang.Cloneable, java.lang.Comparable, java.util.EventListener

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

      • TransitionToSelfView

        public TransitionToSelfView()
      • TransitionToSelfView

        public TransitionToSelfView​(@CheckForNull
                                    PresentationElement parent)
    • Method Detail

      • 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 java.lang.Exception
        Description copied from interface: MDElement
        Method accepts visitor, and calls method visit<class name>(this) of 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:
        java.lang.Exception
      • findParentForData

        public Element findParentForData​(PresentationElement newParent,
                                         com.nomagic.uml2.ext.jmi.helpers.ElementAddContext addContext)
      • getOnEdgeCornerDistance

        public int getOnEdgeCornerDistance()
        Returns:
        inset from corner
      • updateNameBox

        public void updateNameBox()
        Overrides:
        updateNameBox 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​(java.util.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.

        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​(PropertyManager manager)
        Description copied from class: PresentationElement
        Applies properties from given property manager
        Overrides:
        internalApplyProperties in class com.nomagic.magicdraw.uml.symbols.shapes.ShapeWithLabels
        Parameters:
        manager - new properties
      • getOpaqueBehaviorDisplayMode

        public java.lang.String getOpaqueBehaviorDisplayMode()
      • sSetOpaqueBehaviorDisplayMode

        public void sSetOpaqueBehaviorDisplayMode​(java.lang.String mode)
      • setOpaqueBehaviorDisplayMode

        public void setOpaqueBehaviorDisplayMode​(java.lang.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
      • hasSharedData

        public boolean hasSharedData()
        Description copied from class: PresentationElement
        Returns true if data of this object can be shared. If data is not shared data can be deleted with del key. Or it must be deleted with CRL+D
        Returns:
        true if data of this object can be shared.