Search this API

y.layout.tree
Class XCoordComparator

java.lang.Object
  extended by 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.


Constructor Summary
XCoordComparator()
           
 
Method Summary
 int compare(Object a, Object b)
          Object is actually expected to be 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 is actually expected to be Edge. Compares the x-coordinates of the centers of the target nodes.

Specified by:
compare in interface Comparator

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