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)
Type | Property and Description |
---|---|
ObjectProperty<AgendaLayout.ConflictStrategy> |
conflictStrategy
The property used to store the strategy that will be applied when the
time intervals of activities in agenda layout intersect.
|
ObjectProperty<LocalTime> |
endTime
Returns the property used for storing the end time of the agenda.
|
ObjectProperty<Duration> |
minDuration
A property used to store the minimum duration of activities in the agenda
layout.
|
DoubleProperty |
minLineSpacing |
DoubleProperty |
overlapOffset
A property used to store an offset value that is used to indent
activities when they overlap each other.
|
ObjectProperty<LocalTime> |
startTime
Returns the property used for storing the start time of the agenda.
|
Modifier and Type | Class and Description |
---|---|
static class |
AgendaLayout.ConflictStrategy
An enumerator for the different ways conflicting agenda entries can be
laid out.
|
Constructor and Description |
---|
AgendaLayout()
Constructs a new agenda layout instance.
|
Modifier and Type | Method and Description |
---|---|
ObjectProperty<AgendaLayout.ConflictStrategy> |
conflictStrategyProperty()
The property used to store the strategy that will be applied when the
time intervals of activities in agenda layout intersect.
|
ObjectProperty<LocalTime> |
endTimeProperty()
Returns the property used for storing the end time of the agenda.
|
AgendaLayout.ConflictStrategy |
getConflictStrategy()
Returns the value of the
conflictStrategyProperty() . |
LocalTime |
getEndTime()
Returns the value of the
endTimeProperty() . |
Duration |
getMinDuration()
Returns the value of the
minDurationProperty() . |
double |
getMinLineSpacing()
Gets the value of the property minLineSpacing.
|
double |
getOverlapOffset()
Returns the value of
overlapOffsetProperty() . |
LocalTime |
getStartTime()
Returns the value of the
startTimeProperty() . |
ObjectProperty<Duration> |
minDurationProperty()
A property used to store the minimum duration of activities in the agenda
layout.
|
DoubleProperty |
minLineSpacingProperty() |
DoubleProperty |
overlapOffsetProperty()
A property used to store an offset value that is used to indent
activities when they overlap each other.
|
void |
setConflictStrategy(AgendaLayout.ConflictStrategy strategy)
Sets the value of the
conflictStrategyProperty() . |
void |
setEndTime(LocalTime time)
Sets the value of
endTimeProperty() . |
void |
setMinDuration(Duration duration)
Sets the value of the
minDurationProperty() . |
void |
setMinLineSpacing(double min)
Sets the value of the property minLineSpacing.
|
void |
setOverlapOffset(double offset)
Sets the value of
overlapOffsetProperty() . |
void |
setStartTime(LocalTime time)
Sets the value of the
startTimeProperty() . |
ObjectProperty<LocalTime> |
startTimeProperty()
Returns the property used for storing the start time of the agenda.
|
String |
toString() |
getPadding, paddingProperty, setPadding
public final DoubleProperty minLineSpacingProperty
getMinLineSpacing()
,
setMinLineSpacing(double)
public final ObjectProperty<LocalTime> startTimeProperty
LocalTime.MIN
, which is equivalent to midnight.
getStartTime()
,
setStartTime(LocalTime)
public final ObjectProperty<LocalTime> endTimeProperty
LocalTime.MAX
, which is equivalent to the time just
before midnight. getEndTime()
,
setEndTime(LocalTime)
public final ObjectProperty<Duration> minDurationProperty
getMinDuration()
,
setMinDuration(Duration)
public final ObjectProperty<AgendaLayout.ConflictStrategy> conflictStrategyProperty
getConflictStrategy()
,
setConflictStrategy(ConflictStrategy)
public final DoubleProperty overlapOffsetProperty
getOverlapOffset()
,
setOverlapOffset(double)
public AgendaLayout()
public final DoubleProperty minLineSpacingProperty()
getMinLineSpacing()
,
setMinLineSpacing(double)
public final void setMinLineSpacing(double min)
public final double getMinLineSpacing()
public final ObjectProperty<LocalTime> startTimeProperty()
LocalTime.MIN
, which is equivalent to midnight.
getStartTime()
,
setStartTime(LocalTime)
public final LocalTime getStartTime()
startTimeProperty()
.public final void setStartTime(LocalTime time)
startTimeProperty()
.time
- the new agenda start timepublic final ObjectProperty<LocalTime> endTimeProperty()
LocalTime.MAX
, which is equivalent to the time just
before midnight. getEndTime()
,
setEndTime(LocalTime)
public final LocalTime getEndTime()
endTimeProperty()
.public final void setEndTime(LocalTime time)
endTimeProperty()
.time
- the new agenda end timepublic final ObjectProperty<Duration> minDurationProperty()
getMinDuration()
,
setMinDuration(Duration)
public final Duration getMinDuration()
minDurationProperty()
.public final void setMinDuration(Duration duration)
minDurationProperty()
.duration
- the new minimum duration of agenda activitiespublic final ObjectProperty<AgendaLayout.ConflictStrategy> conflictStrategyProperty()
getConflictStrategy()
,
setConflictStrategy(ConflictStrategy)
public AgendaLayout.ConflictStrategy getConflictStrategy()
conflictStrategyProperty()
.public void setConflictStrategy(AgendaLayout.ConflictStrategy strategy)
conflictStrategyProperty()
.strategy
- the conflict strategy to usepublic final DoubleProperty overlapOffsetProperty()
getOverlapOffset()
,
setOverlapOffset(double)
public final void setOverlapOffset(double offset)
overlapOffsetProperty()
.offset
- the offset in pixelspublic final double getOverlapOffset()
overlapOffsetProperty()
.Copyright © 2014 Dirk Lemmermann Software & Consulting. All rights reserved.