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, getParent, getPlotSpacing, getSize, getStackedPlot, isExpanded, isGrow, isVisible, removePlot, setIndentLevel, setLayoutData, setLookAndFeel, setOrder, setParent, setPlotSpacing, 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, getParent, getPlotSpacing, getSize, getStackedPlot, isExpanded, isGrow, isVisible, removePlot, setIndentLevel, setLayoutData, setLookAndFeel, setOrder, setParent, setPlotSpacing, 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 setDefaultIconSize(int size)
public int getDefaultIconSize()
public boolean isUseDefaultIconSize()
public void setUseDefaultIconSize(boolean useDefaultIconSize)
public void setAggregateNearbyEvents(boolean aggregate)
public boolean isAggregateNearbyEvents()
public void setEventPainter(GroupedEventPainter painter)
public GroupedEventPainter 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 double getRowSize(GlimpseBounds bounds)
public void setGrow(boolean grow)
PlotInfo
Sets the plot to fill all available space. First, fixed size plots
are given their space (set by PlotInfo.setSize(int)
) and then
all plots set to grow fill the remaining space.
Setting the plot size to a negative value is the same as setting
grow to true (but this behavior is deprecated and PlotInfo.setGrow(boolean)
should be used). Setting size to a positive value will set grow to
false.
setGrow
in interface PlotInfo
setGrow
in class PlotInfoWrapper
public void setSize(int size)
PlotInfo
Sets the size in pixels for this plot. If size < 0
, then
the plot will attempt to fill all available space, sharing space
evenly with other plots with negative size.
For a VERTICAL oriented plot, setSize( )
adjusts the plot
height, for a HORIZONTAL oriented plot, the width is adjusted.
setSize
in interface PlotInfo
setSize
in class PlotInfoWrapper
size
- the size of the plot in pixels.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 Object getDefaultIconId()
public TextureAtlas getTextureAtlas()
public void setDefaultEventBorderThickness(float thickness)
public float getDefaultEventBorderThickness()
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 EventBounds getEventBounds(Object id)
public EventManager getEventManager()
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(GlimpseMouseEvent mouseEvent, Event event, int rowIndex)
public void validate()
public GlimpseAxisLayout1D getEventLayout()
Copyright © 2016 Metron, Inc.. All rights reserved.