org.freehep.jas.plugin.tree
Class SorterAlphabetical

java.lang.Object
  extended byorg.freehep.jas.plugin.tree.SorterAlphabetical
All Implemented Interfaces:
FTreeNodeSorter

public class SorterAlphabetical
extends java.lang.Object
implements FTreeNodeSorter


Constructor Summary
SorterAlphabetical()
           
 
Method Summary
 java.lang.String algorithmName()
          The name of the sorting algorithm.
 java.lang.String description()
          The description of what the algorithm does.
 int sort(FTreeNode node1, FTreeNode node2)
          Sort two FTreeNodes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SorterAlphabetical

public SorterAlphabetical()
Method Detail

algorithmName

public java.lang.String algorithmName()
Description copied from interface: FTreeNodeSorter
The name of the sorting algorithm.

Specified by:
algorithmName in interface FTreeNodeSorter
Returns:
The name of the algorithm.

description

public java.lang.String description()
Description copied from interface: FTreeNodeSorter
The description of what the algorithm does.

Specified by:
description in interface FTreeNodeSorter
Returns:
The description.

sort

public int sort(FTreeNode node1,
                FTreeNode node2)
Description copied from interface: FTreeNodeSorter
Sort two FTreeNodes.

Specified by:
sort in interface FTreeNodeSorter
Parameters:
node1 - The first node.
node2 - The second node.
Returns:
+1 if node1 comes before node2 0 if their position is interchengable -1 if node1 comes after node1