|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Layerer
This interface is used by classes capable of generating a layer assignment.
Layer assignment takes place during the first part of the hierarchic layout algorithms. During this
phase, each node of the graph is assigned to a layer.
The OldLayererWrapper class can be used for wrapping existing implementations of the
y.layout.hierarchic.Layerer interface from the
y.layout.hierarchic package.
HierarchicLayouter.setLayerer(Layerer),
IncrementalHierarchicLayouter.setFixedElementsLayerer(Layerer),
IncrementalHierarchicLayouter.setFromScratchLayerer(Layerer)![]() |
![]() |
| Method Summary | |
|---|---|
void |
assignLayers(LayoutGraph graph,
Layers layers,
LayoutDataProvider ldp)
Assigns all nodes of the graph to layers and adds them to the Layers instance. |
| Method Detail |
|---|
void assignLayers(LayoutGraph graph,
Layers layers,
LayoutDataProvider ldp)
Layers instance.
In order to create new layers, factory method Layers.insert(byte, int) has to be used.
Information about the nodes is provided by a LayoutDataProvider. However, positional information
(see NodeData.getPosition() and NodeData.getLayer()) is not available during this phase.
graph - the input graphlayers - the Layers instance that will be filled with the results of the calculationldp - the LayoutDataProvider used for querying information about the nodes and edgesLayers.insert(byte, int),
Layer.add(y.base.Node)
|
© Copyright 2000-2025, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||