Class DrawPathDiagramAction

  • 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 DrawPathDiagramAction
    extends com.nomagic.magicdraw.ui.actions.BaseDiagramAction
    The abstract diagram action to draw path from diagram toolbar.
    See Also:
    Serialized Form
    • Constructor Detail

      • DrawPathDiagramAction

        @OpenApi
        public DrawPathDiagramAction​(java.lang.String actionID,
                                     java.lang.String actionName,
                                     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

      • createState

        @CheckForNull
        protected com.nomagic.magicdraw.ui.states.State createState()
        Overrides:
        createState in class com.nomagic.magicdraw.ui.actions.BaseDiagramAction
      • createCreatableClientElements

        protected com.nomagic.magicdraw.uml.symbols.manipulators.CreatableShapeElements createCreatableClientElements()
      • createCreatableSupplierElements

        protected com.nomagic.magicdraw.uml.symbols.manipulators.CreatableShapeElements createCreatableSupplierElements()
      • createElement

        @OpenApi
        protected abstract Element createElement()
        Creates model link.
        Returns:
        created model link
      • createPathElement

        protected PathElement createPathElement()
        Creates path element.
        Returns:
        created path element
      • createAdditionalDrawAction

        @CheckForNull
        protected com.nomagic.magicdraw.uml.symbols.manipulators.drawactions.AdditionalDrawAction createAdditionalDrawAction()