freemind.view.mindmapview

Class MapView.nodesDepthComparator

Enclosing Class:
MapView
Implemented Interfaces:
Comparator

protected class MapView.nodesDepthComparator
extends java.lang.Object
implements 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!!!.

Constructor Summary

nodesDepthComparator()

Method Summary

int
compare(Object p1, Object p2)

Constructor Details

nodesDepthComparator

public nodesDepthComparator()

Method Details

compare

public int compare(Object p1,
                   Object p2)