Class EventManager


  • public class EventManager
    extends Object
    Helper class which maintains sorted Event data structures for EventPlotInfo.
    Author:
    ulman
    • Constructor Detail

    • Method Detail

      • lock

        public void lock()
      • unlock

        public void unlock()
      • setStackOverlappingEvents

        public void setStackOverlappingEvents​(boolean stack)
        If true, Events will be automatically placed into rows in order to avoid overlap. Any row requested by Event.setFixedRow(int) will be ignored.
      • setReverseStackingDirection

        public void setReverseStackingDirection​(boolean reverse)
        If true, events will start at the top (or right) edge and stack downward (or leftward) -- the reverse of default behavior.
      • setMaxAggregatedGroupSize

        public void setMaxAggregatedGroupSize​(int size)
        Sets the maximum pixel size above which an Event will not be aggregated with nearby Events (in order to reduce visual clutter).
        See Also:
        setAggregateNearbyEvents(boolean)
      • getMaxAggregatedEventGapSize

        public int getMaxAggregatedEventGapSize()
      • setMaxAggregatedEventGapSize

        public void setMaxAggregatedEventGapSize​(int size)
        Sets the maximum pixel distance between adjacent events above which events will not be aggregated into a single Event (in order to reduce visual clutter).
        Parameters:
        size -
      • setAggregateNearbyEvents

        public void setAggregateNearbyEvents​(boolean aggregate)
        If true, nearby events in the same row will be combined into one event to reduce visual clutter.
      • validate

        public void validate()
      • getRowCount

        public int getRowCount()
      • setRow

        public void setRow​(Object eventId,
                           int rowIndex)
      • getRow

        public int getRow​(Object eventId)
      • addEvent

        public void addEvent​(Event event)
      • removeEvent

        public Event removeEvent​(Object id)
      • removeAllEvents

        public void removeAllEvents()
      • getEvents

        public Set<Event> getEvents()
      • calculateVisibleEvents

        public void calculateVisibleEvents​(Axis1D axis)