|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gumbo.visualize.data.layout.GraphLayoutNode.IndexCenterComparator
A comparator for ordering nodes (GraphLayoutNode) by index barycenter (see getIndexCenter()).
Constructor Summary | |
GraphLayoutNode.IndexCenterComparator(boolean sortAll)
Creates an instance. |
Method Summary | |
int |
compare(java.lang.Object nodeA,
java.lang.Object nodeB)
|
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 GraphLayoutNode.IndexCenterComparator(boolean sortAll)
sortAll
- If true, all nodes are sorted (compare() never
returns zero), with equal position nodes being sorted by hash code.Method Detail |
public int compare(java.lang.Object nodeA, java.lang.Object nodeB)
compare
in interface java.util.Comparator
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |