pivot.wtk
Class TreeView.PathComparator

java.lang.Object
  extended by pivot.wtk.TreeView.PathComparator
All Implemented Interfaces:
java.util.Comparator<Sequence<java.lang.Integer>>
Enclosing class:
TreeView

public static final class TreeView.PathComparator
extends java.lang.Object
implements java.util.Comparator<Sequence<java.lang.Integer>>

A comparator that sorts paths by the order in which they would visually appear in a fully expanded tree, otherwise known as their "row order".

Author:
tvolkert

Constructor Summary
TreeView.PathComparator()
           
 
Method Summary
 int compare(Sequence<java.lang.Integer> path1, Sequence<java.lang.Integer> path2)
           
 
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
 

Constructor Detail

TreeView.PathComparator

public TreeView.PathComparator()
Method Detail

compare

public int compare(Sequence<java.lang.Integer> path1,
                   Sequence<java.lang.Integer> path2)
Specified by:
compare in interface java.util.Comparator<Sequence<java.lang.Integer>>