public final class RectangularGridLayoutStrategy extends Object implements GridLayoutStrategy
HexagonalGrid which has a rectangular
shape.| Constructor and Description |
|---|
RectangularGridLayoutStrategy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkParameters(int gridHeight,
int gridWidth)
Checks whether the supplied parameters are valid for the given strategy.
|
Collection<Hexagon> |
createHexagons(HexagonalGridBuilder builder)
Creates the
Hexagon objects which fit in the shape
of the requested layout. |
public Collection<Hexagon> createHexagons(HexagonalGridBuilder builder)
GridLayoutStrategyHexagon objects which fit in the shape
of the requested layout.createHexagons in interface GridLayoutStrategybuilder - contains the data neededpublic boolean checkParameters(int gridHeight,
int gridWidth)
GridLayoutStrategycheckParameters in interface GridLayoutStrategyCopyright © 2016. All rights reserved.