Class CollaborationView

  • 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 CollaborationView
    extends com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
    Collaboration model element symbolic representation on the diagram.
    • Field Detail

      • mBehaviorsCompartmentHelper

        private com.nomagic.magicdraw.uml.symbols.shapes.BehaviorsCompartmentHelper mBehaviorsCompartmentHelper
    • Constructor Detail

      • CollaborationView

        public CollaborationView()
    • Method Detail

      • selfSpecificHeaderShapeDraw

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

        public java.awt.BasicStroke internalGetPresentationElementStroke​(int width)
        Description copied from class: PresentationElement
        Return a stroke used to paint symbol's main part
        Parameters:
        width - a custom stroke width. Other stroke parameters will be specific to symbol
        Returns:
        a stroke used to paint symbol's main part
      • 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
      • isOvalShape

        protected boolean isOvalShape()
        Overrides:
        isOvalShape in class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
      • getChildrenInsets

        public com.nomagic.ui.UnmodifiableInsets getChildrenInsets​(com.nomagic.magicdraw.uml.symbols.shapes.InsetsLevel insetsLevel)
        Overrides:
        getChildrenInsets in class com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
        Parameters:
        insetsLevel - describes the level of insets
        Returns:
        shape insets for children
      • getStructureCompartment

        public com.nomagic.magicdraw.uml.symbols.shapes.StructureCompartmentView getStructureCompartment()
      • setSuppressStructureCompartment

        public void setSuppressStructureCompartment​(boolean b)
      • sSetSuppressStructureCompartment

        public void sSetSuppressStructureCompartment​(boolean b)
        Suppress compartment
        Parameters:
        b - suppress value
      • isSuppressStructureCompartment

        public boolean isSuppressStructureCompartment()
        Returns:
        is suppress compartment.
      • isShowInherited

        public boolean isShowInherited()
        Returns:
        true if inherited members are shown in compartments.
      • sSetShowInherited

        public void sSetShowInherited​(boolean showInherited)
        Show inherited members in compartments.
        Parameters:
        showInherited - show.
      • setShowInherited

        public void setShowInherited​(boolean showInherited)
        Show inherited members in compartments
        Parameters:
        showInherited - show
      • 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
      • createSmartListenerConfig

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

        public CollaborationView clone()
        Description copied from class: ElementImpl
        Returns a copy of the Element.
        Specified by:
        clone in interface BaseElement
        Overrides:
        clone in class com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
        Returns:
        the cloned object
      • getHeaderView

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