Klasse AgendaHelper
java.lang.Object
impl.com.flexganttfx.skin.util.AgendaHelper
A couple of utility methods used for the
AgendaLayout.-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic final classStores information about an agenda line location. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic 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 LocalTimeReturns the time at the given y-coordinate within the given height and time range.
-
Methodendetails
-
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.- Parameter:
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- Gibt zurück:
- 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.- Parameter:
layout- the agenda layoutyOffset- the y-offset in pixelsheight- the available row / line height- Gibt zurück:
- a list of agenda line locations
-