Package | com.yworks.yfiles.layout.hierarchic.incremental |
Interface | public interface LayeredComponentsMerger |
Implementors | DefaultLayeredComponentsMerger |
See also
Method | Defined By | ||
---|---|---|---|
All nodes in srcLayers and targetLayers are part of graph at the moment of invocation. | LayeredComponentsMerger |
merge | () | method |
public function merge(graph:LayoutGraph, ldp:LayoutDataProvider, srcLayers:Layers, targetLayers:Layers):void
All nodes in srcLayers and targetLayers are part of graph at the moment of invocation. The state of srcLayers is discarded after this call and need not be updated to reflect the changes. targetLayers must be updated accordingly.
Parameters
graph:LayoutGraph — the graph that contains the nodes in srcLayers and targetLayers .
| |
ldp:LayoutDataProvider — the LayoutDataProvider that can be used to query the layer indices
| |
srcLayers:Layers — the Layers implementation that contains the layers that will be merged into targetLayers
| |
targetLayers:Layers — the Layers that will be modified to contain the resulting layering
|