public interface ILayerer
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.
| Modifier and Type | Method and Description |
|---|---|
void |
assignLayers(LayoutGraph graph,
ILayers layers,
ILayoutDataProvider ldp)
Assigns all nodes of the graph to layers and adds them to the
ILayers instance. |
void assignLayers(LayoutGraph graph, ILayers layers, ILayoutDataProvider ldp)
ILayers instance.
In order to create new layers, factory method ILayers.insert(com.yworks.yfiles.layout.hierarchic.LayerType, int)
has to be used.
Information about the nodes is provided by a ILayoutDataProvider. However, positional information (see Position
and Layer) is not available during this phase.
graph - the input graphlayers - the ILayers instance that will be filled with the results of the calculationldp - the ILayoutDataProvider used for querying information about the nodes and edgesILayers.insert(com.yworks.yfiles.layout.hierarchic.LayerType, int),
ILayer.add(com.yworks.yfiles.algorithms.Node)