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.


Constructor Summary
XCoordComparator()
           
 
Method Summary
 int compare(Object a, Object b)
          Object must be an edge.
 
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

XCoordComparator

public XCoordComparator()
Method Detail

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

© Copyright 2000-2003,
yWorks GmbH.
All rights reserved.

2003