|
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
inetsoft.graph.data.AbstractDataSetFilter
inetsoft.graph.data.SortedDataSet
public class SortedDataSet
SortedDataSet sorts the base data set by comparing the values of a measure or dimension.
| Constructor Summary | |
|---|---|
SortedDataSet(DataSet base)
Create an instance of SortedDataSet. |
|
SortedDataSet(DataSet base,
String[] cols)
Create an instance of SortedDataSet. |
|
| Method Summary | |
|---|---|
void |
addSortColumn(String col,
boolean sortrow)
Add a column to be sorted. |
Object |
clone()
Clone the data set. |
int |
getBaseRow(int r)
Get the base row index on its base data set of the specified row. |
Comparator |
getComparator0(String col)
Get the comparator for sorting. |
int |
getEndRow()
Get the ending row to sort. |
protected int |
getRowCount0()
Return the number of rows in the chart lens. |
String[] |
getSortColumns()
Get the sorting columns. |
int |
getStartRow()
Get the starting row to sort. |
void |
prepareCalc(String dim,
int[] rows)
This method must be called before the calculated columns can be used. |
void |
setComparator(String col,
Comparator comp)
Set the comparator for sorting. |
void |
setEndRow(int end)
Set the ending row to sort. |
void |
setStartRow(int start)
Set the starting row to sort. |
| Methods inherited from class inetsoft.graph.data.AbstractDataSetFilter |
|---|
convertToField, getBaseCol, getCalcColumns, getCalcRows, getColCount0, getData0, getDataSet, getDrillHyperlinks, getDrillHyperlinks, getFormat, getFormat, getHeader0, getHyperlink, getHyperlink, getRootCol, getRootDataSet, getRootRow, 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, 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, removeCalcColumns, removeCalcColValues, removeCalcRows, removeCalcRows, removeCalcRowValues |
| Constructor Detail |
|---|
public SortedDataSet(DataSet base)
base - the specified base data set.
public SortedDataSet(DataSet base,
String[] cols)
base - the specified base data set.cols - the sorting column.| Method Detail |
|---|
public void addSortColumn(String col,
boolean sortrow)
col - the sorting column.sortrow - true to sort using the row comparison of DataSetComparator.public String[] getSortColumns()
public void prepareCalc(String dim,
int[] rows)
prepareCalc in interface DataSetprepareCalc in class AbstractDataSetdim - 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 setComparator(String col,
Comparator comp)
public Comparator getComparator0(String col)
getComparator0 in class AbstractDataSetFiltercol - the specified column.
public int getBaseRow(int r)
getBaseRow in interface DataSetFiltergetBaseRow in class AbstractDataSetFilterr - the specified row index.
protected int getRowCount0()
getRowCount0 in class AbstractDataSetFilterpublic void setStartRow(int start)
public int getStartRow()
public void setEndRow(int end)
end - the ending row (non-inclusive). Use -1 to use all rows.public int getEndRow()
public Object clone()
clone in interface DataSetclone in class AbstractDataSetFilter
|
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 | ||||||||