freemind.modes
Class ControllerAdapter.nodesDepthComparator

java.lang.Object
  extended byfreemind.modes.ControllerAdapter.nodesDepthComparator
All Implemented Interfaces:
java.util.Comparator
Enclosing class:
ControllerAdapter

protected class ControllerAdapter.nodesDepthComparator
extends java.lang.Object
implements java.util.Comparator

This class sortes nodes by ascending depth of their paths to root. This is useful to assure that children are cutted before their fathers!!!. Moreover, it sorts nodes with the same depth according to their position relative to each other.


Constructor Summary
ControllerAdapter.nodesDepthComparator()
           
 
Method Summary
 int compare(java.lang.Object p1, java.lang.Object p2)
           
 
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

ControllerAdapter.nodesDepthComparator

public ControllerAdapter.nodesDepthComparator()
Method Detail

compare

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