20 package net.sf.gridarta.gui.mapmenu;
22 import java.util.IdentityHashMap;
24 import javax.swing.Action;
28 import org.jetbrains.annotations.NotNull;
59 private final Map<MapMenuEntryMap, MapMenuAction>
actions =
new IdentityHashMap<>();
65 private final Map<MapMenuEntryMap, Void>
keysToDelete =
new IdentityHashMap<>();
85 keysToDelete.put(mapMenuEntryMap, null);
95 actions.remove(mapMenuEntryMap);
107 keysToDelete.remove(mapMenuEntryMap);
108 final MapMenuAction existingAction = actions.get(mapMenuEntryMap);
110 if (existingAction == null) {
111 action =
new MapMenuAction(mapMenuEntryMap, mapViewsManager, fileControl);
112 actions.put(mapMenuEntryMap, action);
114 action = existingAction;
116 action.
update(mapImageCache);
Graphical User Interface of Gridarta.
Stores all existing MapViews.
Base package of all Gridarta classes.
Caches icon and preview images for map files.
Base classes for rendering maps.