Style Intelligence v12.0

inetsoft.graph.data
Class BoxDataSet

java.lang.Object
  extended by inetsoft.graph.data.AbstractDataSet
      extended by inetsoft.graph.data.BoxDataSet
All Implemented Interfaces:
DataSet, Serializable, Cloneable

public class BoxDataSet
extends AbstractDataSet

This class is used to create a boxplot. For each measure column, five new columns are created: min, lower quartile, median, upper quartile, and max. The outliers are left in the measure column.
To create a boxplot, create a schema element with BoxPainter, and bind max, upper quartile, median, lower quartile, and min to the schema. Then create a point element and bind it to the measure.

See Also:
Serialized Form

Field Summary
static String MAX_PREFIX
          The the prefix for the maximum column.
static String MEDIUM_PREFIX
          The the prefix for the median column.
static String MIN_PREFIX
          The the prefix for the minimum column.
static String Q25_PREFIX
          The the prefix for the lower quartile column.
static String Q75_PREFIX
          The the prefix for the upper quartile column.
 
Constructor Summary
BoxDataSet(DataSet base, String[] dims, String[] measures)
          Create a boxplot dataset.
 
Method Summary
 Object clone()
          Clone the data set.
protected  int getColCount0()
          Return the number of columns in the data set without the calculated column.
protected  Comparator getComparator0(String col)
          Get the comparer to sort data at the specified column.
protected  Object getData0(int col, int row)
          Return the data at the specified cell.
protected  String getHeader0(int col)
          Return the column header at the specified column.
protected  int getRowCount0()
          Return the number of rows in the chart lens.
protected  Class getType0(String col)
          Get the data type of the column.
protected  int indexOfHeader0(String col)
          Get the index of the specified header.
protected  boolean isMeasure0(String col)
          Check if the column is measure.
 
Methods inherited from class inetsoft.graph.data.AbstractDataSet
addCalcColumn, addCalcRow, getCalcColumns, getCalcColumns, getCalcRows, getColCount, getComparator, getData, getData, getHeader, getRowCount, getType, indexOfHeader, isMeasure, prepareCalc, prepareGraph, process, removeCalcColumns, removeCalcColValues, removeCalcRows, removeCalcRows, removeCalcRowValues, removeCalcValues
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MIN_PREFIX

public static final String MIN_PREFIX
The the prefix for the minimum column.

See Also:
Constant Field Values

Q25_PREFIX

public static final String Q25_PREFIX
The the prefix for the lower quartile column.

See Also:
Constant Field Values

MEDIUM_PREFIX

public static final String MEDIUM_PREFIX
The the prefix for the median column.

See Also:
Constant Field Values

Q75_PREFIX

public static final String Q75_PREFIX
The the prefix for the upper quartile column.

See Also:
Constant Field Values

MAX_PREFIX

public static final String MAX_PREFIX
The the prefix for the maximum column.

See Also:
Constant Field Values
Constructor Detail

BoxDataSet

public BoxDataSet(DataSet base,
                  String[] dims,
                  String[] measures)
Create a boxplot dataset.

Parameters:
base - the specified base data set.
dims - the dimension to group the data.
measures - the measures to calculate box ranges.
Method Detail

getRowCount0

protected int getRowCount0()
Return the number of rows in the chart lens.

Specified by:
getRowCount0 in class AbstractDataSet

getColCount0

protected int getColCount0()
Return the number of columns in the data set without the calculated column.

Specified by:
getColCount0 in class AbstractDataSet

getData0

protected Object getData0(int col,
                          int row)
Return the data at the specified cell.

Specified by:
getData0 in class AbstractDataSet
Parameters:
col - the specified column index.
row - the specified row index.

indexOfHeader0

protected int indexOfHeader0(String col)
Get the index of the specified header.

Specified by:
indexOfHeader0 in class AbstractDataSet
Parameters:
col - the specified column header.

getHeader0

protected String getHeader0(int col)
Return the column header at the specified column.

Specified by:
getHeader0 in class AbstractDataSet
Parameters:
col - the specified column index.

getType0

protected Class getType0(String col)
Get the data type of the column.

Specified by:
getType0 in class AbstractDataSet

isMeasure0

protected boolean isMeasure0(String col)
Check if the column is measure.

Specified by:
isMeasure0 in class AbstractDataSet
Parameters:
col - the specified column name.

getComparator0

protected Comparator getComparator0(String col)
Get the comparer to sort data at the specified column.

Specified by:
getComparator0 in class AbstractDataSet
Parameters:
col - the specified column.

clone

public Object clone()
Description copied from class: AbstractDataSet
Clone the data set.

Specified by:
clone in interface DataSet
Overrides:
clone in class AbstractDataSet
Returns:
a copy of this object

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.