Class ComponentView

  • 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 ComponentView
    extends ClassView
    • Constructor Detail

      • ComponentView

        public ComponentView()
    • 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
      • getInterfacesCompartment

        public com.nomagic.magicdraw.uml.symbols.shapes.InterfacesCompartmentView getInterfacesCompartment()
      • getRealizationsCompartment

        public com.nomagic.magicdraw.uml.symbols.shapes.RealizationsCompartmentView getRealizationsCompartment()
      • getArtifactsCompartment

        public com.nomagic.magicdraw.uml.symbols.shapes.ArtifactsCompartmentView getArtifactsCompartment()
      • sSetSuppressInterfacesCompartment

        public void sSetSuppressInterfacesCompartment​(boolean suppress)
      • sSetSuppressRealizationsCompartment

        public void sSetSuppressRealizationsCompartment​(boolean suppress)
      • sSetSuppressArtifactsCompartment

        public void sSetSuppressArtifactsCompartment​(boolean suppress)
      • isSuppressInterfacesCompartment

        public boolean isSuppressInterfacesCompartment()
      • isSuppressRealizationsCompartment

        public boolean isSuppressRealizationsCompartment()
      • isSuppressArtifactsCompartment

        public boolean isSuppressArtifactsCompartment()
      • setSuppressInterfacesCompartment

        public void setSuppressInterfacesCompartment​(boolean suppress)
      • setSuppressRealizationsCompartment

        public void setSuppressRealizationsCompartment​(boolean suppress)
      • setSuppressArtifactsCompartment

        public void setSuppressArtifactsCompartment​(boolean suppress)
      • isShowArtifactsCompartmentName

        public boolean isShowArtifactsCompartmentName()
        Indicates if artifacts compartment name should be displayed.
        Returns:
        true if artifacts compartment name should be displayed, false otherwise.
      • sSetShowArtifactsCompartmentName

        public void sSetShowArtifactsCompartmentName​(boolean show)
        Simple sets show artifacts compartment name flag value.
        Parameters:
        show - value to set.
      • setShowArtifactsCompartmentName

        public void setShowArtifactsCompartmentName​(boolean show)
        Sets show artifacts compartment name flag value.
        Parameters:
        show - value to set.
      • isShowRealizationsCompartmentName

        public boolean isShowRealizationsCompartmentName()
        Indicates if realizations compartment name should be displayed.
        Returns:
        true if realizations compartment name should be displayed, false otherwise.
      • sSetShowRealizationsCompartmentName

        public void sSetShowRealizationsCompartmentName​(boolean show)
        Simple sets show realizations compartment name flag value.
        Parameters:
        show - value to set.
      • setShowRealizationsCompartmentName

        public void setShowRealizationsCompartmentName​(boolean show)
        Sets show realizations compartment name flag value.
        Parameters:
        show - value to set.
      • internalSilentApply

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

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

        public com.nomagic.magicdraw.uml.symbols.shapes.ComponentHeaderView getHeaderView()
      • createSmartListenerConfig

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

        public Component 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.