Class EnumerationView

  • 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.PortOwner, 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 EnumerationView
    extends ClassifierView
    • Constructor Detail

      • EnumerationView

        public EnumerationView()
    • Method Detail

      • 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
        Parameters:
        visitor - which visits this element.
        Throws:
        java.lang.Exception
      • setSuppressLiterals

        public void setSuppressLiterals​(boolean suppress)
      • sSetSuppressLiterals

        public void sSetSuppressLiterals​(boolean suppress)
      • isSuppressLiterals

        public boolean isSuppressLiterals()
      • getLiteralsColor

        public java.awt.Color getLiteralsColor()
      • getLiteralsFont

        public java.awt.Font getLiteralsFont()
      • sSetLiteralsColor

        public void sSetLiteralsColor​(java.awt.Color color)
      • setLiteralsColor

        public void setLiteralsColor​(java.awt.Color color)
      • sSetLiteralsFont

        public void sSetLiteralsFont​(java.awt.Font font)
      • setLiteralsFont

        public void setLiteralsFont​(java.awt.Font font)
      • internalSilentApply

        public void internalSilentApply()
        Description copied from class: PresentationElement
        Silently applies all properties after initialization
      • internalApplyProperties

        public void internalApplyProperties​(PropertyManager man)
        Description copied from class: PresentationElement
        Applies properties from given property manager
        Parameters:
        man - new properties
      • isShowEnumerationLiteralsCompartmentName

        public boolean isShowEnumerationLiteralsCompartmentName()
        Indicates if enumeration literals compartment name should be displayed.
        Returns:
        true if deployed elements compartment name should be displayed, false otherwise.
      • sSetShowEnumerationLiteralsCompartmentName

        public void sSetShowEnumerationLiteralsCompartmentName​(boolean show)
        Simple sets show enumeration literals compartment name flag value.
        Parameters:
        show - value to set.
      • setShowEnumerationLiteralsCompartmentName

        public void setShowEnumerationLiteralsCompartmentName​(boolean show)
        Sets show enumeration literals compartment name flag value.
        Parameters:
        show - value to set.
      • sSetShowEnumerationLiteralsStereotype

        public void sSetShowEnumerationLiteralsStereotype​(boolean show)
      • setShowEnumerationLiteralsStereotype

        public void setShowEnumerationLiteralsStereotype​(boolean show)
      • isShowEnumerationLiteralsStereotype

        public boolean isShowEnumerationLiteralsStereotype()
      • isShowEnumerationLiteralsTaggedValues

        public boolean isShowEnumerationLiteralsTaggedValues()
      • sSetShowEnumerationLiteralsTaggedValues

        public void sSetShowEnumerationLiteralsTaggedValues​(boolean show)
      • setShowEnumerationLiteralsTaggedValues

        public void setShowEnumerationLiteralsTaggedValues​(boolean show)
      • sSetShowEnumerationLiteralsConstraints

        public void sSetShowEnumerationLiteralsConstraints​(boolean show)
      • setShowEnumerationLiteralsConstraints

        public void setShowEnumerationLiteralsConstraints​(boolean show)
      • isShowEnumerationLiteralsConstraints

        public boolean isShowEnumerationLiteralsConstraints()
      • sSetEnumerationLiteralsConstraintsTextMode

        public void sSetEnumerationLiteralsConstraintsTextMode​(java.lang.String mode)
      • setEnumerationLiteralsConstraintsTextMode

        public void setEnumerationLiteralsConstraintsTextMode​(java.lang.String mode)
      • getEnumerationLiteralsConstraintsTextMode

        public java.lang.String getEnumerationLiteralsConstraintsTextMode()
      • createSmartListenerConfig

        protected void createSmartListenerConfig​(java.util.List<SmartListenerConfig> configurations)
      • sSetLiteralsSortMode

        public void sSetLiteralsSortMode​(java.lang.String sm)
      • setLiteralsSortMode

        protected void setLiteralsSortMode​(java.lang.String sm)
      • getLiteralsSortMode

        public java.lang.String getLiteralsSortMode()
      • isShowInheritedLiteralsSign

        public boolean isShowInheritedLiteralsSign()
        Returns:
        true if inherited sign is shown for literals
      • sSetShowInheritedLiteralsSign

        public void sSetShowInheritedLiteralsSign​(boolean showInheritedSign)
        Show inherited sign for literals
        Parameters:
        showInheritedSign - show
      • setShowInheritedLiteralsSign

        public void setShowInheritedLiteralsSign​(boolean showInheritedSign)
        Show inherited literals sign
        Parameters:
        showInheritedSign - show
      • isShowLiteralsMoreSign

        public boolean isShowLiteralsMoreSign()
        Returns:
        true if more sign is shown for literals.
      • sSetShowLiteralsMoreSign

        public void sSetShowLiteralsMoreSign​(boolean showMoreSign)
        Show more sign for literals.
        Parameters:
        showMoreSign - show.
      • setShowLiteralsMoreSign

        public void setShowLiteralsMoreSign​(boolean showMoreSign)
        Show literals more sign.
        Parameters:
        showMoreSign - show.
      • getElement

        public Enumeration 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 ModelElementProvider
        Returns:
        model element of this presentation element.
      • getHeaderView

        public com.nomagic.magicdraw.uml.symbols.shapes.EnumerationHeaderView getHeaderView()