Class EventTimeline

  • All Implemented Interfaces:
    java.io.Serializable

    public class EventTimeline
    extends java.lang.Object
    implements java.io.Serializable
    Note: Adding methods to deal with Events specifically, as timestamp collisions seem to be common -Mitch
    See Also:
    Serialized Form
    • Constructor Detail

      • EventTimeline

        public EventTimeline()
      • EventTimeline

        public EventTimeline​(java.util.List<Event> events)
    • Method Detail

      • getStart

        public java.util.Date getStart()
      • getEnd

        public java.util.Date getEnd()
      • peek

        public java.util.Date peek()
      • getEventTimes

        public java.util.List<java.util.Date> getEventTimes()
        Returns a list of all the times that have events, for use in building a timeline.
      • resetPosition

        public void resetPosition()
        Resets internal tracking back to the start.
      • hasMore

        public boolean hasMore()
        Returns true if there are additional events beyond the current position.
      • nextChartStatus

        public ChartStatus nextChartStatus()
        Returns the next chart status and moves the position forward.
      • seekTo

        public void seekTo​(java.util.Date position)
      • seekTo

        public void seekTo​(Event event)
      • getEvents

        public java.util.List<Event> getEvents()
      • peekEvent

        public Event peekEvent()
      • previousEvent

        public Event previousEvent()
      • getStartEvent

        public Event getStartEvent()
      • getEndEvent

        public Event getEndEvent()