@OpenApiAll
public class DiagramsActionsManager
extends java.lang.Object
implements java.lang.Cloneable
Constructor and Description |
---|
DiagramsActionsManager() |
Modifier and Type | Method and Description |
---|---|
void |
addManager(java.lang.String type,
ActionsManager manager)
Adds the given manager of the given diagram type.
|
void |
addPropertiesToSave(Style style)
The current manager constructs and adds the property manager to the given style.
|
void |
applyPropertiesAfterLoad(Style style)
The current manager takes some properties from the given style and applies them to the actions.
|
java.lang.Object |
clone()
Clones the manager.
|
static java.lang.String |
createDiagramTypePrefix(java.lang.String diagramType)
Contains logic of diagram type prefix generation.
|
NMAction |
getActionFor(javax.swing.KeyStroke stroke)
Return the action for given stroke.
|
NMAction |
getActionFor(java.lang.String id)
Return the action for given id.
|
ActionsManager |
getActionsManagerFor(NMAction action)
Return actions manager for given action.
|
java.util.List |
getAllActions()
Returns the actions from all managers.
|
java.util.List |
getAllCategories()
Returns the categories from all managers.
|
ActionsManager |
getManager(java.lang.String type)
Returns the manager for the given diagram type.
|
java.util.List |
getManagers()
Returns the list of all managers.
|
void |
setParent(ActionsManager parent)
Sets the parent for all managers.
|
public ActionsManager getManager(java.lang.String type)
public void addManager(java.lang.String type, ActionsManager manager)
type
- the type of the diagram.manager
- the given manager.public java.util.List getAllCategories()
public java.util.List getAllActions()
public java.util.List getManagers()
public java.lang.Object clone()
clone
in class java.lang.Object
public void addPropertiesToSave(Style style)
style
- the given style to add the property manager into.public static java.lang.String createDiagramTypePrefix(java.lang.String diagramType)
diagramType
- diagram type.public void applyPropertiesAfterLoad(Style style)
style
- the given style to take the property manager from.public void setParent(ActionsManager parent)
parent
- the parent of all managers.public NMAction getActionFor(javax.swing.KeyStroke stroke)
public NMAction getActionFor(java.lang.String id)
public ActionsManager getActionsManagerFor(NMAction action)