Search this API

y.layout.hierarchic.incremental
Interface LayeredComponentsMerger

All Known Implementing Classes:
DefaultLayeredComponentsMerger

public interface LayeredComponentsMerger

Merges two Layers instances, whose nodes reside in the same graph. Implementations of this interface may provide different strategies for merging.


Method Summary
 void merge(LayoutGraph graph, LayoutDataProvider ldp, Layers srcLayers, Layers targetLayers)
          All nodes in srcLayers and targetLayers are part of graph at the moment of invocation.
 

Method Detail

merge

void merge(LayoutGraph graph,
           LayoutDataProvider ldp,
           Layers srcLayers,
           Layers targetLayers)
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 - the graph that contains the nodes in srcLayers and targetLayers.
ldp - the LayoutDataProvider that can be used to query the layer indices
srcLayers - the Layers implementation that contains the layers that will be merged into targetLayers
targetLayers - the Layers that will be modified to contain the resulting layering

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