@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
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, getMnemonicKey, getName, getPropertyChangeListeners, getShortcuts, getSmallIcon, getSmallOrLargeIcon, hashCode, isIDGenerated, removeAction, removePropertyChangeListener, removeShortcut, removeWeakPropertyChangeListener, setActions, setDescription, setGroup, setLargeIcon, setMnemonicKey, setName, setShortcuts, setSmallIcon, 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.protected DiagramPresentationElement getDiagram()
protected PresentationElement getFirstSelected()
protected java.util.List getSelected()