Enum Class Grid.LabelPosition

java.lang.Object
java.lang.Enum<Grid.LabelPosition>
com.esri.arcgisruntime.mapping.view.Grid.LabelPosition
All Implemented Interfaces:
Serializable, Comparable<Grid.LabelPosition>, Constable
Enclosing class:
Grid

public static enum Grid.LabelPosition extends Enum<Grid.LabelPosition>
Represents options for positioning grid labels on the MapView.

GEOGRAPHIC positioning means labels are anchored to a geographical position on the map, whereas the remaining enum values are screen-positioned, with the labels anchored relative to the edge of the map.

Since:
100.0.0
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Labels along x-axis are anchored to the top and bottom side of the MapView, while labels along y-axis are anchored to left and right side of the MapView.
    Labels along x-axis are anchored to the bottom side of the MapView and labels along y-axis are anchored to left side of the MapView.
    Labels along x-axis are anchored to the bottom side of the MapView and labels along y-axis are anchored to right side of the MapView.
    Labels along x-axis and y-axis are anchored to center of MapView.
    Labels are anchored to a geographical position on the MapView.
    Labels along x-axis are anchored to the top side of the MapView and labels along y-axis are anchored to left side of the MapView.
    Labels along x-axis are anchored to the top side of the MapView and labels along y-axis are anchored to right side of the map MapView.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • GEOGRAPHIC

      public static final Grid.LabelPosition GEOGRAPHIC
      Labels are anchored to a geographical position on the MapView.

      Default labeling position for all grid types.

      Since:
      100.0.0
    • BOTTOM_LEFT

      public static final Grid.LabelPosition BOTTOM_LEFT
      Labels along x-axis are anchored to the bottom side of the MapView and labels along y-axis are anchored to left side of the MapView.
      Since:
      100.0.0
    • TOP_LEFT

      public static final Grid.LabelPosition TOP_LEFT
      Labels along x-axis are anchored to the top side of the MapView and labels along y-axis are anchored to left side of the MapView.
      Since:
      100.0.0
    • BOTTOM_RIGHT

      public static final Grid.LabelPosition BOTTOM_RIGHT
      Labels along x-axis are anchored to the bottom side of the MapView and labels along y-axis are anchored to right side of the MapView.
      Since:
      100.0.0
    • TOP_RIGHT

      public static final Grid.LabelPosition TOP_RIGHT
      Labels along x-axis are anchored to the top side of the MapView and labels along y-axis are anchored to right side of the map MapView.
      Since:
      100.0.0
    • CENTER

      public static final Grid.LabelPosition CENTER
      Labels along x-axis and y-axis are anchored to center of MapView.
      Since:
      100.0.0
    • ALL_SIDES

      public static final Grid.LabelPosition ALL_SIDES
      Labels along x-axis are anchored to the top and bottom side of the MapView, while labels along y-axis are anchored to left and right side of the MapView.
      Since:
      100.0.0
  • Method Details

    • values

      public static Grid.LabelPosition[] 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 Grid.LabelPosition 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