20 package net.sf.gridarta.gui.dialog.shrinkmapsize;
22 import java.util.HashMap;
30 import org.jetbrains.annotations.NotNull;
31 import org.jetbrains.annotations.Nullable;
74 mapViewManager.addMapViewManagerListener(mapViewManagerListener);
84 if (oldDialog != null) {
90 dialogs.put(mapView, pane);
102 dialog = dialogs.remove(mapView);
103 if (dialog == null) {
Manager for ShrinkMapSizeDialog instances.
Graphical User Interface of Gridarta.
void showDialog(@NotNull final MapView< G, A, R > mapView)
Shows a dialog to shrink the map size.
final Map< MapView< G, A, R >, ShrinkMapSizeDialog< G, A, R > > dialogs
Dialog for each map view.
Base package of all Gridarta classes.
Reflects a game object (object on a map).
Dialog to ask which empty borders to remove from a map.
void disposeDialog(@NotNull final MapView< G, A, R > mapView)
Disposes a dialog.
GameObjects are the objects based on Archetypes found on maps.
Interface for listeners interested in events related to MapViewManager instances. ...
Base classes for rendering maps.
Window getDialog()
Returns the JDialog for this instance.
ShrinkMapSizeDialogManager(@NotNull final MapViewManager< G, A, R > mapViewManager)
Creates a new instance.
A map view consists of a map grid and a map cursor, and is attached to a map control.
final MapViewManagerListener< G, A, R > mapViewManagerListener
The map view manager listener to detect closed map views.
Interface for MapArchObjects.