@OpenApiAll public class DefaultDiagramStateAction extends MDStateAction implements DiagramAction
DISTINGUISH, GROUPED, STATEACTION_SHORTCUTS, BELONGS_TO_SEPARATE_GROUP_IN_UI, DO_NO_SHOW_ACTION_NAME_IN_UI, GENERATED_ID_PREFIX, GROUP, ID, LARGE_ICON, MENU_SHORTCUT_MASK| Constructor and Description |
|---|
DefaultDiagramStateAction(java.lang.String actionID,
java.lang.String actionName,
javax.swing.KeyStroke stroke,
java.lang.String group)
Constructs new action.
|
| Modifier and Type | Method and Description |
|---|---|
protected com.nomagic.magicdraw.uml.symbols.DiagramPresentationElement |
getDiagram()
Returns diagram this action.
|
protected com.nomagic.magicdraw.uml.symbols.PresentationElement |
getFirstSelected()
Returns first selected view in the diagram.
|
protected java.util.List |
getSelected()
Returns list of selected views.
|
void |
setDiagram(com.nomagic.magicdraw.uml.symbols.DiagramPresentationElement diagram)
Sets diagram for this action.
|
actionPerformed, updateStateaccept, getState, isDistinguish, isGrouped, setDistinguish, setGrouped, setStateaddAction, addPropertyChangeListener, addShotcut, addWeakPropertyChangeListener, clone, compareTo, createMenuItem, equals, firePropertyChange, getActions, getCommandKey, getDescription, getGroup, getIcon, getID, getLargeIcon, getMnemonicKey, getName, getPropertyChangeListeners, getShortcuts, getSmallIcon, hashCode, isIDGenerated, removeAction, removePropertyChangeListener, removeShortcut, removeWeakPropertyChangeListener, setActions, setDescription, setGroup, setLargeIcon, setMnemonicKey, setName, setShortcuts, setSmallIcon, shallowClone, toStringpublic DefaultDiagramStateAction(java.lang.String actionID,
@CheckForNull
java.lang.String actionName,
@CheckForNull
javax.swing.KeyStroke stroke,
@CheckForNull
java.lang.String group)
actionID - the action ID.actionName - the action name.stroke - the action stroke.group - the action group.public void setDiagram(com.nomagic.magicdraw.uml.symbols.DiagramPresentationElement diagram)
setDiagram in interface DiagramActiondiagram - the given diagram.protected com.nomagic.magicdraw.uml.symbols.DiagramPresentationElement getDiagram()
protected com.nomagic.magicdraw.uml.symbols.PresentationElement getFirstSelected()
protected java.util.List getSelected()