|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.graph.data.AbstractDataSet
public abstract class AbstractDataSet
This is the base class for data set. It implements the calculated columns.
| Constructor Summary | |
|---|---|
AbstractDataSet()
|
|
| Method Summary | |
|---|---|
void |
addCalcColumn(CalcColumn col)
Add a calculated columns. |
void |
addCalcRow(CalcRow row)
Add a calculated rows. |
Object |
clone()
Clone the data set. |
List |
getCalcColumns()
Get the calculated columns. |
protected List |
getCalcColumns(boolean self)
Get the calculated columns. |
List |
getCalcRows()
Get the calculated rows. |
int |
getColCount()
Return the number of columns in the data set. |
protected abstract int |
getColCount0()
Return the number of columns in the data set without the calculated columns. |
Comparator |
getComparator(String col)
Get the comparer to sort data at the specified column. |
protected abstract Comparator |
getComparator0(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. |
protected abstract Object |
getData0(int col,
int row)
Return the data at the specified cell. |
String |
getHeader(int col)
Return the column header at the specified column. |
protected abstract String |
getHeader0(int col)
Return the column header at the specified column. |
int |
getRowCount()
Return the number of rows in the data set. |
protected abstract int |
getRowCount0()
Return the number of columns in the data set without the calculated rows. |
Class |
getType(String col)
Get the data type of the column. |
protected abstract Class |
getType0(String col)
Get the data type of the column. |
int |
indexOfHeader(String col)
Get the index of the specified header. |
protected abstract int |
indexOfHeader0(String col)
Get the index of the specified header. |
boolean |
isMeasure(String col)
Check if the column is measure. |
protected abstract boolean |
isMeasure0(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 |
process(EGraph graph,
Coordinate coord)
Generator dimension scale map for this data set. |
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 colum and row values. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractDataSet()
| Method Detail |
|---|
public void prepareCalc(String dim,
int[] rows)
prepareCalc in interface DataSetdim - 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.
public void prepareGraph(EGraph graph,
Coordinate coord)
prepareGraph in interface DataSetgraph - the (innermost) egraph that will plot this dataset.coord - the (innermost) coordiante that will plot this dataset.public final int getRowCount()
getRowCount in interface DataSetpublic final int getColCount()
getColCount in interface DataSet
public Object getData(String col,
int row)
getData in interface DataSetcol - the specified column name.row - the specified row index.
public Object getData(int col,
int row)
getData in interface DataSetcol - the specified column index.row - the specified row index.
public final int indexOfHeader(String col)
indexOfHeader in interface DataSetcol - the specified column header.public final String getHeader(int col)
getHeader in interface DataSetcol - the specified column index.
public final Class getType(String col)
getType in interface DataSetpublic final boolean isMeasure(String col)
isMeasure in interface DataSetcol - the specified column name.
public final Comparator getComparator(String col)
getComparator in interface DataSetcol - the specified column.
protected abstract Object getData0(int col,
int row)
col - the specified column index.row - the specified row index.protected abstract int getColCount0()
protected abstract int getRowCount0()
protected abstract int indexOfHeader0(String col)
col - the specified column header.protected abstract String getHeader0(int col)
col - the specified column index.protected abstract Class getType0(String col)
protected abstract boolean isMeasure0(String col)
col - the specified column name.protected abstract Comparator getComparator0(String col)
col - the specified column.public void addCalcColumn(CalcColumn col)
addCalcColumn in interface DataSetpublic List getCalcColumns()
getCalcColumns in interface DataSetprotected List getCalcColumns(boolean self)
self - true to get the current data, otherwise recursively get all
calc columns.public void removeCalcColumns()
removeCalcColumns in interface DataSetpublic void addCalcRow(CalcRow row)
addCalcRow in interface DataSetpublic List getCalcRows()
getCalcRows in interface DataSetpublic void removeCalcRows()
removeCalcRows in interface DataSetpublic void removeCalcRows(Class cls)
removeCalcRows in interface DataSetpublic void removeCalcValues()
removeCalcValues in interface DataSetpublic void removeCalcColValues()
DataSet
removeCalcColValues in interface DataSetpublic void removeCalcRowValues()
DataSet
removeCalcRowValues in interface DataSet
public void process(EGraph graph,
Coordinate coord)
public Object clone()
clone in interface DataSetclone in class Object
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||