- All Implemented Interfaces:
- java.util.Comparator
- Enclosing class:
- JGraphFacade
public class JGraphFacade.DefaultComparator
extends java.lang.Object
implements java.util.Comparator
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.