y.layout.tree
Class XCoordComparator
java.lang.Object
|
+--y.layout.tree.XCoordComparator
- All Implemented Interfaces:
- Comparator
- public class XCoordComparator
- extends Object
- implements Comparator
This comparator compares edges by examining the center-x coordinates
of their target nodes.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XCoordComparator
public XCoordComparator()
compare
public int compare(Object a,
Object b)
- Object must be an edge.
compares the center-x coords of the target nodes
- Specified by:
compare
in interface Comparator