com.jgraph.layout

Class JGraphFacade.DefaultComparator

public class JGraphFacade.DefaultComparator extends Object implements 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.
Method Summary
intcompare(Object c1, Object c2)

Method Detail

compare

public int compare(Object c1, Object c2)
Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.