public class SamplingPlot extends Plot1D
Plot.PlotChangedListener, Plot.PlotFlag, Plot.PlotMarker, Plot.PlotMarkerDefault, Plot.PlotStyle
Constructor and Description |
---|
SamplingPlot(java.lang.String plotTitle,
Paint paint,
Plot.PlotStyle style,
int maxCache) |
SamplingPlot(java.lang.String plotTitle,
Paint paint,
Plot.PlotStyle style,
int maxCache,
boolean maintainMinMax) |
Modifier and Type | Method and Description |
---|---|
void |
addValue(long value)
Adds a single sample to this plot.
|
void |
setViewport(int samplingRateInHz,
int timeInSeconds)
Specify a time window of how many samples should be drawn in the view.
|
addValue, addValue, addValue, addValueFast, addValueFast, clear, create, getViewport, loadFromFile, saveToFile, setAxis
drawGlobalMarks, generatePlotPaint, generatePlotPaint, generatePlotPaint, getMarker, getValueHead, setAxis, setFile, setMarker, setMarker, setPaint, setViewport
public SamplingPlot(java.lang.String plotTitle, Paint paint, Plot.PlotStyle style, int maxCache)
plotTitle
- m_paint
- style
- maxCache
- public SamplingPlot(java.lang.String plotTitle, Paint paint, Plot.PlotStyle style, int maxCache, boolean maintainMinMax)
public void addValue(long value)
value
- sample-valuepublic void setViewport(int samplingRateInHz, int timeInSeconds)
timeInSeconds
- The number of seconds of the time window to display.