20 package net.sf.gridarta.action;
22 import java.awt.Point;
23 import java.util.IdentityHashMap;
24 import java.util.List;
26 import javax.swing.Action;
39 import net.
sf.japi.swing.action.ActionMethod;
40 import org.jetbrains.annotations.NotNull;
41 import org.jetbrains.annotations.Nullable;
70 public void mapGridChanged(@NotNull
final MapGridEvent e) {
75 public void mapGridResized(@NotNull
final MapGridEvent e) {
121 if (selectedSquares.isEmpty()) {
128 final Point point =
new Point();
131 final Map<MapSquare<G, A, R>, Void> mapSquaresToShrink =
new IdentityHashMap<>();
134 for (
int dy = -1; dy <= 1; dy++) {
135 for (
int dx = -1; dx <= 1; dx++) {
136 if (dx != 0 || dy != 0) {
137 mapSquare.getMapLocation(point, dx, dy);
139 mapSquaresToShrink.put(mapSquare,
null);
147 mapSquare.getMapLocation(point);