Style Intelligence v12.0

inetsoft.graph.data
Interface DataSetComparator

All Superinterfaces:
Comparator

public interface DataSetComparator
extends Comparator

This interface defines the api for a comparator that is tied to a specific dataset (e.g. sorting by the value of a different column).


Method Summary
 int compare(DataSet data, int row1, int row2)
          Compare the two rows.
 Comparator getComparator(int row)
          Get the comparator for a sub-range of the dataset where the row is in.
 void setDataSet(DataSet data)
          Set the dataset to be sorted using this comparator.
 
Methods inherited from interface java.util.Comparator
compare, equals
 

Method Detail

setDataSet

void setDataSet(DataSet data)
Set the dataset to be sorted using this comparator.


getComparator

Comparator getComparator(int row)
Get the comparator for a sub-range of the dataset where the row is in. If there is no separate comparator, just return self.


compare

int compare(DataSet data,
            int row1,
            int row2)
Compare the two rows. This method is called when the comparison should use the row value instead of aggregated value.


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