Graphics/UMLClassDiagramBuilder.py

changeset 4610
93732395fc1d
parent 4021
195a471c327b
child 4631
5c1a96925da4
equal deleted inserted replaced
4608:0d850eb60ea8 4610:93732395fc1d
193 widths.append(currentWidth) 193 widths.append(currentWidth)
194 heights.append(currentHeight) 194 heights.append(currentHeight)
195 195
196 # add in some whitespace 196 # add in some whitespace
197 width = width * whiteSpaceFactor 197 width = width * whiteSpaceFactor
198 ## rawHeight = height
199 height = height * whiteSpaceFactor - 20 198 height = height * whiteSpaceFactor - 20
200 ## verticalWhiteSpace = max(
201 ## (height - rawHeight) / (len(generations) - 1.0 or 2.0),
202 ## 40.0
203 ## )
204 verticalWhiteSpace = 40.0 199 verticalWhiteSpace = 40.0
205 200
206 sceneRect = self.umlView.sceneRect() 201 sceneRect = self.umlView.sceneRect()
207 width += 50.0 202 width += 50.0
208 height += 50.0 203 height += 50.0

eric ide

mercurial