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

This interface is used by com.yworks.yfiles.layout.tree.GenericTreeLayouter. Classes implementing this interface are responsible for the assignment of the edges' ports. com.yworks.yfiles.layout.tree.NodePlacer instances will have to obey the currently set ports.

See also

com.yworks.yfiles.layout.tree.GenericTreeLayouter
com.yworks.yfiles.layout.tree.NodePlacer


Public Methods
 MethodDefined By
  
assignPorts(graph:LayoutGraph, node:Node):void
Called by com.yworks.yfiles.layout.tree.GenericTreeLayouter 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.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