|
Gridarta Editor
|
Maintains (dialog) instance associated to map view instances. More...
Inheritance diagram for net.sf.gridarta.gui.map.AbstractPerMapDialogManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, D >:
Collaboration diagram for net.sf.gridarta.gui.map.AbstractPerMapDialogManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, D >:Public Member Functions | |
| void | disposeDialog (final MapView< G, A, R > mapView) |
| Dispose a dialog. More... | |
| void | showDialog (final MapView< G, A, R > mapView) |
| Show a dialog for positioning the cursor of a map. More... | |
Protected Member Functions | |
| AbstractPerMapDialogManager (@NotNull final MapViewManager< G, A, R > mapViewManager) | |
| Creates a new instance. More... | |
| abstract void | activate (@NotNull D dialog) |
| Activates an existing instance. More... | |
| abstract D | allocate (@NotNull MapView< G, A, R > mapView) |
| Creates a new instance. More... | |
| abstract void | dispose (@NotNull D dialog) |
| Destroys an instance. More... | |
Private Attributes | |
| final Map< MapView< G, A, R >, D > | dialogs = new HashMap<>() |
| Dialog for each map view. More... | |
| final MapViewManagerListener< G, A, R > | mapViewManagerListener |
| The map view manager listener to detect closed map views. More... | |
Maintains (dialog) instance associated to map view instances.
This class makes sure that for each map view no more than one go location dialog exists.
Definition at line 39 of file AbstractPerMapDialogManager.java.
|
protected |
Creates a new instance.
| mapViewManager | the view map manager |
Definition at line 72 of file AbstractPerMapDialogManager.java.
|
abstractprotected |
Activates an existing instance.
| dialog | the instance |
Referenced by net.sf.gridarta.gui.map.AbstractPerMapDialogManager< G, A, R, net.sf.gridarta.gui.dialog.golocation.GoLocationDialog< G, A, R > >.disposeDialog(), and net.sf.gridarta.gui.map.AbstractPerMapDialogManager< G, A, R, net.sf.gridarta.gui.dialog.golocation.GoLocationDialog< G, A, R > >.showDialog().
Here is the caller graph for this function:
|
abstractprotected |
Creates a new instance.
| mapView | the map view for the new instance |
Referenced by net.sf.gridarta.gui.map.AbstractPerMapDialogManager< G, A, R, net.sf.gridarta.gui.dialog.golocation.GoLocationDialog< G, A, R > >.disposeDialog(), and net.sf.gridarta.gui.map.AbstractPerMapDialogManager< G, A, R, net.sf.gridarta.gui.dialog.golocation.GoLocationDialog< G, A, R > >.showDialog().
Here is the caller graph for this function:
|
abstractprotected |
Destroys an instance.
| dialog | the instance |
Here is the caller graph for this function:| void net.sf.gridarta.gui.map.AbstractPerMapDialogManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, D >.disposeDialog | ( | final MapView< G, A, R > | mapView | ) |
Dispose a dialog.
| mapView | the map view to dispose the dialog of; do nothing if no dialog exists |
Definition at line 98 of file AbstractPerMapDialogManager.java.
Here is the caller graph for this function:| void net.sf.gridarta.gui.map.AbstractPerMapDialogManager< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R, D >.showDialog | ( | final MapView< G, A, R > | mapView | ) |
Show a dialog for positioning the cursor of a map.
| mapView | the view map for cursor positioning |
Definition at line 80 of file AbstractPerMapDialogManager.java.
Here is the caller graph for this function:
|
private |
Dialog for each map view.
Definition at line 44 of file AbstractPerMapDialogManager.java.
Referenced by net.sf.gridarta.gui.map.AbstractPerMapDialogManager< G, A, R, net.sf.gridarta.gui.dialog.golocation.GoLocationDialog< G, A, R > >.disposeDialog(), and net.sf.gridarta.gui.map.AbstractPerMapDialogManager< G, A, R, net.sf.gridarta.gui.dialog.golocation.GoLocationDialog< G, A, R > >.showDialog().
|
private |
The map view manager listener to detect closed map views.
Definition at line 49 of file AbstractPerMapDialogManager.java.