public class EditActionManager extends Object
Constructor and Description |
---|
EditActionManager(GraphGUI gui,
List<EditAction> actions)
Create an action manager with a list of specific edit actions
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(EditAction action)
Warn the manager that an action was performed.
|
void |
addEditButtons(JToolBar toolbar)
Fill the toolbar with buttons matching the available edit actions.
|
EditAction |
getSelectedAction() |
void |
select(Object o) |
void |
setSelectedAction(EditAction action)
Change the selected edit action.
|
public EditActionManager(GraphGUI gui, List<EditAction> actions)
actions
- available actions or nullpublic EditAction getSelectedAction()
public void setSelectedAction(EditAction action)
action
- public void actionPerformed(EditAction action)
action
- the action that was performed. It should be the same as the selected onepublic void select(Object o)
public void addEditButtons(JToolBar toolbar)
toolbar
- Copyright © 2005–2020. All rights reserved.