Enum Constant and Description |
---|
MAGNETIC_UP |
NORTH_UP |
TRACK_UP |
UNDEFINED |
USER_DEFINED_UP |
Modifier and Type | Method and Description |
---|---|
static MapMode |
findFromIntent(java.lang.String intent) |
static MapMode |
findFromValue(int value) |
java.lang.String |
getIntent()
Gets the human readable full string representation of the MapMode
|
int |
getValue()
Gets the integer representation of the MapMode.
|
java.lang.String |
toString() |
static MapMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MapMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MapMode UNDEFINED
public static final MapMode TRACK_UP
public static final MapMode NORTH_UP
public static final MapMode MAGNETIC_UP
public static final MapMode USER_DEFINED_UP
public static MapMode[] values()
for (MapMode c : MapMode.values()) System.out.println(c);
public static MapMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()
public java.lang.String getIntent()
public java.lang.String toString()
toString
in class java.lang.Enum<MapMode>
public static MapMode findFromValue(int value)
value
- public static MapMode findFromIntent(java.lang.String intent)
intent
-