edu.iastate.utils.gui
Class GUIUtils.ColumnSorter

java.lang.Object
  extended byedu.iastate.utils.gui.GUIUtils.ColumnSorter
All Implemented Interfaces:
java.util.Comparator
Enclosing class:
GUIUtils

public static class GUIUtils.ColumnSorter
extends java.lang.Object
implements java.util.Comparator

This comparator is used to sort vectors of data


Field Summary
(package private)  boolean ascending
           
(package private)  int colIndex
           
 
Constructor Summary
(package private) GUIUtils.ColumnSorter(int colIndex, boolean ascending)
           
 
Method Summary
 int compare(java.lang.Object a, java.lang.Object b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

colIndex

int colIndex

ascending

boolean ascending
Constructor Detail

GUIUtils.ColumnSorter

GUIUtils.ColumnSorter(int colIndex,
                      boolean ascending)
Method Detail

compare

public int compare(java.lang.Object a,
                   java.lang.Object b)
Specified by:
compare in interface java.util.Comparator