- java.lang.Object
-
- java.lang.Enum<SunMoonCalculator.TWILIGHT>
-
- eu.hansolo.tilesfx.tools.SunMoonCalculator.TWILIGHT
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<SunMoonCalculator.TWILIGHT>
- Enclosing class:
- SunMoonCalculator
public static enum SunMoonCalculator.TWILIGHT extends java.lang.Enum<SunMoonCalculator.TWILIGHT>
The set of twilights to calculate (types of rise/set events).
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLUE_HOURThe standard value of 34' for the refraction at the local horizon.GOLDEN_HOURHORIZON_34arcminTWILIGHT_ASTRONOMICALEvent ID for calculation of rising and setting times for astronomical twilight.TWILIGHT_CIVILEvent ID for calculation of rising and setting times for civil twilight.TWILIGHT_NAUTICALEvent 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.TWILIGHTvalueOf(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.
-
-
-
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.
-
HORIZON_34arcmin
public static final SunMoonCalculator.TWILIGHT HORIZON_34arcmin
-
GOLDEN_HOUR
public static final SunMoonCalculator.TWILIGHT GOLDEN_HOUR
-
-
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 namejava.lang.NullPointerException- if the argument is null
-
-