Graphics/UMLClassDiagramBuilder.py

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

eric ide

mercurial