eric6/Documentation/Source/eric6.Graphics.ApplicationDiagramBuilder.html

changeset 8286
62ae22eae123
parent 7989
a21d673a8f99
child 8289
871b40c5a77a
equal deleted inserted replaced
8285:1816b622aef2 8286:62ae22eae123
75 <tr> 75 <tr>
76 <td><a href="#ApplicationDiagramBuilder.__addPackage">__addPackage</a></td> 76 <td><a href="#ApplicationDiagramBuilder.__addPackage">__addPackage</a></td>
77 <td>Private method to add a package to the diagram.</td> 77 <td>Private method to add a package to the diagram.</td>
78 </tr> 78 </tr>
79 <tr> 79 <tr>
80 <td><a href="#ApplicationDiagramBuilder.__arrangeNodes">__arrangeNodes</a></td>
81 <td>Private method to arrange the shapes on the canvas.</td>
82 </tr>
83 <tr>
80 <td><a href="#ApplicationDiagramBuilder.__buildModulesDict">__buildModulesDict</a></td> 84 <td><a href="#ApplicationDiagramBuilder.__buildModulesDict">__buildModulesDict</a></td>
81 <td>Private method to build a dictionary of modules contained in the application.</td> 85 <td>Private method to build a dictionary of modules contained in the application.</td>
82 </tr> 86 </tr>
83 <tr> 87 <tr>
84 <td><a href="#ApplicationDiagramBuilder.__createAssociations">__createAssociations</a></td> 88 <td><a href="#ApplicationDiagramBuilder.__createAssociations">__createAssociations</a></td>
85 <td>Private method to generate the associations between the package shapes.</td> 89 <td>Private method to generate the associations between the module shapes.</td>
90 </tr>
91 <tr>
92 <td><a href="#ApplicationDiagramBuilder.__findApplicationRoot">__findApplicationRoot</a></td>
93 <td>Private method to find the application root path.</td>
86 </tr> 94 </tr>
87 <tr> 95 <tr>
88 <td><a href="#ApplicationDiagramBuilder.buildDiagram">buildDiagram</a></td> 96 <td><a href="#ApplicationDiagramBuilder.buildDiagram">buildDiagram</a></td>
89 <td>Public method to build the packages shapes of the diagram.</td> 97 <td>Public method to build the packages shapes of the diagram.</td>
90 </tr> 98 </tr>
161 <dt>Return:</dt> 169 <dt>Return:</dt>
162 <dd> 170 <dd>
163 reference to the package item (PackageItem) 171 reference to the package item (PackageItem)
164 </dd> 172 </dd>
165 </dl> 173 </dl>
174 <a NAME="ApplicationDiagramBuilder.__arrangeNodes" ID="ApplicationDiagramBuilder.__arrangeNodes"></a>
175 <h4>ApplicationDiagramBuilder.__arrangeNodes</h4>
176 <b>__arrangeNodes</b>(<i>nodes, routes, whiteSpaceFactor=1.2</i>)
177
178 <p>
179 Private method to arrange the shapes on the canvas.
180 </p>
181 <p>
182 The algorithm is borrowed from Boa Constructor.
183 </p>
184 <dl>
185
186 <dt><i>nodes</i> (list of str)</dt>
187 <dd>
188 list of nodes to arrange
189 </dd>
190 <dt><i>routes</i> (list of tuple of (str, str))</dt>
191 <dd>
192 list of routes
193 </dd>
194 <dt><i>whiteSpaceFactor</i> (float)</dt>
195 <dd>
196 factor to increase whitespace between
197 items
198 </dd>
199 </dl>
166 <a NAME="ApplicationDiagramBuilder.__buildModulesDict" ID="ApplicationDiagramBuilder.__buildModulesDict"></a> 200 <a NAME="ApplicationDiagramBuilder.__buildModulesDict" ID="ApplicationDiagramBuilder.__buildModulesDict"></a>
167 <h4>ApplicationDiagramBuilder.__buildModulesDict</h4> 201 <h4>ApplicationDiagramBuilder.__buildModulesDict</h4>
168 <b>__buildModulesDict</b>(<i></i>) 202 <b>__buildModulesDict</b>(<i></i>)
169 203
170 <p> 204 <p>
177 dictionary of modules contained in the application. 211 dictionary of modules contained in the application.
178 </dd> 212 </dd>
179 </dl> 213 </dl>
180 <a NAME="ApplicationDiagramBuilder.__createAssociations" ID="ApplicationDiagramBuilder.__createAssociations"></a> 214 <a NAME="ApplicationDiagramBuilder.__createAssociations" ID="ApplicationDiagramBuilder.__createAssociations"></a>
181 <h4>ApplicationDiagramBuilder.__createAssociations</h4> 215 <h4>ApplicationDiagramBuilder.__createAssociations</h4>
182 <b>__createAssociations</b>(<i>shapes</i>) 216 <b>__createAssociations</b>(<i>routes</i>)
183 217
184 <p> 218 <p>
185 Private method to generate the associations between the package shapes. 219 Private method to generate the associations between the module shapes.
186 </p> 220 </p>
187 <dl> 221 <dl>
188 222
189 <dt><i>shapes</i></dt> 223 <dt><i>routes</i> (list of tuple of (str, str))</dt>
190 <dd> 224 <dd>
191 list of shapes 225 list of associations
226 </dd>
227 </dl>
228 <a NAME="ApplicationDiagramBuilder.__findApplicationRoot" ID="ApplicationDiagramBuilder.__findApplicationRoot"></a>
229 <h4>ApplicationDiagramBuilder.__findApplicationRoot</h4>
230 <b>__findApplicationRoot</b>(<i></i>)
231
232 <p>
233 Private method to find the application root path.
234 </p>
235 <dl>
236 <dt>Return:</dt>
237 <dd>
238 application root path
239 </dd>
240 </dl>
241 <dl>
242 <dt>Return Type:</dt>
243 <dd>
244 str
192 </dd> 245 </dd>
193 </dl> 246 </dl>
194 <a NAME="ApplicationDiagramBuilder.buildDiagram" ID="ApplicationDiagramBuilder.buildDiagram"></a> 247 <a NAME="ApplicationDiagramBuilder.buildDiagram" ID="ApplicationDiagramBuilder.buildDiagram"></a>
195 <h4>ApplicationDiagramBuilder.buildDiagram</h4> 248 <h4>ApplicationDiagramBuilder.buildDiagram</h4>
196 <b>buildDiagram</b>(<i></i>) 249 <b>buildDiagram</b>(<i></i>)

eric ide

mercurial