java.lang.Object
impl.com.flexganttfx.skin.util.AgendaHelper
public final class AgendaHelper extends Object
A couple of utility methods used for the
AgendaLayout.-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAgendaHelper.AgendaLineLocationStores information about an agenda line location. -
Method Summary
Modifier and Type Method Description static List<AgendaHelper.AgendaLineLocation>getLineLocations(AgendaLayout layout, double yOffset, double height)Returns a list of agenda line locations for the givenAgendaLayoutinstance, y offset, and row / line height.static LocalTimegetTimeAt(double y, double availableHeight, LocalTime startTime, LocalTime endTime)Returns the time at the given y-coordinate within the given height and time range.
-
Method Details
-
getTimeAt
public static LocalTime getTimeAt(double y, double availableHeight, LocalTime startTime, LocalTime endTime)Returns the time at the given y-coordinate within the given height and time range.- Parameters:
y- the location for which to calculate the timeavailableHeight- the available height of the row / line in pixelsstartTime- the start time of the displayed time rangeendTime- the end time of the displayed time range- Returns:
- the time at the given location
-
getLineLocations
public static List<AgendaHelper.AgendaLineLocation> getLineLocations(AgendaLayout layout, double yOffset, double height)Returns a list of agenda line locations for the givenAgendaLayoutinstance, y offset, and row / line height.- Parameters:
layout- the agenda layoutyOffset- the y-offset in pixelsheight- the available row / line height- Returns:
- a list of agenda line locations
-