@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.
|
NMAction |
getActionFor(javax.swing.KeyStroke stroke)
Return the action for given stroke.
|
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()
@CheckForNull public NMAction getActionFor(javax.swing.KeyStroke stroke)