472 AssociationType.GENERALISATION, |
472 AssociationType.GENERALISATION, |
473 topToBottom=True, |
473 topToBottom=True, |
474 colors=self.umlView.getDrawingColors()) |
474 colors=self.umlView.getDrawingColors()) |
475 self.scene.addItem(assoc) |
475 self.scene.addItem(assoc) |
476 |
476 |
477 def getPersistenceData(self): |
|
478 """ |
|
479 Public method to get a string for data to be persisted. |
|
480 |
|
481 @return persisted data string |
|
482 @rtype str |
|
483 """ |
|
484 return "package={0}, no_attributes={1}".format( |
|
485 self.package, self.noAttrs) |
|
486 |
|
487 def parsePersistenceData(self, version, data): |
477 def parsePersistenceData(self, version, data): |
488 """ |
478 """ |
489 Public method to parse persisted data. |
479 Public method to parse persisted data. |
490 |
480 |
491 @param version version of the data |
481 @param version version of the data |