Constructs a new timeline control that is using the ChronoUnitTimelineModel.
Returns the dateline contained within the timeline. The timeline is a container that consists of a dateline and an eventline.
the dateline
Returns the eventline contained within the timeline. The timeline is a container that consists of a dateline and an eventline.
the dateline
Returns the timeline model to be used by the timeline.
the timeline model
Calculates and returns the duration of the visible time interval inside the timeline. The duration is the time
difference between the visibleStartTime
and the visibleEndTime
.
the visible duration
Returns the last visible time point (on the right edge) inside the timeline.
the last visible time point (on the right edge) inside the timeline
Returns the first visible time point (on the left edge) inside the timeline.
the first visible time point (on the left edge) inside the timeline
Returns the zoom factor that will be applied every time the user performs a zoom in or zoom out. The default value of this property is .5, which means that the user will see 50% more or less time inside the visible area.
the zoom factor
Returns the way a zoom in or out will be executed. Zooming can keep the current start time, the current end time, or the time shown in the center of the timeline inside the visible area. Based on this setting the currently shown activities on the left or the right might be pushed out of the visible area when zooming in or more of them might show up either on the left, the right, or both sides.
the currently used zoom mode (center zoom, keep start time, keep end time)
Returns whether moving from one time to another will happen animated or not.
true if moving in time will be animated
Returns if the user is allowed to perform a horizontal scroll by dragging the timeline. Normally a drag gesture triggers the selection of a time interval used for zooming into time.
true if the user can trigger horizontal scrolling by dragging the timeline
Returns if any zoom operation should be done in an animated fashion or not. Animation happens by not directly switching to the new time interval but by gradually changing the interval until the new interval has been reached.
true if the zoom in / out operations will be visualized in an animated way
Performs a scroll by a duration jump.
the duration jump to scroll
possibility to override isMoveAnimated()
for this call only
Performs a scroll by a percentage of the visible duration.
the percentage of the visible duration to scroll
possibility to override isMoveAnimated()
for this call only
Performs a scroll by a pixel delta.
the pixel delta to scroll
possibility to override isMoveAnimated()
for this call only
Performs a left scroll inside the timeline, meaning that earlier times will become visible.
Performs a fast left scroll inside the timeline, meaning that earlier times will become visible.
Performs a right scroll inside the timeline, meaning that later times will become visible.
Performs a fast right scroll inside the timeline, meaning that later times will become visible.
Performs a scroll adjusting a time to a location.
the time to display at the given location
the location where to display the given time
possibility to override isMoveAnimated()
for this call only
Sets the timeline model to be used by the timeline.
the timeline model
Sets whether moving from one time to another will happen animated or not.
if true the change from one time to another will be animated
Sets if the user can trigger horizontal scrolling by dragging the timeline.
if true the user can trigger horizontal scrolling by dragging the timeline
Sets if any zoom operation should be done in an animated fashion or not. Animation happens by not directly switching to the new time interval but by gradually changing the interval until the new interval has been reached.
if true the zoom in / out operations will be visualized in an animated way
Sets the value of the zoomFactorProperty().
the new zoom factor
Sets the currently used zoom mode (center zoom, keep start time, keep end time).
the new zoom mode (center zoom, keep start time, keep end time)
Makes the timeline scroll to the time point that is currently considered "now". This time point will be shown in the center of the timeline.
determines if the time will be shown in the center or on the left-edge of the timeline
Requests that the given time interval will be completely visible within the timeline.
the start time of the requested interval
the end time of the requested interval
possibility to override isZoomAnimated()
for this call only
Requests that the given time interval will be completely visible within the timeline.
the start time of the requested interval
the duration of the requested interval
Requests that the given time interval will be completely visible within the timeline.
the requested interval
Submits a request to the timeline to show the given temporal unit (e.g. ChronoUnit.DAYS at the given width (e.g. 50px). This is a convenient way to make the Gantt chart show up with a good initial zoom.
the temporal unit to show
the number of pixels to use for each unit (e.g. for one day)
Makes the timeline scroll to the time point passed to the method.
the time to show
if true the time will be centered within the timeline
Requests that the timeline performs a zoom operation.
the zoom factor (factor < 1 for a zoom in and factor > 1 for a zoom out)
possibility to override getZoomMode()
for this call only
possibility to override isZoomAnimated()
for this call only
Requests that the timeline performs a zoom in operation.
Requests that the timeline performs a zoom out operation.
Requests that the timeline performs a zoom operation with a frozen location.
the zoom factor (factor < 1 for a zoom in and factor > 1 for a zoom out)
the location where time will stay where it was before (use case: pinch zoom)
possibility to override isZoomAnimated()
for this call only
Requests that the timeline performs a zoom operation with a frozen percentage of the visible duration.
the zoom factor (factor < 1 for a zoom in and factor > 1 for a zoom out)
the percentage of the visible duration where time will stay where it was before (use case: pinch zoom)
possibility to override isZoomAnimated()
for this call only
Requests that the timeline performs a zoom operation with a frozen time.
the zoom factor (factor < 1 for a zoom in and factor > 1 for a zoom out)
the point in time that will stay where it was before (use case: pinch zoom)
possibility to override isZoomAnimated()
for this call only
Requests that the timeline performs a zoom operation with a target location.
the zoom factor (factor < 1 for a zoom in and factor > 1 for a zoom out)
the location that will be the target of the zoom (use case: programmatic zoom)
if true skips the adjustment of the zoom range
possibility to override isZoomAnimated()
for this call only
Requests that the timeline performs a zoom operation with a target percentage of the visible duration.
the zoom factor (factor < 1 for a zoom in and factor > 1 for a zoom out)
the percentage of the visible duration that will be the target of the zoom (use case: programmatic zoom)
if true skips the adjustment of the zoom range
possibility to override isZoomAnimated()
for this call only
Requests that the timeline performs a zoom operation with a target time.
the zoom factor (factor < 1 for a zoom in and factor > 1 for a zoom out)
the point in time that will be the target of the zoom (use case: programmatic zoom)
if true skips the adjustment of the zoom range
possibility to override isZoomAnimated()
for this call only
The timeline control is a container for the
Dateline
and theEventline
. It is displayed above theGraphicsBase
and provides several methods for scrolling and zooming, both of which can be done in an animated way (default) or not.1.0