This interface is responsible for the assignment of the x-(sequence) and preliminary y-coordinates of the nodes in a hierarchical layout.
Remarks
Implementations of this interface are used during the drawing phase of HierarchicalLayout. They determine preliminary y-coordinates (which may be adjusted during the final edge routing) and the resulting x-coordinates of all elements that are part of the graph during the node placement phase.
The minimum distance between each pair of nodes of the graph is determined by a IDrawingDistanceCalculator instance.
The default implementation used by the HierarchicalLayout is CoordinateAssigner. Custom implementations of ICoordinateAssigner interface can be specified for the hierarchical layout algorithm using property coordinateAssigner of the respective core.
Type Details
- yFiles module
- algorithms
See Also
Methods
Assigns preliminary y-coordinates for each layer of a hierarchical layout.
Remarks
Parameters
A map of options to pass to the method.
- graph - LayoutGraph
- The input graph
- layoutContext - HierarchicalLayoutContext
- The HierarchicalLayoutContext containing information about the elements, as well as the layers that will be calculated by this method.
assignSequenceCoordinates
(graph: LayoutGraph, layoutContext: HierarchicalLayoutContext, drawingDistanceCalculator: IDrawingDistanceCalculator)Determines the resulting x-coordinates of a hierarchical layout.
Remarks
Parameters
A map of options to pass to the method.
- graph - LayoutGraph
- the input graph
- layoutContext - HierarchicalLayoutContext
- The HierarchicalLayoutContext containing information about the elements, as well as the layers that will be calculated by this method.
- drawingDistanceCalculator - IDrawingDistanceCalculator
- the given IDrawingDistanceCalculator instance