Graphics/UMLClassDiagramBuilder.py

changeset 3035
36e9f388958b
parent 3034
7ce719013078
child 3060
5883ce99ee12
child 3160
209a07d7e401
equal deleted inserted replaced
3034:7ce719013078 3035:36e9f388958b
103 self.allModules[self.file].append(className) 103 self.allModules[self.file].append(className)
104 if cw and cw.noAttrs != self.noAttrs: 104 if cw and cw.noAttrs != self.noAttrs:
105 cw = None 105 cw = None
106 if cw and not (cw.external and 106 if cw and not (cw.external and
107 (className in module.classes or 107 (className in module.classes or
108 className in module.modules) 108 className in module.modules)):
109 ):
110 if cw.scene() != self.scene: 109 if cw.scene() != self.scene:
111 self.scene.addItem(cw) 110 self.scene.addItem(cw)
112 cw.setPos(10, 10) 111 cw.setPos(10, 10)
113 if className not in nodes: 112 if className not in nodes:
114 nodes.append(className) 113 nodes.append(className)
273 """ 272 """
274 from .AssociationItem import AssociationItem, Generalisation 273 from .AssociationItem import AssociationItem, Generalisation
275 for route in routes: 274 for route in routes:
276 if len(route) > 1: 275 if len(route) > 1:
277 assoc = AssociationItem( 276 assoc = AssociationItem(
278 self.__getCurrentShape(route[1]), 277 self.__getCurrentShape(route[1]),
279 self.__getCurrentShape(route[0]), 278 self.__getCurrentShape(route[0]),
280 Generalisation, 279 Generalisation,
281 topToBottom=True) 280 topToBottom=True)
282 self.scene.addItem(assoc) 281 self.scene.addItem(assoc)
283 282
284 def getPersistenceData(self): 283 def getPersistenceData(self):
285 """ 284 """
286 Public method to get a string for data to be persisted. 285 Public method to get a string for data to be persisted.

eric ide

mercurial