public function addLabel(CINLabel $label) {
        $label->setBackgroundColor($this->colorBg);
        $label->setForegroundColor($this->colorFg);
        $this->labels[] = $label;
    }
public function addLabel(CINLabel $label) {
        $label->setBackgroundColor($this->colorBg);
        $label->setForegroundColor($this->colorFg);
        $this->labels[] = $label;
    }
public function addLabel ( CINLabel $ label ) { $ label -> setBackgroundColor ( $ this -> colorBg ) ; $ label -> setForegroundColor ( $ this -> colorFg ) ; $ this -> labels [ ] = $ label ; }
Adds the label to the drawing.

@param CINLabel $label
Adds the label to the drawing .