Prepares this graphic item to be displayed.

def prepare(self):
        """
        Prepares this graphic item to be displayed.
        """
        text = self.property('caption')
        if text:
            capw = int(self.property('caption_width', 0))
            item = self.addText(text, capw)