the temporal unit supported by the model (e.g. ChronoUnit).
Returns the pixel location of the given time.
the time for which to return the pixel location
the location of the given time
Returns the time for the given location.
the location in pixels
the location time
Returns the end time of the horizon.
the horizon end time
Returns the start time of the horizon.
the horizon start time
Returns the maximum number of milliseconds that will be represented by a single pixel on the screen. Zoom-Out operations will be limited by this value.
the maximum MPP value
Returns the millis per pixel value. This value determines how much time is represented by a single pixel in the user interface. Changing the value of this property will cause the control to show more or less time within the visible timeline area, meaning zooming can be controlled by this value.
Returns the minimum number of milliseconds that will be represented by a single pixel on the screen. Zoom-In operations will be limited by this value.
the minimum MPP value
Returns "now", the current time, e.g. the current system time.
the "now" time
Returns the location of the "now" time. The location can be computed based on the millis per pixel and the start time value.
the pixel location of "now"
Returns the smallest temporal unit supported by the gantt.
the smallest temporal unit
Returns the first visible time point.
the start time
Gets an observable that will be triggered each time there is a modification of the timeline.
Method to call when we want to redraw the timeline
Sets the value of horizonEndTimeProperty().
the horizon end time
Sets the start time of the horizon.
the horizon start time
Sets the maximum MPP value.
the maximum MPP value
Sets the millis represented by a pixel().
the millis represented by a pixel
Sets the minimum MPP value.
the minimum MPP value
Sets "now", the current time, e.g. the current system time.
the "now" time
Sets the first visible time point.
the start time
Sets the first visible time point and the millis represented by a pixel() holding time line model change process holder.
the start time
the millis represented by a pixel
Sets the range in which the user can zoom in and out of the timeline.
the smallest unit to which the user can zoom (e.g. "MINUTES")
the number of smallest units (e.g. "5" MINUTES)
the width of the unit in pixels, must be larger than 10 (e.g. "30")
the largest unit to which the user can zoom (e.g. "YEARS")
the number of largest units (e.g. "1" YEAR)
the width of the unit in pixels, must be larger than 10 (e.g. "30")
Computes the millis per pixel for a given target pixels count and its corresponding duration.
The timeline model stores the most important properties related to navigating within time (move forward and backward in time, zoom in and out).
Now - the "current" time (e.g. system time). Start time - the first time point that will be visible to the user. Millis per pixel - how much time is represented by a single pixel (important for zooming). Horizon - the earliest and latest point in time to which the user can scroll. Lowest temporal unit - the lowest unit that the user will be able to see (e.g. MINUTES). Highest temporal unit - the highest unit that the user will be able to see (e.g. MONTHS).
This class is also responsible for calculating the location for a given time and vice versa.