关键代码如下:
self.superclass = DiagramFactory() self.width = width self.height = height self.diagram = DiagramFactory._create_rectangle(self.superclass ,self.width, self.height, DiagramFactory.BLANK)
def _create_rectangle(self, width, height, fill):
。。。。。