Class BaseCustomizableDiagramAction
java.lang.Object
javax.swing.AbstractAction
com.nomagic.actions.NMAction
com.nomagic.actions.BaseNMStateAction
com.nomagic.actions.NMStateAction
com.nomagic.magicdraw.actions.MDStateAction
com.dassault_systemes.modeler.magic.ui.diagrams.actions.DefaultAbstractDiagramStateAction
com.dassault_systemes.modeler.magic.ui.diagrams.actions.BaseAbstractDiagramAction
com.nomagic.magicdraw.ui.actions.BaseDiagramAction
com.nomagic.magicdraw.ui.diagrams.BaseCustomizableDiagramAction
- All Implemented Interfaces:
com.dassault_systemes.modeler.magic.ui.diagrams.actions.AbstractDiagramAction
,com.nomagic.magicdraw.actions.ShortcutSchemaAction
,ActionListener
,Serializable
,Cloneable
,Comparable
,EventListener
,Action
- Direct Known Subclasses:
DrawShapeDiagramAction
@OpenApiAll
public class BaseCustomizableDiagramAction
extends com.nomagic.magicdraw.ui.actions.BaseDiagramAction
Action which can be customized in custom diagram descriptor UI.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected com.nomagic.magicdraw.uml.symbols.manipulators.drawactions.AdditionalDrawAction
Fields inherited from class com.nomagic.actions.NMStateAction
DISTINGUISH, STATE
Fields inherited from class com.nomagic.actions.BaseNMStateAction
GROUPED
Fields inherited from class com.nomagic.actions.NMAction
ACTION_SHORTCUTS, BELONGS_TO_SEPARATE_GROUP_IN_UI, DO_NO_SHOW_ACTION_NAME_IN_UI, DO_NOT_REGISTER_ACTION_TO_COMPONENTS, GENERATED_ID_PREFIX, GROUP, ID, LARGE_ICON, MENU_SHORTCUT_MASK, TINY_ICON
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
-
Constructor Summary
ConstructorDescriptionBaseCustomizableDiagramAction
(String actionID, String actionName, KeyStroke key) -
Method Summary
Modifier and TypeMethodDescriptionclone()
Clones the object.protected com.nomagic.magicdraw.ui.states.State
Creates ShapeDrawState and sets to to the canvas.com.nomagic.magicdraw.uml.symbols.manipulators.drawactions.AdditionalDrawAction
Returns custom additional draw action for this action.com.nomagic.magicdraw.uml.symbols.manipulators.drawactions.AdditionalDrawAction
Returns default additional draw action for this actionprotected ResizableIcon
com.nomagic.magicdraw.ui.diagrams.IconCollection
getIcons()
Returns the large icon of the action.Returns the small icon of the action.getStyle()
void
setCustomAdditionalDrawAction
(com.nomagic.magicdraw.uml.symbols.manipulators.drawactions.AdditionalDrawAction customAdditionalDrawAction) Set custom additional draw action for this action.void
setDescription
(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) Methods inherited from class com.nomagic.magicdraw.ui.actions.BaseDiagramAction
getDiagramActionsExecuter, getElementCreatorInfo, isAllowedToCreateSymbol
Methods inherited from class com.dassault_systemes.modeler.magic.ui.diagrams.actions.BaseAbstractDiagramAction
actionPerformed, getCanvas, getProject, isEnabledInRODiagram, replaceState, replaceWithSelectionActionState, setEnabledInRODiagram, updateState
Methods inherited from class com.dassault_systemes.modeler.magic.ui.diagrams.actions.DefaultAbstractDiagramStateAction
getDiagram, getFirstSelected, getSelected, setDiagram
Methods inherited from class com.nomagic.magicdraw.actions.MDStateAction
isUseShortcutSchema
Methods inherited from class com.nomagic.actions.NMStateAction
accept, getState, isDistinguish, isStateEvent, setDistinguish, setState
Methods inherited from class com.nomagic.actions.BaseNMStateAction
isGrouped, setGrouped
Methods inherited from class com.nomagic.actions.NMAction
addAction, addPropertyChangeListener, addShortcut, addShotcut, addWeakPropertyChangeListener, compareTo, createMenuItem, equals, firePropertyChange, forEach, forEachIncludingSelf, getActions, getCommandKey, getDescription, getGroup, getIcon, getID, getLargeOrSmallIcon, getMenuShortcutMaskAsString, getMnemonicKey, getName, getPropertyChangeListeners, getShortcuts, getSmallOrLargeIcon, getTinyIcon, hashCode, hasMenuShortcutMask, isIDGenerated, removeAction, removeIf, removePropertyChangeListener, removeShortcut, removeWeakPropertyChangeListener, setActions, setGroup, setIcon, setLargeIcon, setMnemonicKey, setName, setShortcuts, setSmallIcon, setTinyIcon, shallowClone, toString
Methods inherited from class javax.swing.AbstractAction
getKeys, getValue, isEnabled, putValue, setEnabled
-
Field Details
-
customAdditionalDrawAction
@CheckForNull protected com.nomagic.magicdraw.uml.symbols.manipulators.drawactions.AdditionalDrawAction customAdditionalDrawAction
-
-
Constructor Details
-
BaseCustomizableDiagramAction
-
-
Method Details
-
getIcons
public com.nomagic.magicdraw.ui.diagrams.IconCollection getIcons() -
setIcons
public void setIcons(com.nomagic.magicdraw.ui.diagrams.IconCollection icons) -
getLargeIcon
Description copied from class:NMAction
Returns the large icon of the action.- Overrides:
getLargeIcon
in classNMAction
- Returns:
- the large icon of the action.
-
getSmallIcon
Description copied from class:NMAction
Returns the small icon of the action.- Overrides:
getSmallIcon
in classNMAction
- Returns:
- the small icon of the action.
-
getDefaultIcon
-
setDescription
Description copied from class:NMAction
Sets new action description.- Overrides:
setDescription
in classNMAction
- Parameters:
description
- action description.
-
clone
Description copied from class:NMAction
Clones the object. Does the deep clone.- Overrides:
clone
in classcom.nomagic.magicdraw.ui.actions.BaseDiagramAction
- Returns:
- cloned object
-
getStyle
-
setStyle
-
setStyle
public void setStyle(@CheckForNull com.nomagic.magicdraw.ui.diagrams.PropertyManagerProxy style) -
createState
@NotApi protected com.nomagic.magicdraw.ui.states.State createState()Creates ShapeDrawState and sets to to the canvas.- Overrides:
createState
in classcom.nomagic.magicdraw.ui.actions.BaseDiagramAction
-
getCustomAdditionalDrawAction
@CheckForNull public com.nomagic.magicdraw.uml.symbols.manipulators.drawactions.AdditionalDrawAction getCustomAdditionalDrawAction()Returns custom additional draw action for this action.- Returns:
- additional draw action
-
getDefaultAdditionalDrawAction
@CheckForNull public com.nomagic.magicdraw.uml.symbols.manipulators.drawactions.AdditionalDrawAction getDefaultAdditionalDrawAction()Returns default additional draw action for this action- Returns:
- default additional draw action
-
setCustomAdditionalDrawAction
public void setCustomAdditionalDrawAction(@CheckForNull com.nomagic.magicdraw.uml.symbols.manipulators.drawactions.AdditionalDrawAction customAdditionalDrawAction) Set custom additional draw action for this action. This draw action will be used if not null.- Parameters:
customAdditionalDrawAction
- custom additional draw action
-