|
JGraph
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgraph.layout.JGraphFacade.DefaultComparator
public class JGraphFacade.DefaultComparator
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 | |
---|---|
JGraphFacade.DefaultComparator()
|
Method Summary | |
---|---|
int |
compare(java.lang.Object c1,
java.lang.Object c2)
|
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 |
---|
public JGraphFacade.DefaultComparator()
Method Detail |
---|
public int compare(java.lang.Object c1, java.lang.Object c2)
compare
in interface java.util.Comparator
|
JGraph
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |