/** * Finalize the drawing of the component */ function finalize($drawer) { // Draw component title $point = new awPoint($this->w / 2, $this->padding->top - 8); $this->title->draw($drawer, $point); // Draw legend $this->legend->draw($drawer); }