Class DatelineScrollingEvent

java.lang.Object
java.util.EventObject
javafx.event.Event
com.flexganttfx.view.timeline.DatelineScrollingEvent
All Implemented Interfaces:
Serializable, Cloneable

public final class DatelineScrollingEvent
extends Event
A special event type used for informing the application about horizontal scrolling within the dateline. Scrolling = moving forward or back in time. Listening for this event is extremely useful for implementing a lazy loading strategy. Applications can listen for this event and then dynamically load the data that belongs to the new time interval.
Since:
1.0
See Also:
Dateline.setOnVisibleRangeChanged(EventHandler), Serialized Form
  • Field Details

  • Constructor Details

    • DatelineScrollingEvent

      public DatelineScrollingEvent​(Object source, EventTarget target, EventType<DatelineScrollingEvent> eventType, Instant startTime, Instant endTime, ZoneId zoneId)
      Constructs a new event.
      Parameters:
      source - the event source (the dateline)
      target - the event target (the dateline)
      eventType - the type of event
      startTime - the new start time of the visible range
      endTime - the new end time of the visible range
      zoneId - the time zone currently shown by the dateline
      Since:
      1.0
  • Method Details

    • getStartTime

      public final Instant getStartTime()
      Returns the new start time of the visible time range shown by the dateline / the gantt chart.
      Returns:
      the start time of the visible range
      Since:
      1.0
    • getEndTime

      public final Instant getEndTime()
      Returns the new end time of the visible time range shown by the dateline / the gantt chart.
      Returns:
      the end time of the visible range
      Since:
      1.0
    • getZoneId

      public final ZoneId getZoneId()
      Returns the ID of the time zone currently displayed by the dateline.
      Returns:
      the time zone
      Since:
      1.0