|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.layout.tree.XCoordComparator
public class XCoordComparator
This Comparator
compares edges by examining the x-coordinates of the centers of their target nodes.
Constructor Summary | |
---|---|
XCoordComparator()
Creates a new XCoordComparator instance. |
Method Summary | |
---|---|
int |
compare(java.lang.Object edge1,
java.lang.Object edge2)
Compares two edges by 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 |
Methods inherited from interface java.util.Comparator |
---|
equals |
Constructor Detail |
---|
public XCoordComparator()
XCoordComparator
instance.
Method Detail |
---|
public int compare(java.lang.Object edge1, java.lang.Object edge2)
compare
in interface java.util.Comparator
edge1
- the first edgeedge2
- the second edge
0
if both target nodes are at the same x-coordinate
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |