y.layout.tree
Class XCoordComparator
java.lang.Object
y.layout.tree.XCoordComparator
- All Implemented Interfaces:
- Comparator, Comparators.PartialOrder
public class XCoordComparator
- extends Object
- implements Comparator, Comparators.PartialOrder
This comparator compares edges by examining the x-coordinates of the centers
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 is actually expected to be
Edge
.
Compares the x-coordinates of the centers of the target nodes.
- Specified by:
compare
in interface Comparator