public static enum GridSpecification.CellPosition extends Enum<GridSpecification.CellPosition>
| Enum Constant and Description |
|---|
CenterOfCell
The coordinates give the center of the cell.
|
CornerOfCell
The coordinates given the lower-left corner of the cell
|
| Modifier and Type | Method and Description |
|---|---|
static GridSpecification.CellPosition |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GridSpecification.CellPosition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GridSpecification.CellPosition CenterOfCell
public static final GridSpecification.CellPosition CornerOfCell
public static GridSpecification.CellPosition[] values()
for (GridSpecification.CellPosition c : GridSpecification.CellPosition.values()) System.out.println(c);
public static GridSpecification.CellPosition valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2021. All rights reserved.