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. in. within given layers.


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

Method Detail

getLayers

public 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 diferent layers
Returns:
an array of length maxLayer containing nodelists. Each nodelist contains the nodes of a corrsponding layer. The order of the nodes within each nodelist represents the sequence of the nodes within their layer.

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

2003