Graphics/PackageDiagramBuilder.py

changeset 2953
703452a2876f
parent 2433
f580320cd0aa
child 2992
dbdf27746da5
equal deleted inserted replaced
2952:94fc661a54a2 2953:703452a2876f
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

eric ide

mercurial