This interface is responsible for the assignment of the x-(sequence) and preliminary y-coordinates of the nodes in a hierarchical layout.
Inheritance Hierarchy
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.
See Also
Members
No filters for this type
Methods
Assigns preliminary y-coordinates for each layer of a hierarchical layout.
Assigns preliminary y-coordinates for each layer of a hierarchical layout.
The distance between two layers will be adjusted later by the edge routing algorithm. This method is responsible for assigning the relative positions of the nodes within each layer.
abstract
Parameters
- 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.
Implemented in
CoordinateAssigner.assignLayerCoordinatesThe minimum distance between each pair of nodes of the graph is determined by a IDrawingDistanceCalculator instance.
abstract
Parameters
- 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