diff -r 1816b622aef2 -r 62ae22eae123 eric6/Documentation/Source/eric6.Graphics.ImportsDiagramBuilder.html --- a/eric6/Documentation/Source/eric6.Graphics.ImportsDiagramBuilder.html Sun May 02 18:16:54 2021 +0200 +++ b/eric6/Documentation/Source/eric6.Graphics.ImportsDiagramBuilder.html Mon May 03 19:42:27 2021 +0200 @@ -81,6 +81,10 @@ <td>Private method to add a module to the diagram.</td> </tr> <tr> +<td><a href="#ImportsDiagramBuilder.__arrangeNodes">__arrangeNodes</a></td> +<td>Private method to arrange the shapes on the canvas.</td> +</tr> +<tr> <td><a href="#ImportsDiagramBuilder.__buildModulesDict">__buildModulesDict</a></td> <td>Private method to build a dictionary of modules contained in the package.</td> </tr> @@ -176,6 +180,32 @@ reference to the imports item (ModuleItem) </dd> </dl> +<a NAME="ImportsDiagramBuilder.__arrangeNodes" ID="ImportsDiagramBuilder.__arrangeNodes"></a> +<h4>ImportsDiagramBuilder.__arrangeNodes</h4> +<b>__arrangeNodes</b>(<i>nodes, routes, whiteSpaceFactor=1.2</i>) + +<p> + Private method to arrange the shapes on the canvas. +</p> +<p> + The algorithm is borrowed from Boa Constructor. +</p> +<dl> + +<dt><i>nodes</i> (list of str)</dt> +<dd> +list of nodes to arrange +</dd> +<dt><i>routes</i> (list of tuple of (str, str))</dt> +<dd> +list of routes +</dd> +<dt><i>whiteSpaceFactor</i> (float)</dt> +<dd> +factor to increase whitespace between + items +</dd> +</dl> <a NAME="ImportsDiagramBuilder.__buildModulesDict" ID="ImportsDiagramBuilder.__buildModulesDict"></a> <h4>ImportsDiagramBuilder.__buildModulesDict</h4> <b>__buildModulesDict</b>(<i></i>) @@ -192,16 +222,16 @@ </dl> <a NAME="ImportsDiagramBuilder.__createAssociations" ID="ImportsDiagramBuilder.__createAssociations"></a> <h4>ImportsDiagramBuilder.__createAssociations</h4> -<b>__createAssociations</b>(<i>shapes</i>) +<b>__createAssociations</b>(<i>routes</i>) <p> Private method to generate the associations between the module shapes. </p> <dl> -<dt><i>shapes</i></dt> +<dt><i>routes</i> (list of tuple of (str, str))</dt> <dd> -list of shapes +list of associations </dd> </dl> <a NAME="ImportsDiagramBuilder.buildDiagram" ID="ImportsDiagramBuilder.buildDiagram"></a>