Class DrawShapeDiagramAction

java.lang.Object
javax.swing.AbstractAction
com.nomagic.actions.NMAction
com.nomagic.actions.BaseNMStateAction
com.nomagic.actions.NMStateAction
com.nomagic.magicdraw.actions.MDStateAction
com.dassault_systemes.modeler.magic.ui.diagrams.actions.DefaultAbstractDiagramStateAction
com.dassault_systemes.modeler.magic.ui.diagrams.actions.BaseAbstractDiagramAction
com.nomagic.magicdraw.ui.actions.BaseDiagramAction
com.nomagic.magicdraw.ui.diagrams.BaseCustomizableDiagramAction
com.nomagic.magicdraw.ui.actions.DrawShapeDiagramAction
All Implemented Interfaces:
com.dassault_systemes.modeler.magic.ui.diagrams.actions.AbstractDiagramAction, com.nomagic.magicdraw.actions.ShortcutSchemaAction, ActionListener, Serializable, Cloneable, Comparable, EventListener, Action

@OpenApi public abstract class DrawShapeDiagramAction extends BaseCustomizableDiagramAction
The abstract diagram action to draw shape from diagram toolbar.
See Also:
  • Constructor Details

    • DrawShapeDiagramAction

      @OpenApi public DrawShapeDiagramAction(String actionID, String actionName, @CheckForNull KeyStroke key)
      Constructs new action with given id and name.
      Parameters:
      actionID - the action id.
      actionName - name of the action.
      key - the command key for action.
  • Method Details

    • createElement

      @OpenApi protected abstract Element createElement()
      Creates model element
      Returns:
      created model element
    • createPresentationElement

      @OpenApi @CheckForNull protected PresentationElement createPresentationElement()
      Creates presentation element.
      Returns:
      created presentation element