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 order of the nodes within each layer.

Implementations are used during the second phase of the hierarchic layout process and can be set using method IncrementalHierarchicLayouter.setFixedElementsSequencer(Sequencer) or IncrementalHierarchicLayouter.setFromScratchSequencer(Sequencer)).

See Also:
HierarchicLayouter.setSequencer(Sequencer), IncrementalHierarchicLayouter.setFixedElementsSequencer(Sequencer), IncrementalHierarchicLayouter.setFromScratchSequencer(Sequencer)
 
Your browser does not support SVG content.

Method Summary
 void sequenceNodeLayers(LayoutGraph graph, Layers layers, LayoutDataProvider ldp, ItemFactory itemFactory)
          Calculates the sequence of the nodes within each layer.
 

Method Detail

sequenceNodeLayers

void sequenceNodeLayers(LayoutGraph graph,
                        Layers layers,
                        LayoutDataProvider ldp,
                        ItemFactory itemFactory)
Calculates the sequence of the nodes within each layer.

This method is called by HierarchicLayouter during the second phase and finally writes back the calculated sequence using the Layer.setNodeOrder(y.base.YList) method.

Parameters:
graph - the input graph
layers - the given Layers instance containing the elements in the layering
ldp - the LayoutDataProvider implementation which provides access to the NodeData and EdgeData instances
itemFactory - the ItemFactory used temporarily for modifying the graph instance

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