Packagecom.yworks.yfiles.layout.hierarchic.incremental
Interfacepublic interface LayeredComponentsMerger
Implementors DefaultLayeredComponentsMerger

Merges two com.yworks.yfiles.layout.hierarchic.incremental.Layers instances, whose nodes reside in the same graph. Implementations of this interface may provide different strategies for merging.

See also

com.yworks.yfiles.layout.hierarchic.incremental.Layers


Public Methods
 MethodDefined By
  
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.
LayeredComponentsMerger
Method Detail
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