Enum Grid.LabelPosition

  • All Implemented Interfaces:
    Serializable, Comparable<Grid.LabelPosition>
    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 for JavaSE and 100.2.0 for Android
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      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.
      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.
      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.
      CENTER
      Labels along x-axis and y-axis are anchored to center of MapView.
      GEOGRAPHIC
      Labels are anchored to a geographical position on the MapView.
      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.
      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.
    • Enum Constant Detail

      • 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 for JavaSE and 100.2.0 for Android
      • 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 for JavaSE and 100.2.0 for Android
      • 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 for JavaSE and 100.2.0 for Android
      • 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 for JavaSE and 100.2.0 for Android
      • 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 for JavaSE and 100.2.0 for Android
      • CENTER

        public static final Grid.LabelPosition CENTER
        Labels along x-axis and y-axis are anchored to center of MapView.
        Since:
        100.0.0 for JavaSE and 100.2.0 for Android
      • 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 for JavaSE and 100.2.0 for Android
    • Method Detail

      • values

        public static Grid.LabelPosition[] 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 (Grid.LabelPosition c : Grid.LabelPosition.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Grid.LabelPosition 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 name
        NullPointerException - if the argument is null