You are currently viewing a snapshot of taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to, please file a bug.

All Packages  This Package  Class Hierarchy  Class Search  Index

Class grendel.view.Sorter


This sorts a set of messages by some metric. The set of messages may already be arranged into a thread hierarchy; in that case, siblings are sorted while leaving parent/child relationships intact. The sets of messages are accessed via the ISortable interface.

See Also: ISortable, Threader, Comparer, QSort

class  Sorter
     extends java.lang.Object
          // Fields 2
     private QSort sorter;
     private Vector v;

          // Constructors 1
     public Sorter(Comparer);

          // Methods 2
     public void sortMessageChildren(ISortable);
     private void sortMessageChildren_1(ISortable);



   private Vector v


   private QSort sorter



   public Sorter(Comparer comparer) 

Creates an object for sorting messages. Use the sortMessageChildren() method to sort them.

Parameter Description
comparer The object which compares two ISortable objects for ordering.



   public void sortMessageChildren(ISortable sortable_root) 

Sorts the set of messages indicated by sortable_root. The child-list of sortable_root will be modified (reordered) upon completion (as will all grandchildren.)

Parameter Description
sortable_root The root object; it should have children, but no siblings.


   private void sortMessageChildren_1(ISortable parent) 

All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4