Search this API

y.layout.hierarchic.incremental
Interface Sequencer

All Known Implementing Classes:
AsIsSequencer, DefaultLayerSequencer, GivenSequenceSequencer

public interface Sequencer

This interface is used by HierarchicLayouter to calculate the node orders of nodes within the layers in a Layers object. Implementations are used during the second phase of the hierarchic layout process.

See Also:
HierarchicLayouter.setSequencer(Sequencer), IncrementalHierarchicLayouter.setFixedElementsSequencer(Sequencer), IncrementalHierarchicLayouter.setFromScratchSequencer(Sequencer)

Method Summary
 void sequenceNodeLayers(LayoutGraph graph, Layers layers, LayoutDataProvider ldp, ItemFactory itemFactory)
          Called by HierarchicLayouter during the second phase.
 

Method Detail

sequenceNodeLayers

void sequenceNodeLayers(LayoutGraph graph,
                        Layers layers,
                        LayoutDataProvider ldp,
                        ItemFactory itemFactory)
Called by HierarchicLayouter during the second phase. Calculates a sequence of the nodes in layers and finally writes back the calculated sequence using the Layer.setNodeOrder(y.base.YList) method.

Parameters:
graph - the graph that contains the elements from layers
layers - the Layer implementation that holds the Layers for sequencing
ldp - the LayoutDataProvider that provides the necessary NodeData and EdgeData
itemFactory - an ItemFactory implementation that can be used to modify the graph consistently

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