269 def __arrangeClasses(self, nodes, routes, whiteSpaceFactor=1.2): |
269 def __arrangeClasses(self, nodes, routes, whiteSpaceFactor=1.2): |
270 """ |
270 """ |
271 Private method to arrange the shapes on the canvas. |
271 Private method to arrange the shapes on the canvas. |
272 |
272 |
273 The algorithm is borrowed from Boa Constructor. |
273 The algorithm is borrowed from Boa Constructor. |
|
274 |
|
275 @param nodes list of nodes to arrange |
|
276 @param routes list of routes |
|
277 @param whiteSpaceFactor factor to increase whitespace between |
|
278 items (float) |
274 """ |
279 """ |
275 from . import GraphicsUtilities |
280 from . import GraphicsUtilities |
276 generations = GraphicsUtilities.sort(nodes, routes) |
281 generations = GraphicsUtilities.sort(nodes, routes) |
277 |
282 |
278 # calculate width and height of all elements |
283 # calculate width and height of all elements |