Class ObjectNodeView

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.ObjectNodeView
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 ObjectNodeView extends com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
  • Field Details

  • Constructor Details

    • ObjectNodeView

      public ObjectNodeView()
    • ObjectNodeView

      public ObjectNodeView(@CheckForNull PresentationElement parent)
  • Method Details

    • getInStateText

      public static String getInStateText(ObjectNode objectNode)
    • getStateView

      protected com.nomagic.magicdraw.uml.symbols.shapes.TextObject getStateView()
    • getStreamView

      protected com.nomagic.magicdraw.uml.symbols.shapes.TextObject getStreamView()
    • internalSpecificUpdate

      protected void internalSpecificUpdate()
      Description copied from class: com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
      Specific to every shape and model element update operation. Must be overridden in subclasses if you need to do specific tasks. !!! Important - all resizing, paths moving and so on is done in updatePresentationElement and should not be done in specific update.
      Overrides:
      internalSpecificUpdate in class com.nomagic.magicdraw.uml.symbols.shapes.HeaderShapeView
      See Also:
      • AbstractHeaderShapeView.internalUpdatePresentationElement()
    • updateChildrenVisibility

      public void updateChildrenVisibility()
      Overrides:
      updateChildrenVisibility in class com.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
    • getShowActivityParameterNodeNameMode

      public String getShowActivityParameterNodeNameMode()
    • internalApplyProperties

      public void internalApplyProperties(com.dassault_systemes.modeler.magic.diagram.styledelegates.PresentationElementStyleChanger changer)
      Description copied from class: PresentationElement
      Applies properties from given property manager
      Overrides:
      internalApplyProperties in class com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
      Parameters:
      changer - new properties
    • isActivityParameterNode

      public boolean isActivityParameterNode()
    • 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.TypedElementView
    • isShowDirection

      public boolean isShowDirection()
    • sSetShowDirection

      public void sSetShowDirection(boolean showDirection)
    • setShowDirection

      public void setShowDirection(boolean showDirection)
    • isShowMultiplicity

      public boolean isShowMultiplicity()
    • setShowMultiplicity

      public void setShowMultiplicity(boolean showMultiplicity)
    • sSetShowMultiplicity

      public void sSetShowMultiplicity(boolean showMultiplicity)
    • isShowState

      public boolean isShowState()
    • sSetShowState

      public void sSetShowState(boolean showState)
    • setShowState

      public void setShowState(boolean showState)
    • isShowProperties

      public boolean isShowProperties()
    • setShowProperties

      public void setShowProperties(boolean showProperties)
    • sSetShowProperties

      public void sSetShowProperties(boolean showProperties)
    • accept

      public void accept(Visitor visitor) throws Exception
      Description copied from interface: MDElement
      Method accepts a visitor, and calls method "visit<class name>(this)" of a visitor. See "Visitor" pattern for more details.
      Specified by:
      accept in interface MDElement
      Overrides:
      accept in class com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
      Parameters:
      visitor - which visits this element.
      Throws:
      Exception
    • getStereotypesToDisplay

      protected com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView.StereotypeDisplayData getStereotypesToDisplay()
      Overrides:
      getStereotypesToDisplay in class com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
      Returns:
      stereotypes to display on this symbol
    • sSetClassifiers

      public void sSetClassifiers(List<Classifier> type)
      Description copied from class: com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
      Sets one classifier.
      Specified by:
      sSetClassifiers in class com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
      Parameters:
      type - a collection of classifiers to set as type of this typed element
    • getMetaClassifiersQPropertyName

      public String getMetaClassifiersQPropertyName()
      Specified by:
      getMetaClassifiersQPropertyName in class com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
    • getClassifier

      @CheckForNull public Classifier getClassifier()
      Specified by:
      getClassifier in class com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView
    • findOwnerForElement

      public com.dassault_systemes.modeler.foundation.model.ModelElement findOwnerForElement(PresentationElement parent, com.dassault_systemes.modeler.foundation.model.ModelElementOwnershipContext ownershipContext)
      Overrides:
      findOwnerForElement in class PresentationElement
    • getOutgoingToActionObjectFlow

      @CheckForNull public ObjectFlowView getOutgoingToActionObjectFlow()
    • getIncomingFromActionObjectFlow

      @CheckForNull public ObjectFlowView getIncomingFromActionObjectFlow()
    • createSmartListenerConfig

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

      public ObjectNode 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
      Overrides:
      getElement in class PresentationElement
      Returns:
      model element of this presentation element.
    • setParent

      public void setParent(PresentationElement parent)
      Description copied from class: PresentationElement
      Overrides:
      setParent in class PathConnector
      Parameters:
      parent - parent view
    • sSetParent

      public void sSetParent(PresentationElement parent)
      Description copied from class: PresentationElement
      Overrides:
      sSetParent in class PresentationElement
      Parameters:
      parent - parent view
    • hasSharedModelElement

      public boolean hasSharedModelElement()
      Description copied from class: PresentationElement
      Returns true if ModelElement of this symbol can represented with other symbol. If ModelElement is not shared, it can be deleted together with symbol deleting.
      Overrides:
      hasSharedModelElement in class com.nomagic.magicdraw.uml.symbols.shapes.BaseHeaderShapeView
      Returns:
      true if element of this symbol can be represented with other symbol.
    • addConnectedPathElement

      public boolean addConnectedPathElement(PathElement element)
      Description copied from class: PathConnector
      Adds a new path element, and recalculates its position.
      Overrides:
      addConnectedPathElement in class PathConnector
      Parameters:
      element - element to be added.
      Returns:
      true if an element was added
    • removeConnectedPathElement

      public boolean removeConnectedPathElement(PathElement link)
      Description copied from class: PathConnector
      Removes path element.
      Overrides:
      removeConnectedPathElement in class PathConnector
      Parameters:
      link - element to remove.
      Returns:
      true if an element was removed
    • shouldDrawShadow

      protected boolean shouldDrawShadow()
      Overrides:
      shouldDrawShadow in class ShapeElement
    • getHeaderView

      public com.nomagic.magicdraw.uml.symbols.shapes.ObjectNodeViewHeaderView getHeaderView()
      Overrides:
      getHeaderView in class com.nomagic.magicdraw.uml.symbols.shapes.TypedElementView