Packagecom.yworks.yfiles.layout.seriesparallel
Interfacepublic interface PortAssignment
Implementors DefaultPortAssignment

This interface is used by com.yworks.yfiles.layout.seriesparallel.SeriesParallelLayouter. Classes implementing this interface are responsible for the assignment of the edges' ports.

See also

com.yworks.yfiles.layout.seriesparallel.SeriesParallelLayouter


Public Methods
 MethodDefined By
  
assignPorts(graph:LayoutGraph, node:Node):void
Called by com.yworks.yfiles.layout.seriesparallel.SeriesParallelLayouter before the actual layout of the graph takes place.
PortAssignment
Method Detail
assignPorts()method
public function assignPorts(graph:LayoutGraph, node:Node):void

Called by com.yworks.yfiles.layout.seriesparallel.SeriesParallelLayouter before the actual layout of the graph takes place. This method assigns both the incoming edges target ports as well as all source ports for the outgoing edges. At this point outgoing edges are ordered according the specified out-edge comparator from left to right and incoming edges are in the order of the subgraphs their coming from.

Parameters

graph:LayoutGraph — the graph instance the node is part of
 
node:Node — the node whose adjacent edges' ports should be set

See also