Graphics/UMLClassDiagram.py

branch
5_2_x
changeset 2029
51e8278f2c3d
parent 1847
ed220d11ee1e
child 2093
060d051757a2
equal deleted inserted replaced
2022:674ef50b5004 2029:51e8278f2c3d
172 widths.append(currentWidth) 172 widths.append(currentWidth)
173 heights.append(currentHeight) 173 heights.append(currentHeight)
174 174
175 # add in some whitespace 175 # add in some whitespace
176 width = width * whiteSpaceFactor 176 width = width * whiteSpaceFactor
177 rawHeight = height 177 ## rawHeight = height
178 height = height * whiteSpaceFactor - 20 178 height = height * whiteSpaceFactor - 20
179 verticalWhiteSpace = (height - rawHeight) / (len(generations) - 1.0 or 2.0) 179 ## verticalWhiteSpace = (height - rawHeight) / (len(generations) - 1.0 or 2.0)
180 verticalWhiteSpace = 40
180 181
181 sceneRect = self.umlView.sceneRect() 182 sceneRect = self.umlView.sceneRect()
182 width += 50.0 183 width += 50.0
183 height += 50.0 184 height += 50.0
184 swidth = width < sceneRect.width() and sceneRect.width() or width 185 swidth = width < sceneRect.width() and sceneRect.width() or width

eric ide

mercurial