public class EventPlotInfo extends TimePlotInfoWrapper implements TimePlotInfo
A handle to one of the plotting areas making up a StackedTimePlot2D
. This
is a specialized plotting area which supports display and manipulation of
Event
objects.
For an example of this plot in use, see
com.mcom.metsci.glimpse.examples.stacked.CollapsibleTimelinePlotExample
.
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_BUFFER_SIZE |
static int |
DEFAULT_ROW_SIZE |
Constructor and Description |
---|
EventPlotInfo(TimePlotInfo delegate) |
EventPlotInfo(TimePlotInfo delegate,
TextureAtlas atlas) |
addPainter, getAxisPainter, getBackgroundPainter, getBorderPainter, getCommonAxis, getCommonAxis, getDataAxisMouseListener, getDataPainter, getGridPainter, getLabelBorderPainter, getLabelLayout, getLabelPainter, getStackedTimePlot, removePainter, setAxisColor, setAxisFont, setBackgroundColor, setBorderWidth, setLabelBorderColor, setLabelBorderWidth, setLabelColor, setLabelText, setTimeToolTipHandler
addLayout, deletePlot, getBaseLayout, getId, getIndentLevel, getLayout, getLayoutData, getOrder, getOrthogonalAxis, getOrthogonalAxis, getPlotSpacing, getSize, getStackedPlot, isGrow, isVisible, setGrow, setIndentLevel, setLayoutData, setLookAndFeel, setOrder, setPlotSpacing, setSize, setVisible, updateLayout
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPainter, getAxisPainter, getBackgroundPainter, getBorderPainter, getCommonAxis, getCommonAxis, getDataAxisMouseListener, getDataPainter, getGridPainter, getLabelBorderPainter, getLabelLayout, getLabelPainter, getStackedTimePlot, removePainter, setAxisColor, setAxisFont, setBackgroundColor, setBorderWidth, setLabelBorderColor, setLabelBorderWidth, setLabelColor, setLabelText, setTimeToolTipHandler
addLayout, deletePlot, getBaseLayout, getId, getIndentLevel, getLayout, getLayoutData, getOrder, getOrthogonalAxis, getOrthogonalAxis, getPlotSpacing, getSize, getStackedPlot, isGrow, isVisible, setGrow, setIndentLevel, setLayoutData, setLookAndFeel, setOrder, setPlotSpacing, setSize, setVisible, updateLayout
public static final int DEFAULT_ROW_SIZE
public static final int DEFAULT_BUFFER_SIZE
public EventPlotInfo(TimePlotInfo delegate)
public EventPlotInfo(TimePlotInfo delegate, TextureAtlas atlas)
public void setAggregateNearbyEvents(boolean aggregate)
public boolean isAggregateNearbyEvents()
public void setEventPainter(EventPainter painter)
public EventPainter getEventPainter()
public void setSelectionHandler(EventSelectionHandler selectionHandler)
public EventSelectionHandler getEventSelectionHandler()
public void setEventToolTipHandler(EventToolTipHandler toolTipHandler)
public TimeStamp getTime(GlimpseMouseEvent e)
public boolean isMouseDragEnabled()
public void setMouseDragEnabled(boolean enabled)
public void addEventPlotListener(EventPlotListener listener)
public void removeEventPlotListener(EventPlotListener listener)
public boolean isStackOverlappingEvents()
public void setStackOverlappingEvents(boolean stack)
public int getRow(Object eventId)
public void setRowSize(int size)
public int getRowSize()
public void setEventPadding(int size)
public int getEventPadding()
public void setRowMaxCount(int count)
public int getRowMaxCount()
public void setRowMinCount(int count)
public int getRowMinCount()
public int getRowCount()
public void updateSize()
public boolean isTextColorSet()
public boolean isBackgroundColorSet()
public boolean isBorderColorSet()
public com.jogamp.opengl.util.awt.TextRenderer getTextRenderer()
public TextureAtlas getTextureAtlas()
public void setDefaultEventBackgroundColor(float[] backgroundColor)
public float[] getDefaultEventBackgroundColor()
public void setDefaultEventBorderColor(float[] borderColor)
setDefaultEventBorderColor
in interface TimePlotInfo
setDefaultEventBorderColor
in class TimePlotInfoWrapper
public float[] getDefaultEventBorderColor()
public void setDefaultEventTextColor(float[] textColor)
public float[] getTextColorNoBackground()
public float[] getTextColor()
public void setFont(Font font, boolean antialias)
public void addEvent(Event event)
public void removeEvent(Event event)
public void removeEvent(Object id)
public void removeAllEvents()
public void setTextRenderingMode(Event.TextRenderingMode mode)
Event
children of this EventPlotInfo.
This value will also be the default of any newly created Events. The value can be
overridden on a per-Event basis using Event#setTextRenderingMode(OverlapRenderingMode)
.
However, the next call to EventPlotInfo#setTextRenderingMode(OverlapRenderingMode)
will
reset all Events to the same value.public Event.TextRenderingMode getTextRenderingMode()
#setTextRenderingMode(TextRenderingMode)
public void updateEventRow(Event event, int rowIndex)
public void validate()
public GlimpseAxisLayout1D getEventLayout()
Copyright © 2013 Metron, Inc.. All rights reserved.