20 package net.sf.gridarta.gui.map.mapactions;
22 import java.awt.Point;
25 import org.junit.Assert;
26 import org.junit.Test;
31 @SuppressWarnings(
"JavaDoc")
static Point calculateNewCursorLocation(@NotNull final Point oldCursorLocation, @NotNull final Size2D mapSize, @NotNull final Direction direction)
Calculate the map cursor location for the new viewport.
void calculateNewCursorLocation_onSide_returnsNewCoordinate()
Base package of all Gridarta classes.
void calculateNewCursorLocation_inCorner_returnsNewCoordinate()
Regression tests for EnterMap.
Helper class for entering maps.
The class Size2D represents a 2d rectangular area.