Class GroupedEventPainterAdapter
- java.lang.Object
-
- com.metsci.glimpse.core.plot.timeline.event.paint.GroupedEventPainterAdapter
-
- All Implemented Interfaces:
GroupedEventPainter
public class GroupedEventPainterAdapter extends Object implements GroupedEventPainter
An adapter class which utilizes aEventPainterto (inefficiently) perform the function of aGroupedEventPainter. This class should generally not be used. Instead, aGroupedEventPaintershould be implemented which efficiently draws all events simultaneously.- Author:
- ulman
-
-
Constructor Summary
Constructors Constructor Description GroupedEventPainterAdapter(EventPainter painter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpaint(GlimpseContext context, EventPlotInfo info, Collection<EventDrawInfo> events)Draw all the events in the provided collection using the provided context.
-
-
-
Constructor Detail
-
GroupedEventPainterAdapter
public GroupedEventPainterAdapter(EventPainter painter)
-
-
Method Detail
-
paint
public void paint(GlimpseContext context, EventPlotInfo info, Collection<EventDrawInfo> events)
Description copied from interface:GroupedEventPainterDraw all the events in the provided collection using the provided context.- Specified by:
paintin interfaceGroupedEventPainter- Parameters:
context- Glimpse Context, providing access to Axis, GlimpseBounds, and OpenGL contextinfo- parent EventPlotInfo of Event to be paintedevents- the event objects to draw
-
-