Packagecom.yworks.yfiles.layout.hierarchic
Interfacepublic interface LayerSequencer
Implementors ClassicLayerSequencer

Classes implementing this interface calculate the order of nodes within the different layers that the graph has been partitioned into.



Public Methods
 MethodDefined By
  
getLayers(g:LayoutGraph, layerID:NodeMap, maxLayer:int):Vector.<Object>
Calculates the sequence of nodes within each layer.
LayerSequencer
Method Detail
getLayers()method
public function getLayers(g:LayoutGraph, layerID:NodeMap, maxLayer:int):Vector.<Object>

Calculates the sequence of nodes within each layer.

Parameters

g:LayoutGraph — the graph being acted upon
 
layerID:NodeMap — provides for each node an integral number signifying the layer of that node. The first layer has the number 0.
 
maxLayer:int — the number of different layers

Returns
Vector.<Object> — an array of length maxLayer containing node lists. Each node list contains the nodes of a corresponding layer. The order of the nodes within each node list represents the sequence of the nodes within their layer.