net.maizegenetics.analysis.chart.TableReportBoxWhiskerCatDataset Maven / Gradle / Ivy
package net.maizegenetics.analysis.chart;
import net.maizegenetics.util.TableReport;
import org.jfree.data.statistics.DefaultBoxAndWhiskerCategoryDataset;
import java.util.ArrayList;
import java.util.Vector;
/**
* Title:
* Description: This will find the categories and estimate the box and wiskers for a Tablereport
* Copyright: Copyright (c) 2004
* Company:
* @author Ed Buckler
* @version 1.0
*/
public class TableReportBoxWhiskerCatDataset extends DefaultBoxAndWhiskerCategoryDataset {
String[] seriesNames;
public TableReportBoxWhiskerCatDataset(TableReport theTable, int seriesCategory, int[] seriesY) {
setTableReport(theTable, seriesCategory, seriesY);
}
public boolean setTableReport(TableReport theTable, int seriesCategory, int[] seriesY) {
int numRows = (int) theTable.getRowCount();
Vector theCategories = new Vector();
seriesNames = new String[seriesY.length];
Object[] theSN = theTable.getTableColumnNames();
for(int x=0; x