infovis.column
Class ColumnSorter

java.lang.Object
  extended by infovis.column.ColumnLink
      extended by infovis.column.ColumnSorter
All Implemented Interfaces:
Serializable, EventListener, ChangeListener

public class ColumnSorter
extends ColumnLink

Maintains a column sorted according to the order of another column.

Version:
$Revision: 1.6 $
Author:
Jean-Daniel Fekete
See Also:
Serialized Form

Constructor Summary
ColumnSorter(Column col)
          Creates a ColumnSorter.
 
Method Summary
 IntColumn getSortedColumn()
          Returns the sorted column.
 void update()
          This method is called each time the from Column is modified.
 
Methods inherited from class infovis.column.ColumnLink
dispose, getFromColumn, getToColumn, stateChanged, updateColumn
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColumnSorter

public ColumnSorter(Column col)
Creates a ColumnSorter.

Parameters:
col - the column used to sort.
Method Detail

update

public void update()
This method is called each time the from Column is modified. It should recompute the other column.

Specified by:
update in class ColumnLink

getSortedColumn

public IntColumn getSortedColumn()
Returns the sorted column.

Returns:
the sorted column.


Copyright © 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.