Enum MgrsGrid.LabelUnit
- java.lang.Object
-
- java.lang.Enum<MgrsGrid.LabelUnit>
-
- com.esri.arcgisruntime.mapping.view.MgrsGrid.LabelUnit
-
- All Implemented Interfaces:
Serializable
,Comparable<MgrsGrid.LabelUnit>
- Enclosing class:
- MgrsGrid
public static enum MgrsGrid.LabelUnit extends Enum<MgrsGrid.LabelUnit>
Represents the possible grid label distance units that can be displayed to grid.X-axis value is calculated from bottom side of grid square and y-axis value is calculated from left side of grid square.
- Since:
- 100.0.0 for JavaSE and 100.2.0 for Android
-
-
Enum Constant Summary
Enum Constants Enum Constant Description KILOMETERS_METERS
Labels are displayed in kilometers or meters based on MapView's scale.METERS
Labels are displayed in meters.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MgrsGrid.LabelUnit
valueOf(String name)
Returns the enum constant of this type with the specified name.static MgrsGrid.LabelUnit[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
KILOMETERS_METERS
public static final MgrsGrid.LabelUnit KILOMETERS_METERS
Labels are displayed in kilometers or meters based on MapView's scale.Default labeling format.
- Since:
- 100.0.0 for JavaSE and 100.2.0 for Android
-
METERS
public static final MgrsGrid.LabelUnit METERS
Labels are displayed in meters.- Since:
- 100.0.0 for JavaSE and 100.2.0 for Android
-
-
Method Detail
-
values
public static MgrsGrid.LabelUnit[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MgrsGrid.LabelUnit c : MgrsGrid.LabelUnit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MgrsGrid.LabelUnit valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-