|
Gridarta Editor
|
Maintains a set of EditorAction instances and calls their event listener callbacks. More...
Collaboration diagram for net.sf.gridarta.maincontrol.EditorActionManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:Public Member Functions | |
| Action | createAction (@NotNull final String name, @NotNull final String category, @NotNull final EditorAction editorAction) |
| Initializes a new action. More... | |
| Action | createActionOptional (@NotNull final String name, @NotNull final String category, @Nullable final EditorAction editorAction) |
| Initializes a new action. More... | |
| Action | createToggleAction (@NotNull final String name, @NotNull final String category, @NotNull final EditorAction editorAction) |
| Initializes a new action. More... | |
| EditorActionManager (@NotNull final MapViewManager< G, A, R > mapViewManager) | |
| Creates a new instance. More... | |
Private Member Functions | |
| void | addEditorAction (@NotNull final EditorAction editorAction) |
| Records the event types an EditorAction is interested in. More... | |
Private Attributes | |
| MapView< G, A, R > | currentMapView |
| The active map view, or. More... | |
| final Collection< MapCursorListener< G, A, R > > | mapCursorListeners = new ArrayList<>() |
| The EditorActions that are interested in MapCursorListener events. More... | |
| final MapViewManager< G, A, R > | mapViewManager |
| The MapViewManager for tracking open maps. More... | |
| final MapViewManagerListener< G, A, R > | mapViewManagerListener |
| The map view manager listener used to detect changed current maps. More... | |
Static Private Attributes | |
| static final ActionBuilder | ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.gridarta") |
| The ActionBuilder. More... | |
Maintains a set of EditorAction instances and calls their event listener callbacks.
The following event listener interfaces may be implemented by an editor action:
MapViewManagerListener: The editor action is registered in the global MapViewManager instance and receives events related to the current map view.
MapCursorListener: The editor action receives map cursor related events for the current map view.
Definition at line 52 of file EditorActionManager.java.
| net.sf.gridarta.maincontrol.EditorActionManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.EditorActionManager | ( | @NotNull final MapViewManager< G, A, R > | mapViewManager | ) |
Creates a new instance.
| mapViewManager | the map view manager for tracking open maps |
Definition at line 118 of file EditorActionManager.java.
References net.sf.gridarta.gui.map.mapview.MapViewManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.addMapViewManagerListener(), and net.sf.gridarta.maincontrol.EditorActionManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapViewManager.
Here is the call graph for this function:
|
private |
Records the event types an EditorAction is interested in.
| editorAction | the editor action |
Definition at line 167 of file EditorActionManager.java.
Referenced by net.sf.gridarta.maincontrol.EditorActionManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.createAction(), and net.sf.gridarta.maincontrol.EditorActionManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.createToggleAction().
Here is the call graph for this function:
Here is the caller graph for this function:| Action net.sf.gridarta.maincontrol.EditorActionManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.createAction | ( | @NotNull final String | name, |
| @NotNull final String | category, | ||
| @NotNull final EditorAction | editorAction | ||
| ) |
Initializes a new action.
| name | the name of the action |
| category | the category of the action |
| editorAction | the editor to initialize |
Definition at line 132 of file EditorActionManager.java.
References net.sf.gridarta.maincontrol.EditorActionManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.addEditorAction(), and net.sf.gridarta.utils.ActionUtils.newAction().
Here is the call graph for this function:
Here is the caller graph for this function:| Action net.sf.gridarta.maincontrol.EditorActionManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.createActionOptional | ( | @NotNull final String | name, |
| @NotNull final String | category, | ||
| @Nullable final EditorAction | editorAction | ||
| ) |
Initializes a new action.
| name | the name of the action |
| category | the category of the action |
| editorAction | the editor to initialize or null |
Definition at line 146 of file EditorActionManager.java.
Here is the call graph for this function:| Action net.sf.gridarta.maincontrol.EditorActionManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.createToggleAction | ( | @NotNull final String | name, |
| @NotNull final String | category, | ||
| @NotNull final EditorAction | editorAction | ||
| ) |
Initializes a new action.
| name | the name of the action |
| category | the category of the action |
| editorAction | the editor to initialize |
Definition at line 158 of file EditorActionManager.java.
References net.sf.gridarta.maincontrol.EditorActionManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.addEditorAction(), and net.sf.gridarta.utils.ActionUtils.newToggleAction().
Here is the call graph for this function:
|
staticprivate |
The ActionBuilder.
Definition at line 58 of file EditorActionManager.java.
|
private |
The active map view, or.
if no map view exists.
Definition at line 77 of file EditorActionManager.java.
|
private |
The EditorActions that are interested in MapCursorListener events.
Definition at line 71 of file EditorActionManager.java.
|
private |
The MapViewManager for tracking open maps.
Definition at line 64 of file EditorActionManager.java.
|
private |
The map view manager listener used to detect changed current maps.
FieldCanBeLocal
Definition at line 84 of file EditorActionManager.java.