def __init__(self, model = None, x = 0, y = 0, rounded = False,
              parent = None, scene = None):
     """
     Constructor
     
     @param model module model containing the module data (ModuleModel)
     @param x x-coordinate (integer)
     @param y y-coordinate (integer)
     @keyparam rounded flag indicating a rounded corner (boolean)
     @keyparam parent reference to the parent object (QGraphicsItem)
     @keyparam scene reference to the scene object (QGraphicsScene)
     """
     UMLItem.__init__(self, x, y, rounded, parent)
     self.model = model
     
     scene.addItem(self)
     
     if self.model:
         self.__createTexts()
         self.__calculateSize()
 def __init__(self, model = None, external = False, x = 0, y = 0, 
              rounded = False, noAttrs = False, parent = None, scene = None):
     """
     Constructor
     
     @param model class model containing the class data (ClassModel)
     @param external flag indicating a class defined outside our scope (boolean)
     @param x x-coordinate (integer)
     @param y y-coordinate (integer)
     @keyparam rounded flag indicating a rounded corner (boolean)
     @keyparam noAttrs flag indicating, that no attributes should be shown (boolean)
     @keyparam parent reference to the parent object (QGraphicsItem)
     @keyparam scene reference to the scene object (QGraphicsScene)
     """
     UMLItem.__init__(self, x, y, rounded, parent)
     self.model = model
     self.external = external
     self.noAttrs = noAttrs
     
     scene.addItem(self)
     
     if self.model:
         self.__createTexts()
         self.__calculateSize()