Package | com.yworks.yfiles.layout.seriesparallel |
Class | public class DefaultOutEdgeComparator |
Inheritance | DefaultOutEdgeComparator YObject Object |
Implements | Comparator |
It keeps the order of the edges in the graph for edges without com.yworks.yfiles.layout.PortConstraint s and considers the PortConstraints
so the order of the target nodes of the out-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.
See also
Method | Defined By | ||
---|---|---|---|
DefaultOutEdgeComparator(init:Boolean = true) | DefaultOutEdgeComparator | ||
compare(o1:Object, o2:Object):int | DefaultOutEdgeComparator | ||
equals(o:Object):Boolean | YObject | ||
getClass():Class [override] | DefaultOutEdgeComparator | ||
hashCode():int | YObject | ||
[static] | DefaultOutEdgeComparator |
Method | Defined By | ||
---|---|---|---|
initDefaultOutEdgeComparator():void | DefaultOutEdgeComparator |
DefaultOutEdgeComparator | () | Constructor |
public function DefaultOutEdgeComparator(init:Boolean = true)
init:Boolean (default = true )
|
compare | () | method |
public function compare(o1:Object, o2:Object):int
Parameters
o1:Object | |
o2:Object |
int |
getClass | () | method |
override public function getClass():Class
ReturnsClass |
initDefaultOutEdgeComparator | () | method |
protected final function initDefaultOutEdgeComparator():void
newDefaultOutEdgeComparator | () | method |
public static function newDefaultOutEdgeComparator():DefaultOutEdgeComparator
ReturnsDefaultOutEdgeComparator |