示例#1
0
 /**
  * Predisplay function
  *
  * @return void
  */
 function prepare()
 {
     $p1 = new GPoint();
     $p1->setCoordinates($this->_x1, $this->_y1);
     $bsize = (int) ($this->getSize() / 3) + 1;
     $p1->setSize($this->getSize() + $bsize);
     $p1->setColor($this->_background_r_color, $this->_background_g_color, $this->_background_b_color);
     $this->addElement($p1);
     $p2 = new GPoint();
     $p2->setCoordinates($this->_x1, $this->_y1);
     $p2->setSize($this->getSize());
     $p2->setColor($this->_r_color, $this->_g_color, $this->_b_color);
     $this->addElement($p2);
 }