|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcsli.util.charts.JFreechart
public class JFreechart
Utility functions for generating and saving JFreeChart data charts and plots.
| Nested Class Summary | |
|---|---|
static class |
JFreechart.DoubleXYDataset
|
| Field Summary | |
|---|---|
static Font |
font
|
static Stroke |
stroke
|
static Font |
titlefont
|
| Constructor Summary | |
|---|---|
JFreechart()
|
|
| Method Summary | |
|---|---|
static void |
fixFonts(org.jfree.chart.JFreeChart chart)
|
static org.jfree.chart.JFreeChart |
generate2DXYChart(double[][] data,
String title,
String yaxis,
String[] subGroups,
String[] mainGroups,
boolean useLegend)
Creates a bar chart showing values across two dimensions. |
static org.jfree.chart.JFreeChart |
generateBasicXYChart(double[] data,
String title,
String yaxis,
String[] mainGroups,
boolean useLegend)
Creates a bar chart showing values across two dimensions. |
static org.jfree.chart.JFreeChart |
generateScatterPlotChart(ArrayList<Pair> data,
String title,
String xAxisLabel,
String yAxisLabel,
boolean useLegend)
Creates a bar chart showing values across two dimensions. |
static org.jfree.chart.JFreeChart |
generateSingleSeriesHistogram(Double[] data,
String title,
String xaxis,
String yaxis,
int numBins)
Create a histogram chart. |
static void |
saveChartAsPdf(String filename,
org.jfree.chart.JFreeChart chart,
float width,
float height)
Create a pdf file from a chart. |
static void |
saveChartAsPng(String filename,
org.jfree.chart.JFreeChart chart,
int width,
int height)
Create a png file from a chart. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static Font font
public static Stroke stroke
public static Font titlefont
| Constructor Detail |
|---|
public JFreechart()
| Method Detail |
|---|
public static void fixFonts(org.jfree.chart.JFreeChart chart)
public static org.jfree.chart.JFreeChart generate2DXYChart(double[][] data,
String title,
String yaxis,
String[] subGroups,
String[] mainGroups,
boolean useLegend)
data - filename - title - yaxis - subGroups - mainGroups -
public static org.jfree.chart.JFreeChart generateBasicXYChart(double[] data,
String title,
String yaxis,
String[] mainGroups,
boolean useLegend)
data - filename - title - yaxis - subGroups - mainGroups -
public static org.jfree.chart.JFreeChart generateScatterPlotChart(ArrayList<Pair> data,
String title,
String xAxisLabel,
String yAxisLabel,
boolean useLegend)
data - filename - title - yaxis - subGroups - mainGroups -
public static org.jfree.chart.JFreeChart generateSingleSeriesHistogram(Double[] data,
String title,
String xaxis,
String yaxis,
int numBins)
data - filename - title - xaxis - yaxis - numBins -
public static void saveChartAsPdf(String filename,
org.jfree.chart.JFreeChart chart,
float width,
float height)
filename - the base name, .pdf will be addedchart - width - height -
public static void saveChartAsPng(String filename,
org.jfree.chart.JFreeChart chart,
int width,
int height)
filename - the base name, .png will be addedchart - width - height -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||