|
Gridarta Editor
|
The JDesktopPane containing all map views. More...
Inheritance diagram for net.sf.gridarta.gui.mapdesktop.MapDesktop< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:
Collaboration diagram for net.sf.gridarta.gui.mapdesktop.MapDesktop< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:Classes | |
| class | MapViewFrameListener |
| The listener attached to map views. More... | |
Public Member Functions | |
| void | addWindowAction (@NotNull final JMenu menu, @NotNull final MapView< G, A, R > mapView, final int index) |
| Adds an action for selecting this window to a menu. More... | |
| MapDesktop (@NotNull final MapViewManager< G, A, R > mapViewManager, @NotNull final MapManager< G, A, R > mapManager, @NotNull final MapImageCache< G, A, R > mapImageCache, @NotNull final MapViewsManager< G, A, R > mapViewsManager) | |
| Creates a new instance. More... | |
| void | nextWindow () |
| Gives focus to the previous window. More... | |
| void | prevWindow () |
| Gives focus to the next window. More... | |
| void | setAction (@NotNull final Action action, @NotNull final String name) |
| Sets the Action instance for this editor action. More... | |
| void | setCurrentMapView (@NotNull final MapView< G, A, R > mapView) |
| Sets the given level view as the current one. More... | |
Private Member Functions | |
| void | activateAndRaiseMapView (@NotNull final MapView< G, A, R > mapView) |
| Activates and raises the given map view. More... | |
| void | addMapView (@NotNull final MapView< G, A, R > mapView) |
| Adds the map view. More... | |
| boolean | doNextWindow (final boolean performAction) |
| Performs or checks availability of the "next window" action. More... | |
| boolean | doPrevWindow (final boolean performAction) |
| Performs or checks availability of the "prev window" action. More... | |
| void | mapViewFocusGainedNotify (@NotNull final MapView< G, A, R > mapView) |
| Notifies that the given map view is now set as the current one. More... | |
| void | mapViewFocusLostNotify (@NotNull final MapView< G, A, R > mapView) |
| Notifies that the map views focus is lost it is inserted as the second in line to the map view vector. More... | |
| void | refreshMenus () |
| Enables/disables the actions according to the current state. More... | |
| void | removeMapView (@NotNull final MapView< G, A, R > mapView) |
| Removes (closes) the map view. More... | |
| void | updateFocus (final boolean careAboutIconification) |
| Updates the focus to the first non-iconified map window. More... | |
| void | updateFrameIcon (@NotNull final MapView< G, A, R > mapView) |
| Updates the frame icon to the current icon image. More... | |
Static Private Attributes | |
| static final ActionBuilder | ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.gridarta") |
| The action builder. More... | |
| static final Category | LOG = Logger.getLogger(MapDesktop.class) |
| The Logger for printing log messages. More... | |
| static final long | serialVersionUID = 1L |
| The serial version UID. More... | |
The JDesktopPane containing all map views.
Definition at line 60 of file MapDesktop.java.
| net.sf.gridarta.gui.mapdesktop.MapDesktop< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.MapDesktop | ( | @NotNull final MapViewManager< G, A, R > | mapViewManager, |
| @NotNull final MapManager< G, A, R > | mapManager, | ||
| @NotNull final MapImageCache< G, A, R > | mapImageCache, | ||
| @NotNull final MapViewsManager< G, A, R > | mapViewsManager | ||
| ) |
Creates a new instance.
| mapViewManager | all open map views |
| mapManager | the map manager to use |
| mapImageCache | the map image cache to use |
| mapViewsManager | the map views |
Definition at line 199 of file MapDesktop.java.
|
private |
Activates and raises the given map view.
| mapView | the map view |
Definition at line 313 of file MapDesktop.java.
Referenced by net.sf.gridarta.gui.mapdesktop.MapDesktop< G, A, R >.updateFocus().
Here is the caller graph for this function:
|
private |
Adds the map view.
| mapView | the map view to add |
Definition at line 260 of file MapDesktop.java.
| void net.sf.gridarta.gui.mapdesktop.MapDesktop< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.addWindowAction | ( | @NotNull final JMenu | menu, |
| @NotNull final MapView< G, A, R > | mapView, | ||
| final int | index | ||
| ) |
Adds an action for selecting this window to a menu.
| menu | the menu to add the action to |
| mapView | the map view to add |
| index | the index of the menu entry |
Definition at line 302 of file MapDesktop.java.
Here is the caller graph for this function:
|
private |
Performs or checks availability of the "next window" action.
| performAction | whether the action should be performed |
Definition at line 422 of file MapDesktop.java.
Referenced by net.sf.gridarta.gui.mapdesktop.MapDesktop< G, A, R >.nextWindow(), and net.sf.gridarta.gui.mapdesktop.MapDesktop< G, A, R >.refreshMenus().
Here is the caller graph for this function:
|
private |
Performs or checks availability of the "prev window" action.
| performAction | whether the action should be performed |
Definition at line 405 of file MapDesktop.java.
Referenced by net.sf.gridarta.gui.mapdesktop.MapDesktop< G, A, R >.prevWindow(), and net.sf.gridarta.gui.mapdesktop.MapDesktop< G, A, R >.refreshMenus().
Here is the caller graph for this function:
|
private |
Notifies that the given map view is now set as the current one.
| mapView | the new current map view |
Definition at line 335 of file MapDesktop.java.
Here is the caller graph for this function:
|
private |
Notifies that the map views focus is lost it is inserted as the second in line to the map view vector.
| mapView | the map view who lost the focus |
Definition at line 326 of file MapDesktop.java.
Here is the caller graph for this function:| void net.sf.gridarta.gui.mapdesktop.MapDesktop< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.nextWindow | ( | ) |
Gives focus to the previous window.
Definition at line 382 of file MapDesktop.java.
| void net.sf.gridarta.gui.mapdesktop.MapDesktop< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.prevWindow | ( | ) |
Gives focus to the next window.
Definition at line 374 of file MapDesktop.java.
|
private |
Enables/disables the actions according to the current state.
Definition at line 389 of file MapDesktop.java.
Referenced by net.sf.gridarta.gui.mapdesktop.MapDesktop< G, A, R >.addMapView(), net.sf.gridarta.gui.mapdesktop.MapDesktop< G, A, R >.removeMapView(), and net.sf.gridarta.gui.mapdesktop.MapDesktop< G, A, R >.setAction().
Here is the caller graph for this function:
|
private |
Removes (closes) the map view.
| mapView | the map view to be removed (closed) |
Definition at line 235 of file MapDesktop.java.
| void net.sf.gridarta.gui.mapdesktop.MapDesktop< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.setAction | ( | @NotNull final Action | action, |
| @NotNull final String | name | ||
| ) |
Sets the Action instance for this editor action.
| action | the action instance |
| name | the name of the action |
Implements net.sf.gridarta.utils.EditorAction.
Definition at line 435 of file MapDesktop.java.
| void net.sf.gridarta.gui.mapdesktop.MapDesktop< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.setCurrentMapView | ( | @NotNull final MapView< G, A, R > | mapView | ) |
Sets the given level view as the current one.
| mapView | the new current level view |
Definition at line 213 of file MapDesktop.java.
Referenced by net.sf.gridarta.gui.mapdesktop.WindowAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.actionPerformed(), and net.sf.gridarta.gui.mapdesktop.MapDesktop< G, A, R >.addMapView().
Here is the caller graph for this function:
|
private |
Updates the focus to the first non-iconified map window.
| careAboutIconification |
Definition at line 346 of file MapDesktop.java.
Referenced by net.sf.gridarta.gui.mapdesktop.MapDesktop< G, A, R >.doNextWindow(), net.sf.gridarta.gui.mapdesktop.MapDesktop< G, A, R >.doPrevWindow(), net.sf.gridarta.gui.mapdesktop.MapDesktop< G, A, R >.MapDesktop(), net.sf.gridarta.gui.mapdesktop.MapDesktop< G, A, R >.mapViewFocusLostNotify(), net.sf.gridarta.gui.mapdesktop.MapDesktop< G, A, R >.removeMapView(), and net.sf.gridarta.gui.mapdesktop.MapDesktop< G, A, R >.setCurrentMapView().
Here is the caller graph for this function:
|
private |
Updates the frame icon to the current icon image.
| mapView | the map view to update |
Definition at line 288 of file MapDesktop.java.
Referenced by net.sf.gridarta.gui.mapdesktop.MapDesktop< G, A, R >.addMapView().
Here is the caller graph for this function:
|
staticprivate |
The action builder.
Definition at line 72 of file MapDesktop.java.
|
private |
The action for "next window".
Definition at line 113 of file MapDesktop.java.
|
private |
The action for "prev window".
Definition at line 107 of file MapDesktop.java.
|
staticprivate |
The Logger for printing log messages.
Definition at line 66 of file MapDesktop.java.
|
private |
The MapImageCache to use.
Definition at line 95 of file MapDesktop.java.
Referenced by net.sf.gridarta.gui.mapdesktop.MapDesktop< G, A, R >.MapDesktop().
|
private |
The MapImageCacheListener registered to mapImageCache.
Definition at line 180 of file MapDesktop.java.
|
private |
The MapManager to use.
Definition at line 89 of file MapDesktop.java.
Referenced by net.sf.gridarta.gui.mapdesktop.MapDesktop< G, A, R >.addMapView(), and net.sf.gridarta.gui.mapdesktop.MapDesktop< G, A, R >.MapDesktop().
|
private |
The MapManagerListener attached to mapManager.
Definition at line 133 of file MapDesktop.java.
|
private |
The MapViewFrameListeners associated with MapViews.
Maps map view to listener. UnnecessarilyQualifiedInnerClassAccess
Definition at line 127 of file MapDesktop.java.
|
private |
All open map views.
Definition at line 83 of file MapDesktop.java.
Referenced by net.sf.gridarta.gui.mapdesktop.MapDesktop< G, A, R >.MapDesktop().
|
private |
The MapViewsListener attached to all existing MapControls for maps.
Definition at line 162 of file MapDesktop.java.
|
private |
The MapViewsManager.
Definition at line 101 of file MapDesktop.java.
Referenced by net.sf.gridarta.gui.mapdesktop.MapDesktop< G, A, R >.MapDesktop().
|
staticprivate |
The serial version UID.
Definition at line 77 of file MapDesktop.java.
|
private |
The actions to select windows.
Definition at line 119 of file MapDesktop.java.