 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.gui.map;
22 import java.util.HashMap;
30 import org.jetbrains.annotations.NotNull;
31 import org.jetbrains.annotations.Nullable;
44 private final Map<MapView<G, A, R>, D>
dialogs =
new HashMap<>();
82 final D oldDialog =
dialogs.get(mapView);
83 if (oldDialog !=
null) {
101 dialog =
dialogs.remove(mapView);
102 if (dialog ==
null) {
122 protected abstract void activate(@NotNull D dialog);
128 protected abstract void dispose(@NotNull D dialog);
void showDialog(final MapView< G, A, R > mapView)
Show a dialog for positioning the cursor of a map.
Base package of all Gridarta classes.
final MapViewManagerListener< G, A, R > mapViewManagerListener
The map view manager listener to detect closed map views.
abstract D allocate(@NotNull MapView< G, A, R > mapView)
Creates a new instance.
final Map< MapView< G, A, R >, D > dialogs
Dialog for each map view.
Interface for listeners interested in events related to {} instances.
abstract void activate(@NotNull D dialog)
Activates an existing instance.
Reflects a game object (object on a map).
Graphical User Interface of Gridarta.
GameObjects are the objects based on Archetypes found on maps.
abstract void dispose(@NotNull D dialog)
Destroys an instance.
Interface for MapArchObjects.
A map view consists of a map grid and a map cursor, and is attached to a map control.
AbstractPerMapDialogManager(@NotNull final MapViewManager< G, A, R > mapViewManager)
Creates a new instance.
Maintains (dialog) instance associated to map view instances.
void disposeDialog(final MapView< G, A, R > mapView)
Dispose a dialog.
Base classes for rendering maps.