|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.expasy.jpl.commons.collection.render.HistogramDataSetRenderer
public final class HistogramDataSetRenderer
This object renders HistogramDataSet objects.
| Method Summary | |
|---|---|
void |
addDataSet(HistogramDataSet histo,
String title)
Add the statistical data set (default colors: 1st serie (blue), 2nd serie (red)). |
void |
addDataSet(HistogramDataSet histo,
String title,
Color color)
Add the statistical data set. |
void |
clearDataSet()
Empty data set. |
void |
disableBinRenderMode()
All the values will be rendered (slow down rendering if lots of data). |
void |
enableBinRenderMode()
The values of all bins will be added for rendering (quick rendering). |
void |
exportChart(HistogramDataSet histo,
String title,
String filename)
Export as image file. |
void |
exportChart(String filename)
Export a chart (prerequisite: data sets have already been entered via addDataSet method). |
Paint |
getChartColor(int chartIndex)
get the color of ith chart |
ImageFormat |
getImageFormat()
Get image format. |
org.jfree.chart.ChartRenderingInfo |
getRenderingInfo()
Retrieve rendering info (for interactive graphs). |
static HistogramDataSetRenderer |
newInstance()
|
BufferedImage |
render()
Create an image (prerequisite: data sets have already been entered via addDataSet method). |
BufferedImage |
render(HistogramDataSet histo,
String title)
Create an image corresponding to the given MS spectrum. |
void |
setBackgroundColor(Paint color)
Set plot background color. |
void |
setChartColor(int chartIndex,
Paint color)
set the color of ith chart |
void |
setDimension(Dimension dim)
Set image dimension. |
void |
setImageFormat(ImageFormat format)
Set image format. |
void |
setXAxisDefaultInterval()
|
void |
setXAxisInterval(double from,
double to)
set the x-axis interval to render |
void |
setXAxisLegend(String legend)
Set the legend for the var axis. |
void |
setYAxisLegend(String legend)
Set the legend for the frequency axis. |
static org.jfree.data.xy.IntervalXYDataset |
toXYDataset(HistogramDataSetExporter exporter,
String title,
HistogramDataSet histo)
Convert the histogram for jfreechart display (add values and weights). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static HistogramDataSetRenderer newInstance()
public void enableBinRenderMode()
public void disableBinRenderMode()
public void setBackgroundColor(Paint color)
setBackgroundColor in interface ChartRenderercolor - the background color.public void setDimension(Dimension dim)
setDimension in interface ChartRendererdim - the image dimension.public void setImageFormat(ImageFormat format)
format - the image format (png or jpeg).public ImageFormat getImageFormat()
getImageFormat in interface ChartRendererpublic void setXAxisLegend(String legend)
setXAxisLegend in interface ChartRendererlegend - the x-axis legend.public void setYAxisLegend(String legend)
setYAxisLegend in interface ChartRendererlegend - the y-axis legend.public void clearDataSet()
public void addDataSet(HistogramDataSet histo,
String title)
statSerie - the statistical serie to render.title - the title associated to the data set.
public void addDataSet(HistogramDataSet histo,
String title,
Color color)
statSerie - the statistical serie to render.title - the title associated to the data set.color - the color of the serie.
public BufferedImage render(HistogramDataSet histo,
String title)
pl - the peak list to render.title - the image title.
public org.jfree.chart.ChartRenderingInfo getRenderingInfo()
public void exportChart(HistogramDataSet histo,
String title,
String filename)
statSerie - the statistical serie to render and export.dir - the directory to put new file in.title - the file name.public BufferedImage render()
addDataSet method).
render in interface ChartRendererpublic void exportChart(String filename)
addDataSet method).
exportChart in interface ChartRendererfilename - the image file name without extension (defined in ImageFormat).
public void setChartColor(int chartIndex,
Paint color)
ChartRenderer
setChartColor in interface ChartRendererpublic Paint getChartColor(int chartIndex)
ChartRenderer
getChartColor in interface ChartRenderer
public static org.jfree.data.xy.IntervalXYDataset toXYDataset(HistogramDataSetExporter exporter,
String title,
HistogramDataSet histo)
title - the title of the histogram.isLoadBinData - true if load bin centers instead of data.
IntervalXYDataset.public void setXAxisDefaultInterval()
setXAxisDefaultInterval in interface ChartRenderer
public void setXAxisInterval(double from,
double to)
ChartRenderer
setXAxisInterval in interface ChartRenderer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||