Enum GridType

    • Enum Constant Detail

      • TWENTY_DEGREE

        public static final GridType TWENTY_DEGREE
        Twenty Degree
      • TEN_DEGREE

        public static final GridType TEN_DEGREE
        Ten Degree
      • FIVE_DEGREE

        public static final GridType FIVE_DEGREE
        Five Degree
      • ONE_DEGREE

        public static final GridType ONE_DEGREE
        One Degree
      • THIRTY_MINUTE

        public static final GridType THIRTY_MINUTE
        Thirty Minute
      • FIFTEEN_MINUTE

        public static final GridType FIFTEEN_MINUTE
        Fifteen Minute
      • FIVE_MINUTE

        public static final GridType FIVE_MINUTE
        Five Minute
    • Method Detail

      • values

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

        public static GridType 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
      • getPrecision

        public double getPrecision()
        Get the precision in degrees
        Returns:
        precision degrees
      • getPrecision

        public static GridType getPrecision​(double value)
        Get the precision of the value in degrees
        Parameters:
        value - value in degrees
        Returns:
        precision grid type
      • lessPrecise

        public static Set<GridType> lessPrecise​(GridType type)
        Get the less precise (larger precision value) grid types
        Parameters:
        type - grid type
        Returns:
        grid types less precise
      • morePrecise

        public static Set<GridType> morePrecise​(GridType type)
        Get the more precise (smaller precision value) grid types
        Parameters:
        type - grid type
        Returns:
        grid types more precise