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): |