@OpenApiAll
public class BaseCustomizableDiagramAction
extends com.nomagic.magicdraw.ui.actions.BaseDiagramAction
Modifier and Type | Field and Description |
---|---|
protected com.nomagic.magicdraw.uml.symbols.manipulators.drawactions.AdditionalDrawAction |
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 |
---|
BaseCustomizableDiagramAction(java.lang.String actionID,
java.lang.String actionName,
javax.swing.KeyStroke key) |
Modifier and Type | Method and Description |
---|---|
BaseCustomizableDiagramAction |
clone() |
protected com.nomagic.magicdraw.ui.states.State |
createState()
Creates ShapeDrawState and sets to to the canvas.
|
com.nomagic.magicdraw.uml.symbols.manipulators.drawactions.AdditionalDrawAction |
getCustomAdditionalDrawAction()
Returns custom additional draw action for this action.
|
com.nomagic.magicdraw.uml.symbols.manipulators.drawactions.AdditionalDrawAction |
getDefaultAdditionalDrawAction()
Returns default additional draw action for this action
|
protected ResizableIcon |
getDefaultIcon() |
(package private) static ResizableIcon |
getIconByScaling(com.nomagic.magicdraw.ui.diagrams.IconCollection icons,
ResizableIcon defaultIcon) |
com.nomagic.magicdraw.ui.diagrams.IconCollection |
getIcons() |
javax.swing.Icon |
getLargeIcon()
Returns the large icon of the action.
|
javax.swing.Icon |
getSmallIcon()
Returns the small icon of the action.
|
PropertyManager |
getStyle() |
void |
setCustomAdditionalDrawAction(com.nomagic.magicdraw.uml.symbols.manipulators.drawactions.AdditionalDrawAction customAdditionalDrawAction)
Set custom additional draw action for this action.
|
void |
setDescription(java.lang.String description)
Sets new action description.
|
void |
setIcons(com.nomagic.magicdraw.ui.diagrams.IconCollection icons) |
void |
setStyle(PropertyManager style) |
void |
setStyle(com.nomagic.magicdraw.ui.diagrams.PropertyManagerProxy style) |
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
protected com.nomagic.magicdraw.uml.symbols.manipulators.drawactions.AdditionalDrawAction mCustomAdditionalDrawAction
public BaseCustomizableDiagramAction(java.lang.String actionID, @CheckForNull java.lang.String actionName, @CheckForNull javax.swing.KeyStroke key)
public com.nomagic.magicdraw.ui.diagrams.IconCollection getIcons()
public void setIcons(com.nomagic.magicdraw.ui.diagrams.IconCollection icons)
@CheckForNull public javax.swing.Icon getLargeIcon()
NMAction
getLargeIcon
in class NMAction
@CheckForNull public javax.swing.Icon getSmallIcon()
NMAction
getSmallIcon
in class NMAction
@CheckForNull static ResizableIcon getIconByScaling(com.nomagic.magicdraw.ui.diagrams.IconCollection icons, @CheckForNull ResizableIcon defaultIcon)
@CheckForNull protected ResizableIcon getDefaultIcon()
public void setDescription(java.lang.String description)
NMAction
setDescription
in class NMAction
description
- action description.public BaseCustomizableDiagramAction clone()
clone
in class com.nomagic.magicdraw.ui.actions.BaseDiagramAction
@CheckForNull public PropertyManager getStyle()
public void setStyle(@CheckForNull PropertyManager style)
public void setStyle(@CheckForNull com.nomagic.magicdraw.ui.diagrams.PropertyManagerProxy style)
@NotApi protected com.nomagic.magicdraw.ui.states.State createState()
createState
in class com.nomagic.magicdraw.ui.actions.BaseDiagramAction
public com.nomagic.magicdraw.uml.symbols.manipulators.drawactions.AdditionalDrawAction getCustomAdditionalDrawAction()
@CheckForNull public com.nomagic.magicdraw.uml.symbols.manipulators.drawactions.AdditionalDrawAction getDefaultAdditionalDrawAction()
public void setCustomAdditionalDrawAction(com.nomagic.magicdraw.uml.symbols.manipulators.drawactions.AdditionalDrawAction customAdditionalDrawAction)
customAdditionalDrawAction
- custom additional draw action