Class DrawShapeDiagramAction

  • All Implemented Interfaces:
    DiagramAction, com.nomagic.magicdraw.actions.ShortcutSchemaAction, java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable, java.util.EventListener, javax.swing.Action

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

      • DrawShapeDiagramAction

        @OpenApi
        public DrawShapeDiagramAction​(java.lang.String actionID,
                                      java.lang.String actionName,
                                      @CheckForNull
                                      javax.swing.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 Detail

      • createElement

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

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