This class describes a single layer during a HierarchicalLayout run, most prominently consisting of ordered nodes that are assigned to this layer.
Remarks
It furthermore consists of the associated same-layer edges. Each layer has a type and an index representing its order in the layers instance that it belongs to.
This class cannot be instantiated
Type Details
- yFiles module
- algorithms
See Also
Properties
Gets the index of this HierarchicalLayoutLayer instance in the list of all layers.
Property Value
Gets a list of the LayoutNodes associated with this layer.
Property Value
Gets or sets the LayoutGridRow associated with this layer.
Property Value
null
if none is associatedGets a list of all same-layer LayoutEdges associated with this layer.
Property Value
Gets the type of this HierarchicalLayoutLayer instance.
Property Value
Methods
Adds a newly created LayoutNode to this layer.
Parameters
A map of options to pass to the method.
- node - LayoutNode
- the LayoutNode to be added
Adds a same-layer LayoutEdge to this layer.
Parameters
A map of options to pass to the method.
- edge - LayoutEdge
- The same-layer LayoutEdge to be added.
Removes a LayoutNode from this layer.
Parameters
A map of options to pass to the method.
- node - LayoutNode
- the LayoutNode to be removed
Applies the node order of the given list to the LayoutNodes on this layer.
Parameters
A map of options to pass to the method.
- list - YList<LayoutNode>
- The list to which the order is to be adapted