Class NodeInstanceSpecificationView

  • 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 NodeInstanceSpecificationView
    extends InstanceSpecificationView
    • Field Detail

      • shift

        private int shift
      • insets

        private com.nomagic.ui.UnmodifiableInsets insets
    • Constructor Detail

      • NodeInstanceSpecificationView

        public NodeInstanceSpecificationView()
      • NodeInstanceSpecificationView

        public NodeInstanceSpecificationView​(@CheckForNull
                                             PresentationElement parent)
    • Method Detail

      • canAddInstance

        public boolean canAddInstance​(PresentationElement obj)
        Description copied from class: InstanceSpecificationView
        Checks can this container contain or not.
        Returns:
        true if this container can add this object otherwise return false.
      • 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 class: InstanceSpecificationView
        ** accept method for Visitor
        Specified by:
        accept in interface MDElement
        Parameters:
        visitor - - the Visitor **
        Throws:
        java.lang.Exception
      • checkElementParentOnAdd

        public boolean checkElementParentOnAdd​(PresentationElement view)
      • selfSpecificHeaderShapeDraw

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

        protected void doActualShapeDrawing​(java.awt.Graphics2D g,
                                            java.awt.Rectangle bounds)
        Overrides:
        doActualShapeDrawing in class com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
      • initialize

        public void initialize()
        Description copied from class: PresentationElement
        Initialize symbol and its children state. Symbol must be initialized before doing any resize, painting and etc. These operations can lead to unpredictable results otherwise.
      • internalGetHeaderInsets

        protected com.nomagic.ui.UnmodifiableInsets internalGetHeaderInsets()
        Overrides:
        internalGetHeaderInsets in class com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
      • internalGetManipulatedChildrenRect

        @CheckForNull
        protected java.awt.Rectangle internalGetManipulatedChildrenRect​(com.nomagic.magicdraw.uml.symbols.shapes.InsetsLevel insetsLevel)
        Overrides:
        internalGetManipulatedChildrenRect in class com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
      • getDefaultDimension

        protected UnmodifiableDimension getDefaultDimension()
        Overrides:
        getDefaultDimension in class com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
      • getSeparatorDistanceFromRightSide

        protected int getSeparatorDistanceFromRightSide()
        Overrides:
        getSeparatorDistanceFromRightSide in class com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
      • getTypeClass

        public java.lang.Class getTypeClass()
        Overrides:
        getTypeClass in class com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
      • sSetSuppressDeployedElementsCompartment

        public void sSetSuppressDeployedElementsCompartment​(boolean suppress)
        Simple sets suppress deployed elements compartment property.
        Parameters:
        suppress - - true if suppress, false otherwise.
      • setSuppressDeployedElementsCompartment

        public void setSuppressDeployedElementsCompartment​(boolean suppress)
        Sets suppress deployed elements compartment.
        Parameters:
        suppress - - true if suppress, false otherwise.
      • isSuppressDeployedElementsCompartment

        public boolean isSuppressDeployedElementsCompartment()
        Gets suppress deployed elements compartment property value.
        Returns:
        suppress deployed elements compartment property value.
      • isShowDeployedElementsCompartmentName

        public boolean isShowDeployedElementsCompartmentName()
        Indicates if deployed elements compartment name should be displayed.
        Returns:
        true if deployed elements compartment name should be displayed, false otherwise.
      • sSetShowDeployedElementsCompartmentName

        public void sSetShowDeployedElementsCompartmentName​(boolean show)
        Simple sets show deployed elements compartment name flag value.
        Parameters:
        show - value to set.
      • setShowDeployedElementsCompartmentName

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

        public void internalSilentApply()
        Description copied from class: InstanceSpecificationView
        Applies properties
      • createSmartListenerConfig

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

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