Calendar Layer


Every Gantt chart can have a calendar model attached to it. This model returns calendar entries, which represent things like weekends or holidays. These entries are visualized by the calendar layer via the help of calendar entry renderers. A renderer component will always reach from the very top of the layer container to the very bottom. Its start location (x-coordinate) and its width are dependent on the start and end time of the calendar entry that they represent. The layer has been setup to gray out Saturdays and Sundays (weekends).

Screenshot_11

Relevant API


void CalendarLayer.setCalendarEntryRenderer(Class entryType, ICalendarEntryRenderer renderer);
ICalendarModel AbstractGanttChart.getCalendarModel();
TimeGranularityCalendarModel
WeekendCalendarEntry
HolidayCalendarEntry