Class DecisionView

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.AbstractShapeWithLabels
com.nomagic.magicdraw.uml.symbols.shapes.ShapeWithLabels
com.nomagic.magicdraw.uml.symbols.shapes.DecisionView
All Implemented Interfaces:
BaseElement, com.nomagic.magicdraw.uml.CompartmentSupport, MDElement, ModelElementProvider, com.nomagic.magicdraw.uml.symbols.LabelOwner, com.nomagic.magicdraw.uml.symbols.manipulators.centerlines.CenterlineableShape, com.nomagic.magicdraw.uml.symbols.PropertyBasedPresentationElement, StereotypesDisplayModeOwner, com.nomagic.magicdraw.uml.symbols.SuspendShapeAutoResizeModeProvider, NameOwner, PropertyChangeListener, Cloneable, Comparable, EventListener

@OpenApi public class DecisionView extends com.nomagic.magicdraw.uml.symbols.shapes.ShapeWithLabels
Creates decision view object in activity or state diagram.
  • Field Details

    • INNER_POLYGON_GAP

      public static final int INNER_POLYGON_GAP
      Distance from outer to inner polygon
      See Also:
  • Constructor Details

    • DecisionView

      public DecisionView()
      Creates a new decision view.
    • DecisionView

      public DecisionView(@CheckForNull PresentationElement parent)
      Creates and initializes a new decision view from specified parameter.
      Parameters:
      parent - this decision view parent object.
  • Method Details

    • getDefaultDimension

      protected UnmodifiableDimension getDefaultDimension()
      Overrides:
      getDefaultDimension in class ShapeElement
    • preferredSizeIgnoringOrientation

      protected void preferredSizeIgnoringOrientation(Dimension pref, int locationX, int locationY)
      Overrides:
      preferredSizeIgnoringOrientation in class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
    • paintSelf

      public void paintSelf(com.nomagic.magicdraw.uml.symbols.DiagramPaintContext context)
      Specified by:
      paintSelf in class PresentationElement
    • 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.ShapeWithLabels
      Parameters:
      visitor - which visits this element.
      Throws:
      Exception
    • createBoundsShape

      public ContainerShape createBoundsShape(@CheckForNull PathElement path, BoundsTransformation transformation)
      Description copied from class: ShapeElement
      Creates bounding shape for intersection calculation.
      Overrides:
      createBoundsShape in class com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
      Parameters:
      path - path
      transformation - transformation
      Returns:
      shape
    • 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
    • isDecisionOrMergeNode

      public boolean isDecisionOrMergeNode()
    • isJunction

      public boolean isJunction()
    • isChoice

      public boolean isChoice()
    • internalPostUpdatePresentationElement

      protected void internalPostUpdatePresentationElement()
      Description copied from class: com.nomagic.magicdraw.uml.symbols.shapes.AbstractHeaderShapeView
      Subclasses may override this method and do some actions after specific update and resizing are executed. Implementation is empty here.
      Overrides:
      internalPostUpdatePresentationElement in class com.nomagic.magicdraw.uml.symbols.shapes.AbstractShapeWithLabels
      See Also:
      • AbstractHeaderShapeView.internalUpdatePresentationElement()
    • createSmartListenerConfig

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

      public void propertyChange(PropertyChangeEvent e)
      Description copied from class: PresentationElement
      Listens for property change it can be: data was edited text box was edited
      Specified by:
      propertyChange in interface PropertyChangeListener
      Overrides:
      propertyChange in class PresentationElement
    • 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
    • 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 PresentationElement
      Returns:
      true if element of this symbol can be represented with other symbol.