Search this API

y.layout.hierarchic
Interface LayerSequencer

All Known Implementing Classes:
ClassicLayerSequencer

public interface LayerSequencer

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


Method Summary
 NodeList[] getLayers(LayoutGraph g, NodeMap layerID, int maxLayer)
          Calculates the sequence of nodes within each layer.
 

Method Detail

getLayers

NodeList[] getLayers(LayoutGraph g,
                     NodeMap layerID,
                     int maxLayer)
Calculates the sequence of nodes within each layer.

Parameters:
g - the graph being acted upon
layerID - provides for each node an integral number signifying the layer of that node. The first layer has the number 0.
maxLayer - the number of different layers
Returns:
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.

© Copyright 2000-2013,
yWorks GmbH.
All rights reserved.