Style Intelligence v12.0

inetsoft.graph.data
Class AbstractDataSetFilter

java.lang.Object
  extended by inetsoft.graph.data.AbstractDataSet
      extended by inetsoft.graph.data.AbstractDataSetFilter
All Implemented Interfaces:
AttributeDataSet, DataSet, DataSetFilter, Serializable, Cloneable
Direct Known Subclasses:
SortedDataSet, SubDataSet, SumDataSet

public abstract class AbstractDataSetFilter
extends AbstractDataSet
implements DataSetFilter, AttributeDataSet

AbstactDataSetFilter implements common functions of DataSetFilter.

See Also:
Serialized Form

Constructor Summary
AbstractDataSetFilter(DataSet data)
          Create an instance of AbstractDataSetFilter.
 
Method Summary
 Object clone()
          Clone the data set.
protected  int convertToField(int col)
          Convert a column index to real field index if it is a calc column field index.
 int getBaseCol(int c)
          Get the base column index on its base data set of the specified column.
 int getBaseRow(int r)
          Get the base row index on its base data set of the specified row.
protected  List getCalcColumns(boolean selfOnly)
          Get the calculated columns.
 List getCalcRows()
          Get the calculated rows.
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.
 DataSet getDataSet()
          Get the base data set.
 HRef[] getDrillHyperlinks(int col, int row)
          Get the drill hyperlinks at the specified cell.
 HRef[] getDrillHyperlinks(String col, int row)
          Get the drill hyperlinks at the specified cell.
 Format getFormat(int col, int row)
          Get the per cell format.
 Format getFormat(String col, int row)
          Get the per cell format.
protected  String getHeader0(int col)
          Return the column header at the specified column.
 HRef getHyperlink(int col, int row)
          Get the hyperlink at the specified cell.
 HRef getHyperlink(String col, int row)
          Get the hyperlink at the specified cell.
 int getRootCol(int c)
          Get the root column index on its root data set of the specified column.
 DataSet getRootDataSet()
          Get the root data set.
 int getRootRow(int r)
          Get the root row index on its root data set of the specified row.
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.
 void prepareGraph(EGraph graph, Coordinate coord)
          Initialize any data for this graph.
 void removeCalcValues()
          Clear the calculated colum and row values.
 
Methods inherited from class inetsoft.graph.data.AbstractDataSet
addCalcColumn, addCalcRow, getCalcColumns, getColCount, getComparator, getData, getData, getHeader, getRowCount, getType, indexOfHeader, isMeasure, prepareCalc, process, removeCalcColumns, removeCalcColValues, removeCalcRows, removeCalcRows, removeCalcRowValues
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface inetsoft.graph.data.DataSet
addCalcColumn, addCalcRow, getCalcColumns, getColCount, getComparator, getData, getData, getHeader, getRowCount, getType, indexOfHeader, isMeasure, prepareCalc, removeCalcColumns, removeCalcColValues, removeCalcRows, removeCalcRows, removeCalcRowValues
 

Constructor Detail

AbstractDataSetFilter

public AbstractDataSetFilter(DataSet data)
Create an instance of AbstractDataSetFilter.

Method Detail

removeCalcValues

public void removeCalcValues()
Clear the calculated colum and row values.

Specified by:
removeCalcValues in interface DataSet
Overrides:
removeCalcValues in class AbstractDataSet

getCalcColumns

protected List getCalcColumns(boolean selfOnly)
Get the calculated columns.

Overrides:
getCalcColumns in class AbstractDataSet
Parameters:
selfOnly - true to get the current data, otherwise recursively get all calc columns.

getCalcRows

public List getCalcRows()
Get the calculated rows.

Specified by:
getCalcRows in interface DataSet
Overrides:
getCalcRows in class AbstractDataSet

prepareGraph

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

Specified by:
prepareGraph in interface DataSet
Overrides:
prepareGraph in class AbstractDataSet
Parameters:
graph - the (innermost) egraph that will plot this dataset.
coord - the (innermost) coordiante that will plot this dataset.

getRootDataSet

public DataSet getRootDataSet()
Get the root data set.

Specified by:
getRootDataSet in interface DataSetFilter

getRootRow

public int getRootRow(int r)
Get the root row index on its root data set of the specified row.

Specified by:
getRootRow in interface DataSetFilter
Parameters:
r - the specified row index.
Returns:
the root row index on root data set, -1 if no root row.

getRootCol

public int getRootCol(int c)
Get the root column index on its root data set of the specified column.

Specified by:
getRootCol in interface DataSetFilter
Parameters:
c - the specified column index.
Returns:
the root column index on root data set, -1 if no root column.

getBaseRow

public int getBaseRow(int r)
Get the base row index on its base data set of the specified row.

Specified by:
getBaseRow in interface DataSetFilter
Parameters:
r - the specified row index.
Returns:
the base row index on base data set, -1 if no base row.

getBaseCol

public int getBaseCol(int c)
Get the base column index on its base data set of the specified column.

Specified by:
getBaseCol in interface DataSetFilter
Parameters:
c - the specified column index.
Returns:
the base column index on base data set, -1 if no base column.

getHyperlink

public HRef getHyperlink(int col,
                         int row)
Get the hyperlink at the specified cell.

Specified by:
getHyperlink in interface AttributeDataSet
Parameters:
col - the specified column index.
row - the specified row index.
Returns:
the link at the specified cell.

getHyperlink

public HRef getHyperlink(String col,
                         int row)
Get the hyperlink at the specified cell.

Specified by:
getHyperlink in interface AttributeDataSet
Parameters:
col - the specified column name.
row - the specified row index.
Returns:
the link at the specified cell.

getDrillHyperlinks

public HRef[] getDrillHyperlinks(int col,
                                 int row)
Get the drill hyperlinks at the specified cell.

Specified by:
getDrillHyperlinks in interface AttributeDataSet
Parameters:
col - the specified column index.
row - the specified row index.
Returns:
the link at the specified cell.

getDrillHyperlinks

public HRef[] getDrillHyperlinks(String col,
                                 int row)
Get the drill hyperlinks at the specified cell.

Specified by:
getDrillHyperlinks in interface AttributeDataSet
Parameters:
col - the specified column name.
row - the specified row index.
Returns:
the link at the specified cell.

getFormat

public Format getFormat(int col,
                        int row)
Get the per cell format.

Specified by:
getFormat in interface AttributeDataSet
Parameters:
row - row number.
col - column number.
Returns:
format for the specified cell.

convertToField

protected int convertToField(int col)
Convert a column index to real field index if it is a calc column field index.


getFormat

public Format getFormat(String col,
                        int row)
Get the per cell format.

Specified by:
getFormat in interface AttributeDataSet
Parameters:
col - the specified column name.
row - the specified row index.
Returns:
format for the specified cell.

getDataSet

public DataSet getDataSet()
Get the base data set.

Specified by:
getDataSet in interface DataSetFilter
Returns:
the base data set.

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.
Returns:
the comparer to sort data at the specified column.

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.

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

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.

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.