Class NodeView

  • 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 NodeView
    extends ClassView
    • Field Detail

      • shift

        private int shift
        The shift, used to calculate the view of the node on z axis.
      • insets

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

      • NodeView

        public NodeView()
    • 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
      • checkElementParentOnAdd

        public boolean checkElementParentOnAdd​(PresentationElement view)
      • createSmartListenerConfig

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

        protected void selfSpecificHeaderShapeDraw​(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)
      • drawShadow

        protected void drawShadow​(java.awt.Graphics g)
      • internalGetHeaderInsets

        protected com.nomagic.ui.UnmodifiableInsets internalGetHeaderInsets()
      • 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.
      • 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
      • getNodeHeaderView

        public com.nomagic.magicdraw.uml.symbols.shapes.NodeHeaderView getNodeHeaderView()
      • sSetSuppressDeployedElementsCompartment

        public void sSetSuppressDeployedElementsCompartment​(boolean suppress)
      • isSuppressDeployedElementsCompartment

        public boolean isSuppressDeployedElementsCompartment()
      • setSuppressDeployedElementsCompartment

        public void setSuppressDeployedElementsCompartment​(boolean suppress)
      • 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: 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
      • createBoundsShape

        public ContainerShape createBoundsShape​(PathElement path,
                                                BoundsTransformation transformation)
        Description copied from class: ShapeElement
        Creates bounding shape for intersection calculation.
        Parameters:
        path - path
        transformation - transformation
        Returns:
        shape
      • getAdditionalCompartmentInsets

        protected com.nomagic.ui.UnmodifiableInsets getAdditionalCompartmentInsets​(com.nomagic.magicdraw.uml.symbols.shapes.InsetsLevel level)
      • isShowElementTypeAsLabel

        public boolean isShowElementTypeAsLabel()
      • getHeaderInsetReduce

        protected int getHeaderInsetReduce​(int edge,
                                           com.nomagic.magicdraw.uml.symbols.shapes.ShapeElement.OnEdgeBounds bounds)
      • getElement

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