documentationfor yFiles for HTML 3.0.0.3

IDrawingDistanceCalculator

This interface determines the minimum distances between elements that belong to the same layer.

Inheritance Hierarchy
IDrawingDistanceCalculator

Remarks

IDrawingDistanceCalculator is implemented by a helper class used by HierarchicalLayout during the phase of node placement (i.e. when the final coordinates for all nodes are calculated). ICoordinateAssigner uses instances of this interface to determine the minimum distances between elements that belong to the same layer.

Information about graph elements (i.e. nodes or edges) is given using a HierarchicalLayoutContext while information about layers is given through HierarchicalLayoutLayer (describes a single layer of the hierarchical layout) or layers (the list of layers of the hierarchical layout).

Implementations not needed anymore should be disposed of using method dispose.

The default implementation used by the HierarchicalLayout is DrawingDistanceCalculator.

Type Details

yFiles module
algorithms

Methods