public class AgendaLayout extends Layout
Note: Activities shown in agenda layout might be rendered several times. This
is, for example, the case when an activity spans several days.
Row.setLayout(Layout)
,
Row.getLineLayout(int)
,
LinesManager.getLineLayout(int)
Modifier and Type | Class and Description |
---|---|
static class |
AgendaLayout.LayoutStrategy
An enumerator for the different ways overlapping agenda entries can be
laid out.
|
Constructor and Description |
---|
AgendaLayout()
Constructs a new agenda layout instance.
|
Modifier and Type | Method and Description |
---|---|
javafx.beans.property.ObjectProperty<LocalTime> |
endTimeProperty()
Returns the property used for storing the end time of the agenda.
|
LocalTime |
getEndTime()
Returns the value of the
endTimeProperty() . |
AgendaLayout.LayoutStrategy |
getLayoutStrategy()
Returns the value of the
layoutStrategyProperty() . |
Duration |
getMinDuration()
Returns the value of the
minDurationProperty() . |
double |
getMinLineSpacing()
Returns the value of
minLineSpacingProperty() . |
double |
getOverlapOffset()
Returns the value of
overlapOffsetProperty() . |
LocalTime |
getStartTime()
Returns the value of the
startTimeProperty() . |
boolean |
isSupportingHorizontalCursorLine()
Determines if the UI should be able to show a horizontal cursor line.
|
javafx.beans.property.ObjectProperty<AgendaLayout.LayoutStrategy> |
layoutStrategyProperty()
The property used to store the strategy that will be applied when the
time intervals of activities in agenda layout intersect with each other.
|
javafx.beans.property.ObjectProperty<Duration> |
minDurationProperty()
A property used to store the minimum duration of activities in the agenda
layout.
|
javafx.beans.property.DoubleProperty |
minLineSpacingProperty()
Stores the minimum space between two hour lines.
|
javafx.beans.property.DoubleProperty |
overlapOffsetProperty()
A property used to store an offset value between 0 and .5 that is used to
indent activities when they overlap each other.
|
void |
setEndTime(LocalTime time)
Sets the value of
endTimeProperty() . |
void |
setLayoutStrategy(AgendaLayout.LayoutStrategy strategy)
Sets the value of the
layoutStrategyProperty() . |
void |
setMinDuration(Duration duration)
Sets the value of the
minDurationProperty() . |
void |
setMinLineSpacing(double min)
Sets the value of
minLineSpacingProperty() . |
void |
setOverlapOffset(double offset)
Sets the value of
overlapOffsetProperty() . |
void |
setStartTime(LocalTime time)
Sets the value of the
startTimeProperty() . |
javafx.beans.property.ObjectProperty<LocalTime> |
startTimeProperty()
Returns the property used for storing the start time of the agenda.
|
String |
toString() |
getPadding, paddingProperty, setPadding
public AgendaLayout()
public final javafx.beans.property.DoubleProperty minLineSpacingProperty()
public final void setMinLineSpacing(double min)
minLineSpacingProperty()
.min
- the minimum space between hour linespublic final double getMinLineSpacing()
minLineSpacingProperty()
.public final javafx.beans.property.ObjectProperty<LocalTime> startTimeProperty()
LocalTime.MIN
, which is equivalent to midnight.
public final LocalTime getStartTime()
startTimeProperty()
.public final void setStartTime(LocalTime time)
startTimeProperty()
.time
- the new agenda start timepublic final javafx.beans.property.ObjectProperty<LocalTime> endTimeProperty()
LocalTime.MAX
, which is equivalent to the time just
before midnight. public final LocalTime getEndTime()
endTimeProperty()
.public final void setEndTime(LocalTime time)
endTimeProperty()
.time
- the new agenda end timepublic final javafx.beans.property.ObjectProperty<Duration> minDurationProperty()
public final Duration getMinDuration()
minDurationProperty()
.public final void setMinDuration(Duration duration)
minDurationProperty()
.duration
- the new minimum duration of agenda activitiespublic final javafx.beans.property.ObjectProperty<AgendaLayout.LayoutStrategy> layoutStrategyProperty()
public final AgendaLayout.LayoutStrategy getLayoutStrategy()
layoutStrategyProperty()
.public final void setLayoutStrategy(AgendaLayout.LayoutStrategy strategy)
layoutStrategyProperty()
.strategy
- the layout strategy to usepublic final javafx.beans.property.DoubleProperty overlapOffsetProperty()
public final void setOverlapOffset(double offset)
overlapOffsetProperty()
. The value must be
between 0 and .5, which will be interpreted as a percentage of the width
of the agenda entries. A value of .5 indicates that half the width of an
entry will be overlapped by another one.offset
- the offset in pixelspublic final double getOverlapOffset()
overlapOffsetProperty()
.public boolean isSupportingHorizontalCursorLine()
Layout
ChartLayout
and the AgendaLayout
support this.isSupportingHorizontalCursorLine
in class Layout
Copyright © 2020 Dirk Lemmermann Software & Consulting. All rights reserved.