infovis.column
Class ColumnNameComparator

java.lang.Object
  extended by infovis.column.ColumnNameComparator
All Implemented Interfaces:
Comparator

public class ColumnNameComparator
extends Object
implements Comparator

Compare Columns by name to sort column in alphabetic order.

Version:
$Revision: 1.7 $
Author:
Jean-Daniel Fekete

Constructor Summary
ColumnNameComparator()
           
 
Method Summary
 int compare(Object o1, Object o2)
           
static ColumnNameComparator sharedInstance()
          Returns a shared instance of ColumnNameComparator.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

ColumnNameComparator

public ColumnNameComparator()
Method Detail

sharedInstance

public static ColumnNameComparator sharedInstance()
Returns a shared instance of ColumnNameComparator.

Returns:
a shared instance of ColumnNameComparator.

compare

public int compare(Object o1,
                   Object o2)
Specified by:
compare in interface Comparator
See Also:
Comparator.compare(Object, Object)


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