Graphics/PackageDiagram.py

branch
5_2_x
changeset 2029
51e8278f2c3d
parent 1847
ed220d11ee1e
child 2303
0ed4ed026c16
equal deleted inserted replaced
2022:674ef50b5004 2029:51e8278f2c3d
222 widths.append(currentWidth) 222 widths.append(currentWidth)
223 heights.append(currentHeight) 223 heights.append(currentHeight)
224 224
225 # add in some whitespace 225 # add in some whitespace
226 width = width * whiteSpaceFactor 226 width = width * whiteSpaceFactor
227 rawHeight = height 227 ## rawHeight = height
228 height = height * whiteSpaceFactor - 20 228 height = height * whiteSpaceFactor - 20
229 verticalWhiteSpace = (height - rawHeight) / (len(generations) - 1.0 or 2.0) 229 ## verticalWhiteSpace = (height - rawHeight) / (len(generations) - 1.0 or 2.0)
230 verticalWhiteSpace = 40
230 231
231 sceneRect = self.umlView.sceneRect() 232 sceneRect = self.umlView.sceneRect()
232 width += 50.0 233 width += 50.0
233 height += 50.0 234 height += 50.0
234 swidth = width < sceneRect.width() and sceneRect.width() or width 235 swidth = width < sceneRect.width() and sceneRect.width() or width

eric ide

mercurial