Class EnumerationView

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.BaseHeaderShapeView
com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
com.nomagic.magicdraw.uml.symbols.shapes.ClassifierView
com.nomagic.magicdraw.uml.symbols.shapes.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.PropertyBasedPresentationElement, com.nomagic.magicdraw.uml.symbols.shapes.PortOwner, com.nomagic.magicdraw.uml.symbols.shapes.QualifiedNameLabelOwner, StereotypesDisplayModeOwner, com.nomagic.magicdraw.uml.symbols.shapes.TaggedValuesDisplayModeOwner, com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider, com.nomagic.magicdraw.uml.symbols.Wrapable, NameOwner, PropertyChangeListener, Cloneable, Comparable, EventListener

@OpenApi public class EnumerationView extends ClassifierView
  • Constructor Details

    • EnumerationView

      public EnumerationView()
    • EnumerationView

      public EnumerationView(@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 ClassifierView
      Parameters:
      visitor - which visits this element.
      Throws:
      Exception
    • getLiteralsColor

      public Color getLiteralsColor()
    • getLiteralsFont

      public Font getLiteralsFont()
    • sSetLiteralsColor

      public void sSetLiteralsColor(Color color)
    • setLiteralsColor

      public void setLiteralsColor(Color color)
    • sSetLiteralsFont

      public void sSetLiteralsFont(Font font)
    • setLiteralsFont

      public void setLiteralsFont(Font font)
    • internalSilentApply

      public void internalSilentApply()
      Description copied from class: PresentationElement
      Silently applies all properties after initialization
      Overrides:
      internalSilentApply in class ClassifierView
    • 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 ClassifierView
      Parameters:
      changer - new properties
    • 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(String mode)
    • setEnumerationLiteralsConstraintsTextMode

      public void setEnumerationLiteralsConstraintsTextMode(String mode)
    • getEnumerationLiteralsConstraintsTextMode

      public String getEnumerationLiteralsConstraintsTextMode()
    • createSmartListenerConfig

      protected void createSmartListenerConfig(List<SmartListenerConfig> configurations)
      Overrides:
      createSmartListenerConfig in class ClassifierView
    • sSetLiteralsSortMode

      public void sSetLiteralsSortMode(String sm)
    • setLiteralsSortMode

      protected void setLiteralsSortMode(String sm)
    • getLiteralsSortMode

      public 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
      Overrides:
      getElement in class ClassifierView
      Returns:
      model element of this presentation element.
    • getHeaderView

      public com.nomagic.magicdraw.uml.symbols.shapes.EnumerationHeaderView getHeaderView()
      Overrides:
      getHeaderView in class ClassifierView