• java.lang.Object
  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<RenderSize.Unit>
    Enclosing class:
    RenderSize

    public static enum RenderSize.Unit
    extends java.lang.Enum<RenderSize.Unit>

    Defines different units in which the size is described.

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      DENSITY_INDEPENDENT_PIXELS
      Size expressed in device independent pixels, meaning that on devices with different display resolutions and sizes it will represent approximately the same physical (in millimeters, inches, etc.) size.
      METERS
      Size expressed in meters, meaning it will stay constant relative to map content and change on the screen as the map is zoomed in and out.
      PIXELS
      Size expressed in physical pixels on the device screen.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static RenderSize.Unit valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static RenderSize.Unit[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

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

      • PIXELS

        public static final RenderSize.Unit PIXELS

        Size expressed in physical pixels on the device screen.

      • DENSITY_INDEPENDENT_PIXELS

        public static final RenderSize.Unit DENSITY_INDEPENDENT_PIXELS

        Size expressed in device independent pixels, meaning that on devices with different display resolutions and sizes it will represent approximately the same physical (in millimeters, inches, etc.) size.

      • METERS

        public static final RenderSize.Unit METERS

        Size expressed in meters, meaning it will stay constant relative to map content and change on the screen as the map is zoomed in and out.

    • Method Detail

      • values

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

        public static RenderSize.Unit valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null