@OpenApi public abstract class DrawShapeDiagramAction extends BaseCustomizableDiagramAction
mCustomAdditionalDrawAction
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 |
---|
DrawShapeDiagramAction(java.lang.String actionID,
java.lang.String actionName,
javax.swing.KeyStroke key)
Constructs new action with given id and name.
|
Modifier and Type | Method and Description |
---|---|
protected abstract Element |
createElement()
Creates model element
|
protected PresentationElement |
createPresentationElement()
Creates presentation element.
|
clone, createState, getCustomAdditionalDrawAction, getDefaultAdditionalDrawAction, getDefaultIcon, getIcons, getLargeIcon, getSmallIcon, getStyle, setCustomAdditionalDrawAction, setDescription, setIcons, setStyle, setStyle
actionPerformed, getCanvas, getDiagramActionsExecuter, getElementCreatorInfo, getNameSpace, getProject, isAllowedToCreateSymbol, isEnabledInRODiagram, replaceState, replaceWithSelectionActionState, setEnabledInRODiagram, updateState
getDiagram, getFirstSelected, getSelected, setDiagram
accept, getState, isDistinguish, isGrouped, setDistinguish, setGrouped, setState
addAction, addPropertyChangeListener, addShortcut, addShotcut, addWeakPropertyChangeListener, compareTo, createMenuItem, equals, firePropertyChange, getActions, getCommandKey, getDescription, getGroup, getIcon, getID, getLargeOrSmallIcon, getMenuShortcutMaskAsString, getMnemonicKey, getName, getPropertyChangeListeners, getShortcuts, getSmallOrLargeIcon, getTinyIcon, hashCode, hasMenuShortcutMask, isIDGenerated, removeAction, removePropertyChangeListener, removeShortcut, removeWeakPropertyChangeListener, setActions, setGroup, setIcon, setLargeIcon, setMnemonicKey, setName, setShortcuts, setSmallIcon, setTinyIcon, shallowClone, toString
@OpenApi public DrawShapeDiagramAction(java.lang.String actionID, java.lang.String actionName, @CheckForNull javax.swing.KeyStroke key)
actionID
- the action id.actionName
- name of the action.key
- the command key for action.@OpenApi protected abstract Element createElement()
@OpenApi protected PresentationElement createPresentationElement()