public class Plotter
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
TimeSeries_LineChart |
static int |
TimeSeries_ScatterPlot |
static int |
TimeSeries_StepChart |
| Constructor and Description |
|---|
Plotter(java.lang.String path,
java.awt.Dimension size)
Constructor to set the path of output directory and the size of created image.
|
| Modifier and Type | Method and Description |
|---|---|
void |
makeHistogramAccumulatePlot(HistogramAccumulate histogram)
make a histogramAccumulate plot with a desmoJ histogram dataset.
|
void |
makeHistogramPlot(Histogram histogram)
make a histogram plot with a desmoJ histogram dataset.
|
void |
makeHistogramPlot(Histogram histogram,
boolean onscreen)
Deprecated.
|
void |
makeTimeSeriesPlot(TimeSeries ts,
boolean onscreen)
Deprecated.
|
void |
makeTimeSeriesPlot(TimeSeries ts,
int plotType,
boolean multipleValues)
make a time-series plot with a desmoJ time-series dataset.
|
void |
setLocale(java.util.Locale locale)
set locale for both grafic axis
|
void |
setOnScreen(boolean onScreen)
Grafic is shown on screen, stored on file otherwise
|
void |
setTimeRange(TimeInstant begin,
TimeInstant end)
set date range for timeseries dateaxis.
|
void |
setTimeZone(java.util.TimeZone timeZone)
set timeZone for timeseries dateaxis
|
public static final int TimeSeries_ScatterPlot
public static final int TimeSeries_StepChart
public static final int TimeSeries_LineChart
public Plotter(java.lang.String path,
java.awt.Dimension size)
path - size - public void setOnScreen(boolean onScreen)
onscreen - public void setLocale(java.util.Locale locale)
locale - public void setTimeZone(java.util.TimeZone timeZone)
timeZone - public void setTimeRange(TimeInstant begin, TimeInstant end)
begin - end - @Deprecated public void makeHistogramPlot(Histogram histogram, boolean onscreen)
histogram - onScreen - public void makeHistogramPlot(Histogram histogram)
histogram - public void makeHistogramAccumulatePlot(HistogramAccumulate histogram)
histogram - @Deprecated public void makeTimeSeriesPlot(TimeSeries ts, boolean onscreen)
ts - DesmoJ time-seriesonscreen - Grafic is shown on screen, stored on file otherwisepublic void makeTimeSeriesPlot(TimeSeries ts, int plotType, boolean multipleValues)
ts - DesmoJ time-seriesplotType - possible Values:
Plotter.TimeSeries_ScatterPlot,
Plotter.TimeSeries_StepChart
Plotter.TimeSeries_LinePlotmultipleValues - When multipleValues is set, multiple range values of a time value are allowed.
In the opposite case only the last range value of a time value is accepted.