|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.ucla.stat.SOCR.chart.ChartGenerator_JTable
public class ChartGenerator_JTable
This class provide the API interface for creating many type's charts including PieChart, BarChart, LineChart, etc
JTable is used as input data type for the chart.
The output data type is JFreeChart which is implemented using the Java 2D APIs and can be easily included in GUI.
Field Summary | |
---|---|
protected int |
CHART_SIZE_X
|
protected int |
CHART_SIZE_Y
|
Constructor Summary | |
---|---|
ChartGenerator_JTable()
|
Method Summary | |
---|---|
JFreeChart |
createEmptyChart(java.lang.String title)
this generates an empty chart, used in init |
JFreeChart |
getBoxAndWhiskerCategoryChart(java.lang.String title,
java.lang.String xLabel,
java.lang.String yLabel,
javax.swing.JTable table,
int numberOfCategory,
int[][] pairs,
java.lang.String other)
given category data, this method will generate a BoxAndWhisker Chart |
JFreeChart |
getCategoryChart(java.lang.String chartType,
java.lang.String title,
java.lang.String xLabel,
java.lang.String yLabel,
javax.swing.JTable table,
int numberOfCategory,
int[][] pairs,
java.lang.String other)
given category data, this method will generate a Bar Chart, Line Chart, Area Chart or Step Chart |
JFreeChart |
getCompassChart(java.lang.String title,
javax.swing.JTable table,
int numberOfSeries,
int[][] pairs,
java.lang.String other)
given a sigle data, this method will generate a compass Chart |
JFreeChart |
getPieChart(java.lang.String title,
javax.swing.JTable table,
int[][] pairs,
java.lang.String other)
this will generate a Pie Chart |
JFreeChart |
getTableXYAreaChart(java.lang.String title,
java.lang.String xLabel,
java.lang.String yLabel,
javax.swing.JTable table,
int numberOfSeries,
int[][] pairs,
java.lang.String other)
given XY data, this method will generate a stacked Area Chart |
JFreeChart |
getXYChart(java.lang.String chartType,
java.lang.String title,
java.lang.String xLabel,
java.lang.String yLabel,
javax.swing.JTable table,
int numberOfSeries,
int[][] pairs,
java.lang.String other)
given XY data, this method will generate a Bar Chart, Line Chart, Area Chart etc |
JFreeChart |
getXYZBubbleChart(java.lang.String title,
java.lang.String xLabel,
java.lang.String yLabel,
javax.swing.JTable table,
int numberOfSeries,
int[][] pairs,
java.lang.String other)
given XYZ data, this method will generate a Bubble Chart |
JFreeChart |
getYIntervalChart(java.lang.String title,
java.lang.String xLabel,
java.lang.String yLabel,
javax.swing.JTable table,
int numberOfSeries,
int[][] pairs,
java.lang.String other)
given XY data, this method will generate a YInterval Chart |
void |
setChartSize(int x,
int y)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int CHART_SIZE_X
protected int CHART_SIZE_Y
Constructor Detail |
---|
public ChartGenerator_JTable()
Method Detail |
---|
public void setChartSize(int x, int y)
public JFreeChart createEmptyChart(java.lang.String title)
title
- the chart titlepublic JFreeChart getPieChart(java.lang.String title, javax.swing.JTable table, int[][] pairs, java.lang.String other)
title
- chart titletable
- chart datapairs
- data table mapping infoother
- can be 2D/3D/ring/clockwise/counter_colckwisepublic JFreeChart getCategoryChart(java.lang.String chartType, java.lang.String title, java.lang.String xLabel, java.lang.String yLabel, javax.swing.JTable table, int numberOfCategory, int[][] pairs, java.lang.String other)
charType
- can be bar/barstat/barstatraw/line/linestat/area/step/areatime/spiderweb/eventfreqtimetitle
- chart titlexlabel
- X axis labelyLabel
- Y axis labeltable
- chart datanumberOfCategory
- number of category in dataTablepairs
- data table mapping infoother
- can be 3d/stacked/layered/waterfall for bar chart, noshap/noline/nofill for line chart, minute/day/month/year for areatime chartpublic JFreeChart getXYChart(java.lang.String chartType, java.lang.String title, java.lang.String xLabel, java.lang.String yLabel, javax.swing.JTable table, int numberOfSeries, int[][] pairs, java.lang.String other)
charType
- can be line/linetime/lineqq/lineqqdd/bar/area/step/areatime/nd/differencetime/symbolicaxis/polartitle
- chart titlexlabel
- X axis labelyLabel
- Y axis labeltable
- chart datanumberOfSeries
- number of series in dataTablepairs
- data table mapping infoother
- can be noshap/noline/nofill for line chart, minute/day/month/year for areatime chart and differencetime chartpublic JFreeChart getTableXYAreaChart(java.lang.String title, java.lang.String xLabel, java.lang.String yLabel, javax.swing.JTable table, int numberOfSeries, int[][] pairs, java.lang.String other)
title
- chart titlexlabel
- X axis labelyLabel
- Y axis labeltable
- chart datanumberOfSeries
- number of series in dataTablepairs
- data table mapping infoother
- is not currently usedpublic JFreeChart getYIntervalChart(java.lang.String title, java.lang.String xLabel, java.lang.String yLabel, javax.swing.JTable table, int numberOfSeries, int[][] pairs, java.lang.String other)
title
- chart titlexlabel
- X axis labelyLabel
- Y axis labeltable
- chart datanumberOfSeries
- number of series in dataTablepairs
- data table mapping infoother
- is not currently usedpublic JFreeChart getBoxAndWhiskerCategoryChart(java.lang.String title, java.lang.String xLabel, java.lang.String yLabel, javax.swing.JTable table, int numberOfCategory, int[][] pairs, java.lang.String other)
title
- chart titlexlabel
- X axis labelyLabel
- Y axis labeltable
- chart datanumberOfCategory
- number of Catgory in dataTablepairs
- data table mapping infoother
- is not currently usedpublic JFreeChart getXYZBubbleChart(java.lang.String title, java.lang.String xLabel, java.lang.String yLabel, javax.swing.JTable table, int numberOfSeries, int[][] pairs, java.lang.String other)
title
- chart titlexlabel
- X axis labelyLabel
- Y axis labeltable
- chart datanumberOfSeries
- number of Series in dataTablepairs
- data table mapping infoother
- is not currently usedpublic JFreeChart getCompassChart(java.lang.String title, javax.swing.JTable table, int numberOfSeries, int[][] pairs, java.lang.String other)
title
- chart titletable
- chart datanumberOfSeries
- number of Series in dataTablepairs
- data table mapping infoother
- is not currently used
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |