Package | com.yworks.yfiles.layout.tree |
Interface | public interface PortAssignment |
Implementors | DefaultPortAssignment |
See also
Method | Defined By | ||
---|---|---|---|
Called by com.yworks.yfiles.layout.tree.GenericTreeLayouter before the actual layout of the graph takes place. | PortAssignment |
assignPorts | () | method |
public function assignPorts(graph:LayoutGraph, node:Node):void
Called by com.yworks.yfiles.layout.tree.GenericTreeLayouter before the actual layout of the graph takes place. This method assigns both the single incoming edge's target port as well as all source ports for all outgoing child edges. Note that at the time this method gets invoked, GenericTreeLayouter may have reversed some edges in order to normalize the tree structure.
Parameters
graph:LayoutGraph — the graph instance the node is part of
| |
node:Node — the node whose adjacent edges' ports should be set
|
See also