|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecty.layout.seriesparallel.DefaultOutEdgeComparator
public class DefaultOutEdgeComparator
DefaultOutEdgeComparator
is the default implementation for the out-edge comparator used in
SeriesParallelLayouter
.
It keeps the order of the edges in the graph for edges without PortConstraint
s and considers the
PortConstraint
s such that the order of the target nodes of the outgoing edges is similar to the port location at
the source node. Note that this won't work for all cases because the target nodes may not be completely
independent.
SeriesParallelLayouter.getDefaultOutEdgeComparator()
Constructor Summary | |
---|---|
DefaultOutEdgeComparator()
Creates a DefaultOutEdgeComparator instance with default settings. |
Method Summary | |
---|---|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compares the two given edges considering their PortConstraint s. |
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 DefaultOutEdgeComparator()
DefaultOutEdgeComparator
instance with default settings.
Method Detail |
---|
public int compare(java.lang.Object o1, java.lang.Object o2)
PortConstraint
s.
The order of edges is kept unless there are PortConstraint
s assigned. Then the edges will be sorted to
avoid edge crossings.
compare
in interface java.util.Comparator
o1
- the first edgeo2
- the second edge
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |