Enum SunMoonCalculator.TWILIGHT

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      BLUE_HOUR
      The standard value of 34' for the refraction at the local horizon.
      GOLDEN_HOUR  
      HORIZON_34arcmin  
      TWILIGHT_ASTRONOMICAL
      Event ID for calculation of rising and setting times for astronomical twilight.
      TWILIGHT_CIVIL
      Event ID for calculation of rising and setting times for civil twilight.
      TWILIGHT_NAUTICAL
      Event ID for calculation of rising and setting times for nautical twilight.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static SunMoonCalculator.TWILIGHT valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static SunMoonCalculator.TWILIGHT[] 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

      • TWILIGHT_ASTRONOMICAL

        public static final SunMoonCalculator.TWILIGHT TWILIGHT_ASTRONOMICAL
        Event ID for calculation of rising and setting times for astronomical twilight. In this case, the calculated time will be the time when the center of the object is at -18 degrees of geometrical elevation below the astronomical horizon. At this time astronomical observations are possible because the sky is dark enough.
      • TWILIGHT_NAUTICAL

        public static final SunMoonCalculator.TWILIGHT TWILIGHT_NAUTICAL
        Event ID for calculation of rising and setting times for nautical twilight. In this case, the calculated time will be the time when the center of the object is at -12 degrees of geometric elevation below the astronomical horizon.
      • TWILIGHT_CIVIL

        public static final SunMoonCalculator.TWILIGHT TWILIGHT_CIVIL
        Event ID for calculation of rising and setting times for civil twilight. In this case, the calculated time will be the time when the center of the object is at -6 degrees of geometric elevation below the astronomical horizon.
      • BLUE_HOUR

        public static final SunMoonCalculator.TWILIGHT BLUE_HOUR
        The standard value of 34' for the refraction at the local horizon.
    • Method Detail

      • values

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

        public static SunMoonCalculator.TWILIGHT 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