Class NodeInstanceSpecificationView

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.TypedElementView
com.nomagic.magicdraw.uml.symbols.shapes.InstanceSpecificationView
com.nomagic.magicdraw.uml.symbols.shapes.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.PropertyBasedPresentationElement, com.nomagic.magicdraw.uml.symbols.shapes.QualifiedNameLabelOwner, StereotypesDisplayModeOwner, com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider, com.nomagic.magicdraw.uml.symbols.Wrapable, NameOwner, PropertyChangeListener, Cloneable, Comparable, EventListener

@OpenApi public class NodeInstanceSpecificationView extends InstanceSpecificationView
  • Constructor Details

    • NodeInstanceSpecificationView

      public NodeInstanceSpecificationView()
    • NodeInstanceSpecificationView

      public NodeInstanceSpecificationView(@CheckForNull PresentationElement parent)
  • Method Details

    • canAddInstance

      public boolean canAddInstance(PresentationElement symbol)
      Description copied from class: InstanceSpecificationView
      Checks can this container contain or not.
      Overrides:
      canAddInstance in class InstanceSpecificationView
      Returns:
      true if this container can add this object otherwise return false.
    • canAddChild

      public boolean canAddChild(PresentationElement symbol)
      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.BaseHeaderShapeView
      Parameters:
      symbol - symbol
      Returns:
      true if symbol can be added
    • accept

      public void accept(Visitor visitor) throws Exception
      Description copied from class: InstanceSpecificationView
      ** accept method for Visitor
      Specified by:
      accept in interface MDElement
      Overrides:
      accept in class InstanceSpecificationView
      Parameters:
      visitor - - the Visitor **
      Throws:
      Exception
    • checkElementOwnerOnChange

      public boolean checkElementOwnerOnChange(PresentationElement view)
      Overrides:
      checkElementOwnerOnChange in class InstanceSpecificationView
    • 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(Graphics2D g, Rectangle bounds)
      Description copied from class: com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
      This method can be overridden by child classes to disable parent drawing.
      Overrides:
      doActualShapeDrawing in class com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
      Parameters:
      g - graphics
      bounds - bounds
    • 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.
      Overrides:
      initialize in class ShapeElement
    • internalGetHeaderInsets

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

      @CheckForNull protected Rectangle internalGetManipulatedChildrenRect(com.nomagic.magicdraw.uml.symbols.shapes.InsetsLevel insetsLevel)
      Description copied from class: com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
      Calculate union area of owned manipulated children added not on a shape border
      Overrides:
      internalGetManipulatedChildrenRect in class com.nomagic.magicdraw.uml.symbols.shapes.ContainerShapeView
      Parameters:
      insetsLevel - include insets if shape has manipulated children
      Returns:
      rectangle of children or null if there are no children
    • 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 Class getTypeClass()
      Overrides:
      getTypeClass in class com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
    • createSmartListenerConfig

      protected void createSmartListenerConfig(List<SmartListenerConfig> configurations)
      Overrides:
      createSmartListenerConfig in class InstanceSpecificationView
    • getHeaderView

      public com.nomagic.magicdraw.uml.symbols.shapes.NodeInstanceSpecificationHeaderView getHeaderView()
      Overrides:
      getHeaderView in class InstanceSpecificationView