/** * Create a new TreeIndex. * * @param t the ITable containing the data column to index * @param rows the RowManager of the ITable * @param col the Column instance to index * @param cmp the Comparator to use to sort data values * @throws IncompatibleComparatorException if the comparator is not compatible with the column's * data type */ public TreeIndex(ITable t, RowManager rows, Column col, Comparator cmp) throws IncompatibleComparatorException { m_table = t; m_rows = rows; m_col = col; m_index = SortedMapFactory.getMap(col.getColumnType(), cmp, false); index(); m_col.addColumnListener(this); m_table.addTableListener(this); }