|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface LayeredComponentsMerger
This interface merges two Layers instances whose nodes reside in the same graph.
Implementations of this interface may provide different strategies for merging.
Default implementations of this interface are
used internally by HierarchicLayouter and MultiComponentLayerer when e.g.
the graph is grouped or it consists of more than one connected component.
![]() |
![]() |
| Method Summary | |
|---|---|
void |
merge(LayoutGraph graph,
LayoutDataProvider ldp,
Layers srcLayers,
Layers targetLayers)
Merges two Layers instances. |
| Method Detail |
|---|
void merge(LayoutGraph graph,
LayoutDataProvider ldp,
Layers srcLayers,
Layers targetLayers)
Layers instances.
All nodes that belong to the source and target Layers are part of the graph at the moment of
invocation.
The state of the source Layers instance is discarded after this call and does not need to
be updated to reflect the changes. The target Layers instance must be updated accordingly.
graph - the graph containing the nodes of source and target Layers instancesldp - the LayoutDataProvider used for querying the layer indicessrcLayers - the source Layers instance that will be merged into the target Layers instancetargetLayers - the Layers instance that will be modified to contain the resulting
layering
|
© Copyright 2000-2025, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||