@OpenApiAll public class DefaultDiagramStateAction extends MDStateAction implements DiagramAction
DISTINGUISH, GROUPED, STATE
ACTION_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.
|
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 |
getSelected()
Returns list of selected views.
|
void |
setDiagram(DiagramPresentationElement diagram)
Sets diagram for this action.
|
actionPerformed, updateState
accept, getState, isDistinguish, isGrouped, setDistinguish, setGrouped, setState
addAction, addPropertyChangeListener, addShortcut, addShotcut, addWeakPropertyChangeListener, clone, compareTo, createMenuItem, equals, firePropertyChange, getActions, getCommandKey, getDescription, getGroup, getIcon, getID, getLargeIcon, getLargeOrSmallIcon, getMenuShortcutMaskAsString, getMnemonicKey, getName, getPropertyChangeListeners, getShortcuts, getSmallIcon, getSmallOrLargeIcon, getTinyIcon, hashCode, hasMenuShortcutMask, isIDGenerated, removeAction, removePropertyChangeListener, removeShortcut, removeWeakPropertyChangeListener, setActions, setDescription, setGroup, setIcon, setLargeIcon, setMnemonicKey, setName, setShortcuts, setSmallIcon, setTinyIcon, shallowClone, toString
public 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(DiagramPresentationElement diagram)
setDiagram
in interface DiagramAction
diagram
- the given diagram.@CheckForNull protected DiagramPresentationElement getDiagram()
@CheckForNull protected PresentationElement getFirstSelected()
protected java.util.List getSelected()