@OpenApiAll
public class DiagramsActionsManager
extends java.lang.Object
Constructor and Description |
---|
DiagramsActionsManager() |
Modifier and Type | Method and Description |
---|---|
void |
addManager(java.lang.String type,
java.util.function.Supplier<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.
|
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 |
getManager(java.lang.String type)
Returns the manager for the given diagram type.
|
java.util.List<ActionsManager> |
getManagers()
Returns the list of all managers.
|
void |
removeManager(java.lang.String type)
Removes the added manager of the given diagram type.
|
@CheckForNull public ActionsManager getManager(java.lang.String type)
public void addManager(java.lang.String type, java.util.function.Supplier<ActionsManager> manager)
type
- the type of the diagram.manager
- the given manager.public void removeManager(java.lang.String type)
type
- the type of the diagram.public java.util.List<ActionsManager> getManagers()
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.@CheckForNull public NMAction getActionFor(javax.swing.KeyStroke stroke)
@CheckForNull public NMAction getActionFor(java.lang.String id)