Class StateView

  • All Implemented Interfaces:
    BaseElement, 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.shapes.QualifiedNameLabelOwner, StereotypesDisplayModeOwner, com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider, com.nomagic.magicdraw.uml.symbols.Wrapable, NameOwner, java.beans.PropertyChangeListener, java.lang.Cloneable, java.lang.Comparable, java.util.EventListener

    @OpenApi
    public class StateView
    extends com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
    • Constructor Detail

      • StateView

        public StateView()
    • Method Detail

      • getRegionsCompartmentView

        public com.nomagic.magicdraw.uml.symbols.shapes.RegionsCompartmentView getRegionsCompartmentView()
      • selfSpecificHeaderShapeDraw

        protected void selfSpecificHeaderShapeDraw​(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)
        Overrides:
        selfSpecificHeaderShapeDraw in class com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
      • createBoundsShape

        public ContainerShape createBoundsShape​(PathElement path,
                                                BoundsTransformation transformation)
        Description copied from class: ShapeElement
        Creates bounding shape for intersection calculation.
        Overrides:
        createBoundsShape in class com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
        Parameters:
        path - path
        transformation - transformation
        Returns:
        shape
      • isSubmachine

        public boolean isSubmachine()
      • isCompositeState

        public boolean isCompositeState()
      • isSimpleState

        public boolean isSimpleState()
      • canAddInstance

        public boolean canAddInstance​(PresentationElement obj)
        Description copied from class: PresentationElement
        Object view has no children.
        Overrides:
        canAddInstance in class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
      • canAddChild

        public boolean canAddChild​(PresentationElement obj)
        Description copied from class: PresentationElement
        Check of given symbol can be added as child into this symbol.
        Overrides:
        canAddChild in class com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
        Parameters:
        obj - symbol
        Returns:
        true if symbol can be added
      • 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.HeaderShapeView
        Parameters:
        visitor - which visits this element.
        Throws:
        java.lang.Exception
      • internalSpecificUpdate

        public void internalSpecificUpdate()
        Overrides:
        internalSpecificUpdate in class com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
      • createSmartListenerConfig

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

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

        public void setSuppressActionsCompartment​(boolean b)
        Suppress actions compartment
        Parameters:
        b - new value
      • sSetSuppressActionsCompartment

        public void sSetSuppressActionsCompartment​(boolean b)
        Suppress compartment
        Parameters:
        b - new value
      • isSuppressActionsCompartment

        public boolean isSuppressActionsCompartment()
        Returns:
        true if suppress compartment
      • internalApplyProperties

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

        public Element findParentForData​(PresentationElement parent,
                                         com.nomagic.uml2.ElementAddContext addContext)
      • getActionsCompartment

        public com.nomagic.magicdraw.uml.symbols.shapes.InternalStateCompartmentView getActionsCompartment()
      • getRegions

        public java.util.List<com.nomagic.magicdraw.uml.symbols.shapes.RegionView> getRegions()
      • isShowRegionName

        public boolean isShowRegionName()
        Returns:
        shown name option of this region
      • sSetShowRegionName

        public void sSetShowRegionName​(boolean showName)
        Set a new show name option for region(s).
        Parameters:
        showName - new value
      • setShowRegionName

        public void setShowRegionName​(boolean showName)
        Set a new show name option for region(s). Updates shape
        Parameters:
        showName - new value
      • getOpaqueBehaviorDisplayMode

        public java.lang.String getOpaqueBehaviorDisplayMode()
      • sSetOpaqueBehaviorDisplayMode

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

        public void setOpaqueBehaviorDisplayMode​(java.lang.String mode)
      • 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.
      • addPresentationElement

        public void addPresentationElement​(PresentationElement element,
                                           int index,
                                           boolean resize)
        Overrides:
        addPresentationElement in class com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
      • sAddPresentationElement

        public void sAddPresentationElement​(PresentationElement element,
                                            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.ContainerShapeView
        Parameters:
        element - child to add
        index - index to add at. Can be -1
      • removePresentationElement

        public void removePresentationElement​(PresentationElement element,
                                              boolean resizeParent)
        Overrides:
        removePresentationElement in class com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
      • sRemovePresentationElement

        public void sRemovePresentationElement​(PresentationElement element)
        Description copied from class: PresentationElement
        Removes given child
        Overrides:
        sRemovePresentationElement in class com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
        Parameters:
        element - child
      • addToRegion

        @CheckForNull
        private com.nomagic.magicdraw.uml.symbols.shapes.RegionView addToRegion​(PresentationElement child)
      • shouldAddToRegion

        private static boolean shouldAddToRegion​(@CheckForNull
                                                 Element element)
      • 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
      • getHeaderView

        public com.nomagic.magicdraw.uml.symbols.shapes.StateHeaderView getHeaderView()
        Overrides:
        getHeaderView in class com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
      • getAdditionalCompartmentInsets

        protected com.nomagic.ui.UnmodifiableInsets getAdditionalCompartmentInsets​(com.nomagic.magicdraw.uml.symbols.shapes.InsetsLevel level)
        Overrides:
        getAdditionalCompartmentInsets in class com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
      • 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.