Style Intelligence v12.0

inetsoft.graph.data
Interface DataSet

All Superinterfaces:
Cloneable, Serializable
All Known Subinterfaces:
AttributeDataSet, DataSetFilter
All Known Implementing Classes:
AbstractDataSet, AbstractDataSetFilter, BoxDataSet, DefaultDataSet, SortedDataSet, SubDataSet, SumDataSet

public interface DataSet
extends Cloneable, Serializable

DataSet, as the data provider, provides data for a graph.


Method Summary
 void addCalcColumn(CalcColumn col)
          Add a calculated columns.
 void addCalcRow(CalcRow col)
          Add a calculated rows.
 Object clone()
           
 List getCalcColumns()
          Get the calculated columns.
 List getCalcRows()
          Get the calculated rows.
 int getColCount()
          Return the number of columns in the data set.
 Comparator getComparator(String col)
          Get the comparer to sort data at the specified column.
 Object getData(int col, int row)
          Return the data at the specified cell.
 Object getData(String col, int row)
          Return the data at the specified cell.
 String getHeader(int col)
          Return the column header at the specified column.
 int getRowCount()
          Return the number of rows in the data set.
 Class getType(String col)
          Get the data type of the column.
 int indexOfHeader(String col)
          Get the index of the specified header.
 boolean isMeasure(String col)
          Check if the column is measure.
 void prepareCalc(String dim, int[] rows)
          This method must be called before the calculated columns can be used.
 void prepareGraph(EGraph graph, Coordinate coord)
          Initialize any data for this graph.
 void removeCalcColumns()
          Remove all calculated columns.
 void removeCalcColValues()
          Clear the calculated column values.
 void removeCalcRows()
          Remove all calculated rows.
 void removeCalcRows(Class cls)
          Remove calc rows with the specified type.
 void removeCalcRowValues()
          Clear the calculated row values.
 void removeCalcValues()
          Clear the calculated column and row values.
 

Method Detail

getData

Object getData(String col,
               int row)
Return the data at the specified cell.

Parameters:
col - the specified column name.
row - the specified row index.
Returns:
the data at the specified cell.

getData

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

Parameters:
col - the specified column index.
row - the specified row index.
Returns:
the data at the specified cell.

getHeader

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

Parameters:
col - the specified column index.
Returns:
the column header at the specified column.

getType

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


indexOfHeader

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

Parameters:
col - the specified column header.

getComparator

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

Parameters:
col - the specified column.

isMeasure

boolean isMeasure(String col)
Check if the column is measure. The designation of measure may impact the default scale created by plotter.

Parameters:
col - the specified column name.
Returns:
true if is measure, false otherwise.

getRowCount

int getRowCount()
Return the number of rows in the data set.


getColCount

int getColCount()
Return the number of columns in the data set.


prepareCalc

void prepareCalc(String dim,
                 int[] rows)
This method must be called before the calculated columns can be used.

Parameters:
dim - the innermost dimension column in the graph.
rows - a list of row indexes to calculate values using CalcColumn. Calculate every row in sequence if it's null.

prepareGraph

void prepareGraph(EGraph graph,
                  Coordinate coord)
Initialize any data for this graph.

Parameters:
graph - the (innermost) egraph that will plot this dataset.
coord - the (innermost) coordiante that will plot this dataset.

addCalcColumn

void addCalcColumn(CalcColumn col)
Add a calculated columns.


getCalcColumns

List getCalcColumns()
Get the calculated columns.


removeCalcColumns

void removeCalcColumns()
Remove all calculated columns.


addCalcRow

void addCalcRow(CalcRow col)
Add a calculated rows.


getCalcRows

List getCalcRows()
Get the calculated rows.


removeCalcRows

void removeCalcRows()
Remove all calculated rows.


removeCalcRows

void removeCalcRows(Class cls)
Remove calc rows with the specified type.


removeCalcValues

void removeCalcValues()
Clear the calculated column and row values.


removeCalcColValues

void removeCalcColValues()
Clear the calculated column values.


removeCalcRowValues

void removeCalcRowValues()
Clear the calculated row values.


clone

Object clone()
Returns:
a copy of this object

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