Class DefaultGroupedEventPainter
- java.lang.Object
-
- com.metsci.glimpse.core.plot.timeline.event.paint.DefaultGroupedEventPainter
-
- All Implemented Interfaces:
GroupedEventPainter
public class DefaultGroupedEventPainter extends Object implements GroupedEventPainter
-
-
Constructor Summary
Constructors Constructor Description DefaultGroupedEventPainter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMaxIconRows()intgetMinimumTextDisplayWidth()voidpaint(GlimpseContext context, EventPlotInfo info, Collection<EventDrawInfo> events)Draw all the events in the provided collection using the provided context.voidsetMaxIconRows(int rows)Sets the maximum number of rows used to display icons in aggregate groups.voidsetMinimumTextDisplayWidth(int pixels)If the width of an event is less than this value, text is never displayed.
-
-
-
Method Detail
-
setMaxIconRows
public void setMaxIconRows(int rows)
Sets the maximum number of rows used to display icons in aggregate groups.- Parameters:
rows-
-
getMaxIconRows
public int getMaxIconRows()
-
setMinimumTextDisplayWidth
public void setMinimumTextDisplayWidth(int pixels)
If the width of an event is less than this value, text is never displayed. This provides an optimization when lots of events are on screen since it is expensive to calculate the width of a text string.
-
getMinimumTextDisplayWidth
public int getMinimumTextDisplayWidth()
-
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
-
-