|
Gridarta Editor
|
Collaboration diagram for net.sf.gridarta.model.mapgrid.MapGridTest:Public Member Functions | |
| void | testSelectionBorderUpdates () |
| Test case for selection border updates. More... | |
Static Private Member Functions | |
| static void | checkSelectionBorder (final MapGrid mapGrid, final String expectedBorder) |
| Checks that the map border selection flags of a MapGrid instance is as expected. More... | |
Test for MapGrid.
Definition at line 31 of file MapGridTest.java.
|
staticprivate |
Checks that the map border selection flags of a MapGrid instance is as expected.
The expected border selection is represented as
. Each square is represented as one hex digit character; 1=north, 2=east, 4=south, 8=east border is set.
| mapGrid | the map grid |
| expectedBorder | the expected border selection |
Definition at line 86 of file MapGridTest.java.
References net.sf.gridarta.model.mapgrid.MapGrid.getFlags(), net.sf.gridarta.utils.Size2D.getHeight(), net.sf.gridarta.model.mapgrid.MapGrid.getSize(), net.sf.gridarta.utils.Size2D.getWidth(), net.sf.gridarta.model.mapgrid.MapGrid.GRID_FLAG_SELECTION_EAST, net.sf.gridarta.model.mapgrid.MapGrid.GRID_FLAG_SELECTION_NORTH, net.sf.gridarta.model.mapgrid.MapGrid.GRID_FLAG_SELECTION_SOUTH, and net.sf.gridarta.model.mapgrid.MapGrid.GRID_FLAG_SELECTION_WEST.
Referenced by net.sf.gridarta.model.mapgrid.MapGridTest.testSelectionBorderUpdates().
Here is the call graph for this function:
Here is the caller graph for this function:| void net.sf.gridarta.model.mapgrid.MapGridTest.testSelectionBorderUpdates | ( | ) |
Test case for selection border updates.
Definition at line 37 of file MapGridTest.java.
References net.sf.gridarta.model.mapgrid.SelectionMode.ADD, net.sf.gridarta.model.mapgrid.MapGridTest.checkSelectionBorder(), net.sf.gridarta.model.mapgrid.SelectionMode.FLIP, net.sf.gridarta.model.mapgrid.MapGrid.resize(), net.sf.gridarta.model.mapgrid.MapGrid.select(), net.sf.gridarta.model.mapgrid.MapGrid.selectArea(), and net.sf.gridarta.model.mapgrid.SelectionMode.SUB.
Here is the call graph for this function: