|
Gridarta Editor
|
Maintains the window menu. More...
Collaboration diagram for net.sf.gridarta.gui.mapdesktop.WindowMenuManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:Public Member Functions | |
| WindowMenuManager (@NotNull final JMenu menuWindow, @NotNull final MapViewManager< G, A, R > mapViewManager, @NotNull final Action aCloseAll, @NotNull final MapDesktop< G, A, R > mapDesktop) | |
| Creates a new instance. More... | |
Private Member Functions | |
| void | rebuildWindowMenu () |
| Rebuild the window menu. More... | |
Private Attributes | |
| final Action | aCloseAll |
| The action for "close all map windows". More... | |
| final MapDesktop< G, A, R > | mapDesktop |
| The MapDesktop to use. More... | |
| final Iterable< MapView< G, A, R > > | mapViewManager |
| The MapViewManager to use. More... | |
| final MapViewManagerListener< G, A, R > | mapViewManagerListener |
| The listener used to detect map view changes. More... | |
| final JMenu | menuWindow |
| The "window" menu. More... | |
Maintains the window menu.
Tracks added, removed, and modified windows.
Definition at line 38 of file WindowMenuManager.java.
| net.sf.gridarta.gui.mapdesktop.WindowMenuManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.WindowMenuManager | ( | @NotNull final JMenu | menuWindow, |
| @NotNull final MapViewManager< G, A, R > | mapViewManager, | ||
| @NotNull final Action | aCloseAll, | ||
| @NotNull final MapDesktop< G, A, R > | mapDesktop | ||
| ) |
Creates a new instance.
| menuWindow | the "window" menu |
| mapViewManager | the map view manager to track |
| aCloseAll | the action for "close all map windows" |
| mapDesktop | the map desktop to use |
Definition at line 94 of file WindowMenuManager.java.
References net.sf.gridarta.gui.mapdesktop.WindowMenuManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.aCloseAll, net.sf.gridarta.gui.mapdesktop.WindowMenuManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapDesktop, net.sf.gridarta.gui.mapdesktop.WindowMenuManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapViewManager, and net.sf.gridarta.gui.mapdesktop.WindowMenuManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.menuWindow.
|
private |
Rebuild the window menu.
Definition at line 105 of file WindowMenuManager.java.
References net.sf.gridarta.gui.mapdesktop.MapDesktop< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.addWindowAction(), and net.sf.gridarta.gui.utils.MenuUtils.removeAll().
Here is the call graph for this function:
|
private |
The action for "close all map windows".
Definition at line 56 of file WindowMenuManager.java.
|
private |
The MapDesktop to use.
Definition at line 62 of file WindowMenuManager.java.
|
private |
The MapViewManager to use.
Definition at line 50 of file WindowMenuManager.java.
|
private |
The listener used to detect map view changes.
Definition at line 68 of file WindowMenuManager.java.
|
private |
The "window" menu.
Definition at line 44 of file WindowMenuManager.java.