 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.gui.dialog.shrinkmapsize;
22 import java.awt.Point;
31 import org.junit.Assert;
32 import org.junit.Test;
37 @SuppressWarnings(
"JavaDoc")
An Archetype implementation for testing purposes.
void setCursorLocation(@NotNull Point point)
Sets the cursor location.
MapGrid getMapGrid()
Returns the MapGrid of this view.
A getMapArchObject()
Returns the Map Arch Object with the meta information about the map.
Base package of all Gridarta classes.
A GameObject implementation for testing purposes.
static MapView< TestGameObject, TestMapArchObject, TestArchetype > newMapView(@NotNull final MapControl< TestGameObject, TestMapArchObject, TestArchetype > mapControl)
Creates a new MapView instance.
Graphical User Interface of Gridarta.
MapCursor< G, A, R > getMapCursor()
Returns the MapCursor of this view.
Helper class for creating MapControl instances for regression tests.
GameObjects are the objects based on Archetypes found on maps.
Point getLocation()
Get position of cursor.
A map view consists of a map grid and a map cursor, and is attached to a map control.
static final int SHRINK_SOUTH
Flag value: remove empty space from south border.
static final int SHRINK_EAST
Flag value: remove empty space from east border.
void shrinkMap_cursorInClippedOffArea_cursorIsMoved()
Helper class for creating MapControl instances for regression tests.
Base classes for rendering maps.
MapControl< TestGameObject, TestMapArchObject, TestArchetype > newMapControl(@Nullable final MapFile mapFile, @NotNull final String mapName, @NotNull final Size2D mapSize)
Creates a new map control.
Currently nothing more than a marker interface for unification.
MapModel< G, A, R > getMapModel()
Returns the map model.
A MapArchObject implementation for testing purposes.
The class Size2D represents a 2d rectangular area.
Regression tests for ShrinkMapSizeUtils.
Utility class to remove empty squares from a map's border.
static void shrinkMap(@NotNull final MapModel<?, ?, ?> mapModel, final int shrinkFlags)
Removes empty squares from a map's border.