public final class AgendaHelper extends Object
AgendaLayout
.Modifier and Type | Class and Description |
---|---|
static class |
AgendaHelper.AgendaLineLocation
Stores information about an agenda line location.
|
Modifier and Type | Method and Description |
---|---|
static List<AgendaHelper.AgendaLineLocation> |
getLineLocations(AgendaLayout layout,
double yOffset,
double height)
Returns a list of agenda line locations for the given
AgendaLayout instance, y offset, and row / line height. |
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.
|
public static LocalTime getTimeAt(double y, double availableHeight, LocalTime startTime, LocalTime endTime)
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 rangepublic static List<AgendaHelper.AgendaLineLocation> getLineLocations(AgendaLayout layout, double yOffset, double height)
AgendaLayout
instance, y offset, and row / line height.layout
- the agenda layoutyOffset
- the y-offset in pixelsheight
- the available row / line heightCopyright © 2020 Dirk Lemmermann Software & Consulting. All rights reserved.