Enum Class MgrsGrid.LabelUnit

java.lang.Object
java.lang.Enum<MgrsGrid.LabelUnit>
com.esri.arcgisruntime.mapping.view.MgrsGrid.LabelUnit
All Implemented Interfaces:
Serializable, Comparable<MgrsGrid.LabelUnit>, Constable
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
  • Enum Constant Details

    • 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
    • METERS

      public static final MgrsGrid.LabelUnit METERS
      Labels are displayed in meters.
      Since:
      100.0.0
  • Method Details

    • values

      public static MgrsGrid.LabelUnit[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MgrsGrid.LabelUnit valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null