This module contains an implementation of a timeline/Gantt chart for JavaFX. The widget supports the following features:
// Create timelineTimeline tl = new Timeline();// Add data defaults for testingInstant currentTime = Instant.now();tl.setMinTime(currentTime.minusSeconds(3600));tl.setMaxTime(currentTime.plusSeconds(12800));tl.setViewPortStart(currentTime);tl.setViewPortDuration(1200);// Add task linesTaskLine theLine = new TaskLine("Task Line 1", "First task line");// Add items to the task linetheLine.getItems().add(new TaskItem("Task 1", currentTime.plusSeconds(30), 98, 0));theLine.getItems().add(new TaskItem("Task 2", currentTime.plusSeconds(130), 28, 0));// Add the task line to the timelinetl.getItems().add(theLine);// Add to application and render
For optimisation reasons, the widget works with a time resolution in seconds. Sub-second resolution is not supported, i.e.times are truncated to seconds.