eric6/Graphics/PackageDiagramBuilder.py

changeset 8270
6ba3564b7161
parent 8257
28146736bbfc
child 8273
698ae46f40a4
child 8277
ea734702ae94
equal deleted inserted replaced
8269:87f521f359d5 8270:6ba3564b7161
428 """ 428 """
429 Private method to generate the associations between the class shapes. 429 Private method to generate the associations between the class shapes.
430 430
431 @param routes list of relationsships 431 @param routes list of relationsships
432 """ 432 """
433 from .AssociationItem import AssociationItem, Generalisation 433 from .AssociationItem import AssociationItem, AssociationType
434 for route in routes: 434 for route in routes:
435 if len(route) > 1: 435 if len(route) > 1:
436 assoc = AssociationItem( 436 assoc = AssociationItem(
437 self.__getCurrentShape(route[1]), 437 self.__getCurrentShape(route[1]),
438 self.__getCurrentShape(route[0]), 438 self.__getCurrentShape(route[0]),
439 Generalisation, 439 AssociationType.GENERALISATION,
440 topToBottom=True, 440 topToBottom=True,
441 colors=self.umlView.getDrawingColors()) 441 colors=self.umlView.getDrawingColors())
442 self.scene.addItem(assoc) 442 self.scene.addItem(assoc)
443 443
444 def getPersistenceData(self): 444 def getPersistenceData(self):

eric ide

mercurial