public interface ISequencer
HierarchicLayoutCore
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 FixedElementsSequencer
or FromScratchSequencer
).
Modifier and Type | Method and Description |
---|---|
void |
sequenceNodeLayers(LayoutGraph graph,
ILayers layers,
ILayoutDataProvider ldp,
IItemFactory itemFactory)
Calculates the sequence of the nodes within each
layer . |
void sequenceNodeLayers(LayoutGraph graph, ILayers layers, ILayoutDataProvider ldp, IItemFactory itemFactory)
layer
.
This method is called by HierarchicLayoutCore
during the second phase and
finally writes back the calculated sequence using the ILayer.setNodeOrder(com.yworks.yfiles.algorithms.YList)
method.
graph
- the input graphlayers
- the given ILayers
instance containing the elements in the layeringldp
- the ILayoutDataProvider
implementation which provides access to the INodeData
and IEdgeData
instancesitemFactory
- the IItemFactory
used temporarily for modifying the graph instance