| Package | Description |
|---|---|
| de.gsi.chart.renderer.spi.hexagon |
| Modifier and Type | Method and Description |
|---|---|
static HexagonMap.Direction |
GridPosition.getDirectionFromNumber(int i) |
HexagonMap.Direction |
GridPosition.getDirectionTo(GridPosition otherPosition) |
HexagonMap.Direction |
Hexagon.getDirectionTo(Hexagon target)
Finds the direction (NORTHWEST, NORTHEAST, EAST, SOUTHEAST, SOUTHWEST or WEST) If target is a neighbour, then it
is quite simple.
|
static HexagonMap.Direction |
HexagonMap.Direction.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HexagonMap.Direction[] |
HexagonMap.Direction.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Hexagon.drawHexagon(GraphicsContext gc,
HexagonMap.Direction... directions) |
GridPosition |
GridPosition.getNeighborPosition(HexagonMap.Direction direction)
Finds the adjacent position in the specified direction from this position
|
Hexagon |
Hexagon.getNeighbour(HexagonMap.Direction direction)
Finds the neighbour of this Hexagon
|
Copyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.