Klasse WeekendCalendar
java.lang.Object
com.flexganttfx.model.repository.ActivityRepositoryBase<WeekendCalendarActivity>
com.flexganttfx.model.calendar.CalendarBase<WeekendCalendarActivity>
com.flexganttfx.model.calendar.WeekendCalendar
- Alle implementierten Schnittstellen:
ActivityRepository<WeekendCalendarActivity>,Calendar<WeekendCalendarActivity>,EventTarget
A calendar specialized on returning activities that represent weekend days
(default: saturday, sunday). The days that are considered weekend days can be
configured by calling
setWeekendDays(DayOfWeek...).- Seit:
- 1.0
-
Eigenschaftsübersicht
Von Klasse geerbte Eigenschaften com.flexganttfx.model.calendar.CalendarBase
name, visible -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetActivities(Layer layer, Instant startTime, Instant endTime, TemporalUnit temporalUnit, ZoneId zoneId) Returns an iterator for iterating over all activities found for the given layer and time interval.Returns the days of the week that are to be considered weekend days.protected booleanisSupportedUnit(TemporalUnit unit) Determines if weekends will be shown for the given temporal unit.voidsetWeekendDays(DayOfWeek... days) Sets the days of the week that are considered to be a weekend day.Von Klasse geerbte Methoden com.flexganttfx.model.calendar.CalendarBase
getName, isVisible, nameProperty, setName, setVisible, visiblePropertyVon Klasse geerbte Methoden com.flexganttfx.model.repository.ActivityRepositoryBase
addEventHandler, buildEventDispatchChain, fireEvent, getEarliestTimeUsed, getLatestTimeUsed, removeEventHandlerVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden com.flexganttfx.model.ActivityRepository
addEventHandler, getEarliestTimeUsed, getLatestTimeUsed, removeEventHandlerVon Schnittstelle geerbte Methoden javafx.event.EventTarget
buildEventDispatchChain
-
Konstruktordetails
-
WeekendCalendar
public WeekendCalendar()Constructs a new weekend calendar.- Seit:
- 1.0
-
-
Methodendetails
-
setWeekendDays
Sets the days of the week that are considered to be a weekend day. By defaultDayOfWeek.SATURDAYandDayOfWeek.SUNDAYare considered weekend days.- Parameter:
days- the days of the week that are to be considered weekend days- Seit:
- 1.0
-
getWeekendDays
Returns the days of the week that are to be considered weekend days. By defaultDayOfWeek.SATURDAYandDayOfWeek.SUNDAYare considered weekend days.- Gibt zurück:
- the days of the week used as weekend days
- Seit:
- 1.0
-
getActivities
public Iterator<WeekendCalendarActivity> getActivities(Layer layer, Instant startTime, Instant endTime, TemporalUnit temporalUnit, ZoneId zoneId) Beschreibung aus Schnittstelle kopiert:ActivityRepositoryReturns an iterator for iterating over all activities found for the given layer and time interval. This method has to return very fast as it gets called many times during rendering of the chart. A slow implementation will have a direct impact on scrolling / rendering performance.- Parameter:
layer- the layer for which to return the activitiesstartTime- the start time of the time interval for which to return the activitiesendTime- the end time of the time interval for which to return the activitiestemporalUnit- the temporal unit currently displayed in the datelinezoneId- the timezone currently displayed in the dateline- Gibt zurück:
- the activities on the given layer and in the given time interval
-
isSupportedUnit
Determines if weekends will be shown for the given temporal unit. By default we only show weekends forChronoUnit.DAYSandChronoUnit.WEEKS. To support more units simply override this method in a subclass.- Parameter:
unit- the unit to check- Gibt zurück:
- true if weekend information will be shown in the Gantt chart
- Seit:
- 1.0
-