public interface INodePlacer
Implementations of this interface are used during the drawing phase of
HierarchicLayoutCore
. 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 HierarchicLayoutCore
is SimplexNodePlacer
. Custom implementations
of INodePlacer
interface can be used for hierarchic layout algorithms using methods NodePlacer
or NodePlacer
.
Modifier and Type | Method and Description |
---|---|
void |
assignLayerCoordinates(LayoutGraph graph,
ILayoutDataProvider layoutDataProvider,
ILayers layers)
Assigns preliminary y-coordinates for each layer of a hierarchic layout.
|
void |
assignSequenceCoordinates(LayoutGraph graph,
ILayoutDataProvider layoutDataProvider,
ILayers layers,
IDrawingDistanceCalculator drawingDistanceCalculator)
Determines the resulting x-coordinates of a hierarchic layout.
|
void assignLayerCoordinates(LayoutGraph graph, ILayoutDataProvider layoutDataProvider, ILayers layers)
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.
graph
- the input graphlayoutDataProvider
- the ILayoutDataProvider
containing information about the elementslayers
- the ILayers
instance that will be calculated by this methodvoid assignSequenceCoordinates(LayoutGraph graph, ILayoutDataProvider layoutDataProvider, ILayers layers, IDrawingDistanceCalculator drawingDistanceCalculator)
The minimum distance between each pair of nodes of the graph is determined by a IDrawingDistanceCalculator
instance.
graph
- the input graphlayoutDataProvider
- the ILayoutDataProvider
containing information about the elementslayers
- the ILayers
instance that will be calculated by this methoddrawingDistanceCalculator
- the given IDrawingDistanceCalculator
instance