|
Gridarta Editor
|
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) |
| void | createActionOptional (@NotNull final String name, @NotNull final String category, @Nullable final EditorAction editorAction) |
| void | createToggleAction (@NotNull final String name, @NotNull final String category, @NotNull final EditorAction editorAction) |
| EditorActionManager (@NotNull final MapViewManager< G, A, R > mapViewManager) | |
Private Member Functions | |
| void | addEditorAction (@NotNull final EditorAction editorAction) |
Private Attributes | |
| MapView< G, A, R > | currentMapView |
| final Collection< MapCursorListener< G, A, R > > | mapCursorListeners = new ArrayList<>() |
| final MapViewManager< G, A, R > | mapViewManager |
| final MapViewManagerListener< G, A, R > | mapViewManagerListener |
Static Private Attributes | |
| static final ActionBuilder | ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.gridarta") |
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(), net.sf.gridarta.maincontrol.EditorActionManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.currentMapView, net.sf.gridarta.gui.map.mapview.MapViewManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getActiveMapView(), net.sf.gridarta.maincontrol.EditorActionManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapViewManager, and net.sf.gridarta.maincontrol.EditorActionManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapViewManagerListener.
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 165 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(), net.sf.gridarta.maincontrol.EditorActionManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.currentMapView, net.sf.gridarta.maincontrol.EditorActionManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapCursorListeners, net.sf.gridarta.maincontrol.EditorActionManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapViewManager, and net.sf.gridarta.maincontrol.EditorActionManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapViewManagerListener.
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 >.ACTION_BUILDER, 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().
Referenced by net.sf.gridarta.maincontrol.EditorActionManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.createActionOptional(), and net.sf.gridarta.maincontrol.GUIMainControl< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.GUIMainControl().
Here is the call graph for this function:
Here is the caller graph for this function:| void 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 144 of file EditorActionManager.java.
Here is the call graph for this function:
Here is the caller graph for this function:| void 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 156 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 >.ACTION_BUILDER, 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:
Here is the caller graph for this function:
|
staticprivate |
The ActionBuilder.
Definition at line 58 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().
|
private |
The active map view, or
if no map view exists.
Definition at line 77 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 >.addEditorAction(), and net.sf.gridarta.maincontrol.EditorActionManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.EditorActionManager().
|
private |
The EditorActions that are interested in {} events.
Definition at line 71 of file EditorActionManager.java.
|
private |
The MapViewManager for tracking open maps.
Definition at line 64 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 >.addEditorAction(), and net.sf.gridarta.maincontrol.EditorActionManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.EditorActionManager().
|
private |
The map view manager listener used to detect changed current maps. @noinspection FieldCanBeLocal
Definition at line 84 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 >.addEditorAction(), and net.sf.gridarta.maincontrol.EditorActionManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.EditorActionManager().