com.jgraph.layout
public class JGraphFacade.DefaultComparator extends java.lang.Object implements java.util.Comparator
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 and Description |
---|
JGraphFacade.DefaultComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(java.lang.Object c1,
java.lang.Object c2) |
Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.