@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, TINY_ICON| Constructor and Description | 
|---|
DefaultDiagramStateAction(java.lang.String actionID,
                         java.lang.String actionName,
                         javax.swing.KeyStroke stroke,
                         java.lang.String group)
Constructs new action. 
 | 
DefaultDiagramStateAction(java.lang.String actionID,
                         java.lang.String actionName,
                         javax.swing.KeyStroke stroke,
                         java.lang.String group,
                         boolean useSchema)
Constructs new action. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected DiagramPresentationElement | 
getDiagram()
Returns diagram this action. 
 | 
protected PresentationElement | 
getFirstSelected()
Returns first selected view in the diagram. 
 | 
protected java.util.List<PresentationElement> | 
getSelected()
Returns list of selected views. 
 | 
void | 
setDiagram(DiagramPresentationElement diagram)
Sets diagram for this action. 
 | 
actionPerformed, isUseShortcutSchema, updateStateaccept, getState, isDistinguish, isGrouped, isStateEvent, setDistinguish, setGrouped, setStateaddAction, addPropertyChangeListener, addShortcut, addShotcut, addWeakPropertyChangeListener, clone, 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, 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 DefaultDiagramStateAction(java.lang.String actionID,
                                 @CheckForNull
                                 java.lang.String actionName,
                                 @CheckForNull
                                 javax.swing.KeyStroke stroke,
                                 @CheckForNull
                                 java.lang.String group,
                                 boolean useSchema)
actionID - the action ID.actionName - the action name.stroke - the action stroke.group - the action group.useSchema - use shortcuts schemapublic void setDiagram(@CheckForNull
                       DiagramPresentationElement diagram)
setDiagram in interface DiagramActiondiagram - the given diagram.@CheckForNull protected DiagramPresentationElement getDiagram()
@CheckForNull protected PresentationElement getFirstSelected()
protected java.util.List<PresentationElement> getSelected()