public class EventManager extends Object
EventPlotInfo
.Modifier and Type | Class and Description |
---|---|
class |
EventManager.Row |
Constructor and Description |
---|
EventManager(EventPlotInfo info) |
Modifier and Type | Method and Description |
---|---|
void |
addEvent(Event event) |
void |
calculateVisibleEvents(Axis1D axis) |
Event |
getEvent(Object id) |
EventBounds |
getEventBounds(Object id) |
Set<Event> |
getEvents() |
int |
getMaxAggregatedEventGapSize() |
int |
getMaxAggregatedGroupSize() |
EventSelection |
getNearestEvent(GlimpseMouseEvent e) |
EventSelection |
getNearestEvent(Set<EventSelection> events,
GlimpseMouseEvent e) |
Set<EventSelection> |
getNearestEvents(GlimpseMouseEvent e) |
EventBounds |
getOrCreateEventBounds(Object id) |
int |
getRow(Object eventId) |
int |
getRowCount() |
List<EventManager.Row> |
getRows() |
boolean |
isAggregateNearbyEvents() |
boolean |
isStackOverlappingEvents() |
void |
lock() |
void |
moveEvent(Event event,
TimeStamp newStartTime,
TimeStamp newEndTime) |
void |
removeAllEvents() |
Event |
removeEvent(Object id) |
void |
setAggregateNearbyEvents(boolean aggregate)
If true, nearby events in the same row will be combined into one
event to reduce visual clutter.
|
EventBounds |
setEventBounds(Object id,
EventBounds bounds) |
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).
|
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).
|
void |
setRow(Object eventId,
int rowIndex) |
void |
setStackOverlappingEvents(boolean stack)
If true, Events will be automatically placed into rows in order to
avoid overlap.
|
void |
unlock() |
void |
validate() |
public EventManager(EventPlotInfo info)
public void lock()
public void unlock()
public List<EventManager.Row> getRows()
public boolean isStackOverlappingEvents()
setStackOverlappingEvents(boolean)
public void setStackOverlappingEvents(boolean stack)
Event.setFixedRow(int)
will
be ignored.public int getMaxAggregatedGroupSize()
setMaxAggregatedGroupSize(int)
public void setMaxAggregatedGroupSize(int size)
setAggregateNearbyEvents(boolean)
public int getMaxAggregatedEventGapSize()
public void setMaxAggregatedEventGapSize(int size)
size
- public boolean isAggregateNearbyEvents()
setAggregateNearbyEvents(boolean)
public void setAggregateNearbyEvents(boolean aggregate)
public void validate()
public int getRowCount()
public void setRow(Object eventId, int rowIndex)
public int getRow(Object eventId)
public void addEvent(Event event)
public void removeAllEvents()
public EventBounds getOrCreateEventBounds(Object id)
public EventBounds getEventBounds(Object id)
public EventBounds setEventBounds(Object id, EventBounds bounds)
public Set<EventSelection> getNearestEvents(GlimpseMouseEvent e)
public EventSelection getNearestEvent(Set<EventSelection> events, GlimpseMouseEvent e)
public EventSelection getNearestEvent(GlimpseMouseEvent e)
public void calculateVisibleEvents(Axis1D axis)
Copyright © 2016 Metron, Inc.. All rights reserved.