Class JGraphFacade.DefaultComparator
java.lang.Object
com.jgraph.layout.JGraphFacade.DefaultComparator
- All Implemented Interfaces:
Comparator
- Enclosing class:
JGraphFacade
A default comparator for ordering cell views. Returns the order of the
cells as ordered in
roots in the model. Enables layouts
with levels to be laid out deterministically. Be very careful
using the default comparator on the default graph model,
getIndexOfRoot has linear performance and so sorting the
entire model roots will have quadratic performance.-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
DefaultComparator
public DefaultComparator()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator
-