public class MapUtil extends java.lang.Object implements MapConstants
CALIFORNIA, CALIFORNIA_COLOR, HEARTLAND, HEARTLAND_COLOR, MOUNTAIN, MOUNTAIN_COLOR, NORTHERN_CRESCENT, NORTHERN_CRESCENT_COLOR, NORTHERN_PLAINS, NORTHERN_PLAINS_COLOR, SELECT_RADIUS, SOUTHEAST, SOUTHEAST_COLOR, SOUTHERN_PLAINS, SOUTHERN_PLAINS_COLOR, UNSELECT_RADIUS| Constructor and Description |
|---|
MapUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
enumRegionToRegionId(EnumRegion enumRegion)
Converts an enum region to it's String ID representation (defined in MapConstants).
|
static javafx.scene.paint.Color |
getRegionColor(EnumRegion enumRegion)
Gets the color that should be used for the default state of a map region
|
static EnumRegion |
regionIdToEnumRegion(java.lang.String id)
Converts a string ID representation of a US region (defined in MapConstants) to it's EnumRegion equivalent
|
public static EnumRegion regionIdToEnumRegion(java.lang.String id)
id - String ID representation of the regionpublic static java.lang.String enumRegionToRegionId(EnumRegion enumRegion)
enumRegion - The EnumRegion representation of the regionpublic static javafx.scene.paint.Color getRegionColor(EnumRegion enumRegion)
enumRegion - region to retrieve color from