edu.ucla.stat.SOCR.chart
Class ChartGenerator

java.lang.Object
  extended by edu.ucla.stat.SOCR.chart.ChartGenerator

public class ChartGenerator
extends java.lang.Object

This class includes few typical statistical charts. used by Analysis package


Field Summary
protected  int CHART_SIZE_X
           
protected  int CHART_SIZE_Y
           
 
Constructor Summary
ChartGenerator()
           
 
Method Summary
 JFreeChart createChart()
           
protected  JFreeChart createQQChart(java.lang.String title, java.lang.String xLabel, java.lang.String yLabel, XYDataset dataset, java.lang.String other)
           
protected  XYDataset createXYDataset(java.lang.String serie1, double[] x, double[] y, java.lang.String serie2, double y_intercept, double slope)
           
 JFreeChart getBoxAndWhiskerChart(java.lang.String title, java.lang.String xLabel, java.lang.String yLabel, int seriesCount, int categoryCount, java.lang.String[] seriesName, java.lang.String[][] categoryName, double[][][] values)
           
 JFreeChart getLineChart(java.lang.String title, java.lang.String xLabel, java.lang.String yLabel, double[] x, double[] y)
           
 JFreeChart getLineChart(java.lang.String title, java.lang.String xLabel, java.lang.String yLabel, double[] x, double[] y, java.lang.String other)
           
 JFreeChart getQQChart(java.lang.String title, java.lang.String xLabel, java.lang.String yLabel, java.lang.String serie1, double[] x, double[] y, java.lang.String serie2, double y_intercept, double slope, java.lang.String other)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHART_SIZE_X

protected final int CHART_SIZE_X
See Also:
Constant Field Values

CHART_SIZE_Y

protected final int CHART_SIZE_Y
See Also:
Constant Field Values
Constructor Detail

ChartGenerator

public ChartGenerator()
Method Detail

createChart

public JFreeChart createChart()

getLineChart

public JFreeChart getLineChart(java.lang.String title,
                               java.lang.String xLabel,
                               java.lang.String yLabel,
                               double[] x,
                               double[] y)

getLineChart

public JFreeChart getLineChart(java.lang.String title,
                               java.lang.String xLabel,
                               java.lang.String yLabel,
                               double[] x,
                               double[] y,
                               java.lang.String other)

getQQChart

public JFreeChart getQQChart(java.lang.String title,
                             java.lang.String xLabel,
                             java.lang.String yLabel,
                             java.lang.String serie1,
                             double[] x,
                             double[] y,
                             java.lang.String serie2,
                             double y_intercept,
                             double slope,
                             java.lang.String other)

getBoxAndWhiskerChart

public JFreeChart getBoxAndWhiskerChart(java.lang.String title,
                                        java.lang.String xLabel,
                                        java.lang.String yLabel,
                                        int seriesCount,
                                        int categoryCount,
                                        java.lang.String[] seriesName,
                                        java.lang.String[][] categoryName,
                                        double[][][] values)

createXYDataset

protected XYDataset createXYDataset(java.lang.String serie1,
                                    double[] x,
                                    double[] y,
                                    java.lang.String serie2,
                                    double y_intercept,
                                    double slope)

createQQChart

protected JFreeChart createQQChart(java.lang.String title,
                                   java.lang.String xLabel,
                                   java.lang.String yLabel,
                                   XYDataset dataset,
                                   java.lang.String other)