public interface EventPainter
Event
.Modifier and Type | Method and Description |
---|---|
void |
paint(javax.media.opengl.GL2 gl,
Event event,
Event nextEvent,
EventPlotInfo info,
GlimpseBounds bounds,
int posMin,
int posMax)
Renders the provided Event (potentially displaying its icon, label, time extents, etc...).
|
void paint(javax.media.opengl.GL2 gl, Event event, Event nextEvent, EventPlotInfo info, GlimpseBounds bounds, int posMin, int posMax)
Renders the provided Event (potentially displaying its icon, label, time extents, etc...).
Both the Event to be painted and the next Event in the row (the event with the next largest start time) are provided. Only event should be rendered by this call. The nextEvent argument is provided only as context to allow the EventPainter to modify its rendering to ensure that it does not overlap with nextEvent.
gl
- OpenGL handleEvent
- the Event to be paintednextEvent
- the next Event to be painted (as ordered by start time)info
- parent EventPlotInfo of Event to be paintedbounds
- width, height, and position of GlimpseLayout containing EventPlotInfoposMin
- the min y (or x, depending on orientation) in pixel coordinates of the EventposMax
- the max y (or x, depending on orientation) in pixel coordinates of the EventCopyright © 2013 Metron, Inc.. All rights reserved.