Style Intelligence v12.0

inetsoft.graph.data
Class SumDataSet

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

public class SumDataSet
extends AbstractDataSetFilter

This class prepares sum data for measures, and the sum data is grouped by dimensions.

See Also:
Serialized Form

Field Summary
static String ALL_HEADER_PREFIX
          The all header prefix.
static String SUM_HEADER
          The sum header.
static String SUM_HEADER_PREFIX
          The sum header prefix.
 
Constructor Summary
SumDataSet(DataSet base, String[] measures, String dim)
          Create a sum data set.
 
Method Summary
 void addAllColumn(String cname)
          Add all column.
 Object clone()
          Clone the data set.
 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.
 
Methods inherited from class inetsoft.graph.data.AbstractDataSetFilter
convertToField, getCalcColumns, getCalcRows, getColCount0, getComparator0, getData0, getDataSet, getDrillHyperlinks, getDrillHyperlinks, getFormat, getFormat, getHeader0, getHyperlink, getHyperlink, getRootCol, getRootDataSet, getRootRow, getRowCount0, getType0, indexOfHeader0, isMeasure0, prepareGraph, removeCalcValues
 
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
 

Field Detail

SUM_HEADER

public static final String SUM_HEADER
The sum header.

See Also:
Constant Field Values

SUM_HEADER_PREFIX

public static String SUM_HEADER_PREFIX
The sum header prefix.


ALL_HEADER_PREFIX

public static String ALL_HEADER_PREFIX
The all header prefix.

Constructor Detail

SumDataSet

public SumDataSet(DataSet base,
                  String[] measures,
                  String dim)
Create a sum data set.

Parameters:
base - the specified base data set.
measures - the measures to summarize.
dim - the dimension to add summary header.
Method Detail

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
Overrides:
getBaseRow in class AbstractDataSetFilter
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
Overrides:
getBaseCol in class AbstractDataSetFilter
Parameters:
c - the specified column index.
Returns:
the base column index on base data set, -1 if no base column.

addAllColumn

public void addAllColumn(String cname)
Add all column.


clone

public Object clone()
Clone the data set.

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

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