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.Twilightmode.Methods inherited from interface org.shredzone.commons.suncalc.param.GenericParameter
copyMethods inherited from interface org.shredzone.commons.suncalc.param.LocationParameter
at, at, elevation, elevationFt, height, heightFt, latitude, latitude, longitude, longitude, sameLocationAsMethods 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, utcMethods inherited from interface org.shredzone.commons.suncalc.param.WindowParameter
forward, fullCycle, limit, oneDay, reverse, sameWindowAs
-
Method Details
-
twilight
Sets theSunTimes.Twilightmode.Defaults to
SunTimes.Twilight.VISUAL.- Parameters:
twilight-SunTimes.Twilightmode 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
-