Package org.shredzone.commons.suncalc
Interface SunTimes.Parameters
- All Superinterfaces:
Builder<SunTimes>
,GenericParameter<SunTimes.Parameters>
,LocationParameter<SunTimes.Parameters>
,TimeParameter<SunTimes.Parameters>
,WindowParameter<SunTimes.Parameters>
- Enclosing class:
- SunTimes
public static interface SunTimes.Parameters
extends GenericParameter<SunTimes.Parameters>, LocationParameter<SunTimes.Parameters>, TimeParameter<SunTimes.Parameters>, WindowParameter<SunTimes.Parameters>, Builder<SunTimes>
Collects all parameters for
SunTimes
.-
Method Summary
Modifier and TypeMethodDescriptiontwilight
(double angle) Sets the desired elevation angle of the sun.twilight
(SunTimes.Twilight twilight) Sets theSunTimes.Twilight
mode.Methods inherited from interface org.shredzone.commons.suncalc.param.GenericParameter
copy
Methods inherited from interface org.shredzone.commons.suncalc.param.LocationParameter
at, at, elevation, elevationFt, height, heightFt, latitude, latitude, longitude, longitude, sameLocationAs
Methods inherited from interface org.shredzone.commons.suncalc.param.TimeParameter
localTime, midnight, now, on, on, on, on, on, on, on, on, plusDays, sameTimeAs, timezone, timezone, timezone, today, tomorrow, utc
Methods inherited from interface org.shredzone.commons.suncalc.param.WindowParameter
forward, fullCycle, limit, oneDay, reverse, sameWindowAs
-
Method Details
-
twilight
Sets theSunTimes.Twilight
mode.Defaults to
SunTimes.Twilight.VISUAL
.- Parameters:
twilight
-SunTimes.Twilight
mode to be used.- Returns:
- itself
-
twilight
Sets the desired elevation angle of the sun. The sunrise and sunset times are referring to the moment when the center of the sun passes this angle.- Parameters:
angle
- Geocentric elevation angle, in degrees.- Returns:
- itself
-