147 def __arrangeClasses(self, nodes, routes, whiteSpaceFactor=1.2): |
147 def __arrangeClasses(self, nodes, routes, whiteSpaceFactor=1.2): |
148 """ |
148 """ |
149 Private method to arrange the shapes on the canvas. |
149 Private method to arrange the shapes on the canvas. |
150 |
150 |
151 The algorithm is borrowed from Boa Constructor. |
151 The algorithm is borrowed from Boa Constructor. |
|
152 |
|
153 @param nodes list of nodes to arrange |
|
154 @param routes list of routes |
|
155 @param whiteSpaceFactor factor to increase whitespace between |
|
156 items (float) |
152 """ |
157 """ |
153 from . import GraphicsUtilities |
158 from . import GraphicsUtilities |
154 generations = GraphicsUtilities.sort(nodes, routes) |
159 generations = GraphicsUtilities.sort(nodes, routes) |
155 |
160 |
156 # calculate width and height of all elements |
161 # calculate width and height of all elements |