Class AggregateEvent

  • All Implemented Interfaces:
    Iterable<Event>

    public class AggregateEvent
    extends Event
    When a StackedTimePlot2D is zoomed out very far, Events can be squashed very close together in pixel space, making them hard to see. EventPlotInfo can alleviate this problem by automatically creating combined Events which represent aggregations of many user created Events.
    Author:
    ulman
    • Method Detail

      • iterator

        public Iterator<Event> iterator()
        EventPlotInfo can automatically create synthetic groups of Events when the timeline is zoomed out far enough that a bunch of Events are crowded into the same space. The individual constituent Events can be accessed via this method. User created Events never have children.
        Specified by:
        iterator in interface Iterable<Event>
        Overrides:
        iterator in class Event
      • getEventCount

        public int getEventCount()
        Description copied from class: Event
        Gets the number of aggregated events that make up this event.
        Overrides:
        getEventCount in class Event
        See Also:
        iterator()
      • setEndTimeMoveable

        public void setEndTimeMoveable​(boolean isEndTimeMoveable)
        Description copied from class: Event
        If true, the endTime of the Event cannot be adjusted by user mouse gestures.
        Overrides:
        setEndTimeMoveable in class Event
      • setStartTimeMoveable

        public void setStartTimeMoveable​(boolean isStartTimeMoveable)
        Description copied from class: Event
        If true, the startTime of the Event cannot be adjusted by user mouse gestures.
        Overrides:
        setStartTimeMoveable in class Event
      • setResizeable

        public void setResizeable​(boolean isResizeable)
        Description copied from class: Event
        If true, the time span of the Event (the amount of time between the start and end times) cannot be adjusted by user mouse gestures. However, the Event may still be dragged.
        Overrides:
        setResizeable in class Event
      • setMaxTimeSpan

        public void setMaxTimeSpan​(double maxTimeSpan)
        Description copied from class: Event
        Sets the maximum time span between the start and end times. By default the maximum is Double.MAX_VALUE.
        Overrides:
        setMaxTimeSpan in class Event
      • setMinTimeSpan

        public void setMinTimeSpan​(double minTimeSpan)
        Description copied from class: Event
        Sets the minimum (inclusive) span between the start and end times. By default the minimum is 0.
        Overrides:
        setMinTimeSpan in class Event
      • setTimes

        public void setTimes​(TimeStamp startTime,
                             TimeStamp endTime,
                             boolean force)
        Description copied from class: Event

        Sets the start and end time for this Event.

        If force is false, then the constraints (see Event.addConstraint(EventConstraint)) are taken into account and the final Event bounds might not be equal to the input arguments.

        Overrides:
        setTimes in class Event
      • setFixedRow

        public void setFixedRow​(int rowIndex)
        Description copied from class: Event
        This event will appear on the requested row index in the timeline regardless of whether that causes it to overlap with other Events.
        Overrides:
        setFixedRow in class Event
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Event