Package com.nomagic.magicdraw.ui.actions
Class DrawPathDiagramAction
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.actions.DrawPathDiagramAction
- 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 DrawPathDiagramAction
extends com.nomagic.magicdraw.ui.actions.BaseDiagramAction
The abstract diagram action to draw path from diagram toolbar.
- See Also:
-
Field Summary
Fields inherited from class com.nomagic.actions.NMStateAction
DISTINGUISH, STATE
Fields inherited from class com.nomagic.actions.BaseNMStateAction
GROUPED
Fields inherited from class com.nomagic.actions.NMAction
ACTION_SHORTCUTS, BELONGS_TO_SEPARATE_GROUP_IN_UI, DO_NO_SHOW_ACTION_NAME_IN_UI, DO_NOT_REGISTER_ACTION_TO_COMPONENTS, GENERATED_ID_PREFIX, GROUP, ID, LARGE_ICON, MENU_SHORTCUT_MASK, TINY_ICON
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
-
Constructor Summary
ConstructorsConstructorDescriptionDrawPathDiagramAction
(String actionID, String actionName, KeyStroke key) Constructs new action with given id and name. -
Method Summary
Modifier and TypeMethodDescriptionprotected com.nomagic.magicdraw.uml.symbols.manipulators.drawactions.AdditionalDrawAction
protected com.nomagic.magicdraw.uml.symbols.manipulators.CreatableShapeElements
protected com.nomagic.magicdraw.uml.symbols.manipulators.CreatableShapeElements
protected abstract Element
Creates model link.protected PathElement
Creates path element.protected com.dassault_systemes.modeler.magic.ui.diagrams.editor.states.State
protected DiagramPresentationElement
Returns diagram this action.Methods inherited from class com.nomagic.magicdraw.ui.actions.BaseDiagramAction
clone, getDiagramActionsExecuter, getElementCreatorInfo, isAllowedToCreateSymbol
Methods inherited from class com.dassault_systemes.modeler.magic.ui.diagrams.actions.BaseAbstractDiagramAction
actionPerformed, getCanvas, getProject, isEnabledInRODiagram, replaceState, replaceWithSelectionActionState, setEnabledInRODiagram, updateState
Methods inherited from class com.dassault_systemes.modeler.magic.ui.diagrams.actions.DefaultAbstractDiagramStateAction
getFirstSelected, getSelected, setDiagram
Methods inherited from class com.nomagic.magicdraw.actions.MDStateAction
isUseShortcutSchema
Methods inherited from class com.nomagic.actions.NMStateAction
accept, getState, isDistinguish, isStateEvent, setDistinguish, setState
Methods inherited from class com.nomagic.actions.BaseNMStateAction
isGrouped, setGrouped
Methods inherited from class com.nomagic.actions.NMAction
addAction, addPropertyChangeListener, addShortcut, addShotcut, addWeakPropertyChangeListener, compareTo, createMenuItem, equals, firePropertyChange, forEach, forEachIncludingSelf, getActions, getCommandKey, getDescription, getGroup, getIcon, getID, getLargeIcon, getLargeOrSmallIcon, getMenuShortcutMaskAsString, getMnemonicKey, getName, getPropertyChangeListeners, getShortcuts, getSmallIcon, getSmallOrLargeIcon, getTinyIcon, hashCode, hasMenuShortcutMask, isIDGenerated, removeAction, removeIf, removePropertyChangeListener, removeShortcut, removeWeakPropertyChangeListener, setActions, setDescription, setGroup, setIcon, setLargeIcon, setMnemonicKey, setName, setShortcuts, setSmallIcon, setTinyIcon, shallowClone, toString
Methods inherited from class javax.swing.AbstractAction
getKeys, getValue, isEnabled, putValue, setEnabled
-
Constructor Details
-
Method Details
-
createState
@CheckForNull protected com.dassault_systemes.modeler.magic.ui.diagrams.editor.states.State createState()- Overrides:
createState
in classcom.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
Creates model link.- Returns:
- created model link
-
createPathElement
Creates path element.- Returns:
- created path element
-
getDiagram
Description copied from class:DefaultAbstractDiagramStateAction
Returns diagram this action. MagicDraw framework guarantee that diagram will set if this method is called from updateState() or actionPerformed(ActionEvent) methods.- Overrides:
getDiagram
in classDefaultAbstractDiagramStateAction
- Returns:
- diagram.
-
createAdditionalDrawAction
@CheckForNull protected com.nomagic.magicdraw.uml.symbols.manipulators.drawactions.AdditionalDrawAction createAdditionalDrawAction()
-