edu.ucla.stat.SOCR.chart.data
Class DataConvertor

java.lang.Object
  extended by edu.ucla.stat.SOCR.chart.data.DataConvertor

public class DataConvertor
extends java.lang.Object

Convert various JFreeChart Dataset to JTable

Author:
jenny Cui

Field Summary
protected  java.lang.String DELIMITERS
           
 
Constructor Summary
DataConvertor()
           
 
Method Summary
 void data2Table(java.lang.String[] raw_y, double[] transformed, java.lang.String colname1, java.lang.String colname2, int row_count)
          for QQPower, use data from one array to fill a JTable
 void dataset2Table_vertical(CategoryDataset dataset)
          Use the data from a CategoryDataset to fill a JTable
 void dataset2Table(AbstractDataset dataset, int type)
           
 void dataset2Table(CategoryDataset dataset)
          Use the data from a CategoryDataset to fill a JTable
 void dataset2Table(DefaultPieDataset dataset)
          use the data from a DefaultPieDataset to fill a JTable
 void dataset2Table(DefaultPieDataset dataset, java.lang.String[] pulloutFlag)
           
 void dataset2Table(DefaultStatisticalCategoryDataset dataset)
          Use the data from a DefaultStatisticalCategoryDataset to fill a JTable
 void dataset2Table(IntervalXYDataset dataset)
          use data from a IntervalXYDataset to fill a JTable
 void dataset2Table(TimeSeriesCollection dataset)
          use data from a TimeSeriesCollection dataset to fill a JTable
 void dataset2Table(ValueDataset dataset)
          use data from a ValueDataset to fill a JTable
 void dataset2Table(XYDataset dataset)
          use data from a XYDataset to fill a JTable
 void dataset2Table(XYZDataset dataset)
          use data from a XYZDataset to fill a JTable
 void dataset2TableA(DefaultStatisticalCategoryDataset dataset)
          Use the data from a DefaultStatisticalCategoryDataset to fill a JTable separate the (mean, std) into 2 columns
 AbstractDataset getDataset()
           
 javax.swing.JTable getTable()
          returns a JTable object containing the Example Data
 void multiY2Table(java.lang.String[][] raw_y, int row_count, int col_count, java.lang.String[] colName)
           
 void normalDataset2Table(double mean, double stdDev)
           
 void Power2Table(XYDataset ds)
          for PowerTrnsformedchart, use data from 2 array to fill a JTable
 void valueList2Table_vertical(java.lang.String[][] values_storage, int serieCount, int catCount)
           
 void valueList2Table(java.lang.String[][] values_storage, int serieCount, int catCount)
          Use the data in the given 2 dimension array to form a JTable
 void XY2Table(java.lang.String[] raw_x, java.lang.String[] raw_y, int row_count)
          For QQ, use data from 2 arrays to fill a JTable
 void Y2Table(java.lang.String[] raw_y, int row_count)
          for QQ, use data from one array to fill a JTable
 void Y2Table(java.lang.String[] raw_x, java.lang.String[] raw_y, double[] transformed_x, double[] transformed_y, int row_count)
          for ScatterPower, use data from XY array to fill a JTable
 void YIntervalDataset2Table(IntervalXYDataset dataset)
          use data from a IntervalXYDataset to fill a JTable
 void YIntervalDataset2TableA(IntervalXYDataset dataset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DELIMITERS

protected final java.lang.String DELIMITERS
See Also:
Constant Field Values
Constructor Detail

DataConvertor

public DataConvertor()
Method Detail

dataset2Table

public void dataset2Table(AbstractDataset dataset,
                          int type)

dataset2Table

public void dataset2Table(DefaultPieDataset dataset)
use the data from a DefaultPieDataset to fill a JTable

Parameters:
dataset -

dataset2Table

public void dataset2Table(DefaultPieDataset dataset,
                          java.lang.String[] pulloutFlag)

dataset2Table

public void dataset2Table(DefaultStatisticalCategoryDataset dataset)
Use the data from a DefaultStatisticalCategoryDataset to fill a JTable

Parameters:
dataset -

dataset2TableA

public void dataset2TableA(DefaultStatisticalCategoryDataset dataset)
Use the data from a DefaultStatisticalCategoryDataset to fill a JTable separate the (mean, std) into 2 columns

Parameters:
dataset -

dataset2Table

public void dataset2Table(CategoryDataset dataset)
Use the data from a CategoryDataset to fill a JTable

Parameters:
dataset -

dataset2Table_vertical

public void dataset2Table_vertical(CategoryDataset dataset)
Use the data from a CategoryDataset to fill a JTable

Parameters:
dataset -

valueList2Table

public void valueList2Table(java.lang.String[][] values_storage,
                            int serieCount,
                            int catCount)
Use the data in the given 2 dimension array to form a JTable

Parameters:
values_storage -
serieCount -
catCount -

valueList2Table_vertical

public void valueList2Table_vertical(java.lang.String[][] values_storage,
                                     int serieCount,
                                     int catCount)

XY2Table

public void XY2Table(java.lang.String[] raw_x,
                     java.lang.String[] raw_y,
                     int row_count)
For QQ, use data from 2 arrays to fill a JTable

Parameters:
raw_x -
raw_y -
row_count -

Power2Table

public void Power2Table(XYDataset ds)
for PowerTrnsformedchart, use data from 2 array to fill a JTable

Parameters:
raw_y -
row_count -

Y2Table

public void Y2Table(java.lang.String[] raw_y,
                    int row_count)
for QQ, use data from one array to fill a JTable

Parameters:
raw_y -
row_count -

multiY2Table

public void multiY2Table(java.lang.String[][] raw_y,
                         int row_count,
                         int col_count,
                         java.lang.String[] colName)

data2Table

public void data2Table(java.lang.String[] raw_y,
                       double[] transformed,
                       java.lang.String colname1,
                       java.lang.String colname2,
                       int row_count)
for QQPower, use data from one array to fill a JTable

Parameters:
raw_y -
row_count -

Y2Table

public void Y2Table(java.lang.String[] raw_x,
                    java.lang.String[] raw_y,
                    double[] transformed_x,
                    double[] transformed_y,
                    int row_count)
for ScatterPower, use data from XY array to fill a JTable

Parameters:
raw_y -
row_count -

dataset2Table

public void dataset2Table(TimeSeriesCollection dataset)
use data from a TimeSeriesCollection dataset to fill a JTable

Parameters:
dataset -

YIntervalDataset2Table

public void YIntervalDataset2Table(IntervalXYDataset dataset)
use data from a IntervalXYDataset to fill a JTable

Parameters:
dataset -

YIntervalDataset2TableA

public void YIntervalDataset2TableA(IntervalXYDataset dataset)

dataset2Table

public void dataset2Table(IntervalXYDataset dataset)
use data from a IntervalXYDataset to fill a JTable

Parameters:
dataset -

dataset2Table

public void dataset2Table(XYDataset dataset)
use data from a XYDataset to fill a JTable

Parameters:
dataset -

dataset2Table

public void dataset2Table(XYZDataset dataset)
use data from a XYZDataset to fill a JTable

Parameters:
dataset -

dataset2Table

public void dataset2Table(ValueDataset dataset)
use data from a ValueDataset to fill a JTable

Parameters:
dataset -

normalDataset2Table

public void normalDataset2Table(double mean,
                                double stdDev)
Parameters:
mean -
stdDev -

getTable

public javax.swing.JTable getTable()
returns a JTable object containing the Example Data


getDataset

public AbstractDataset getDataset()