Exemplo n.º 1
0
 /**
  * Image_Graph_Font [Constructor]
  *
  * @param string $name Font name
  * @param int    $size Font size
  */
 function Image_Graph_Font($name = false, $size = false)
 {
     parent::__construct();
     if ($name !== false) {
         $this->_name = $name;
     }
     if ($size !== false) {
         $this->_size = $size;
     }
 }
Exemplo n.º 2
0
 /**
  * Image_Graph_Font [Constructor]
  */
 function Image_Graph_Font()
 {
     parent::__construct();
 }
Exemplo n.º 3
0
 /**
  * Image_Graph_SolidLine [Constructor]
  *
  * @param mixed $color The color of the line
  */
 function Image_Graph_Line_Solid($color)
 {
     parent::__construct();
     $this->_color = $color;
 }
Exemplo n.º 4
0
 /**
  * Image_Graph_SolidLine [Constructor]
  *
  * @param mixed $color The color of the line
  */
 function __construct($color)
 {
     parent::__construct();
     $this->_color = $color;
 }
Exemplo n.º 5
0
 /**
  * Allocate the color
  * @param int $red The red part of the RGB code
  * @param int $green The green part of the RGB code
  * @param int $blue The blue part of the RGB code	 
  */
 function &Image_Graph_Color($red, $green = false, $blue = false)
 {
     parent::__construct();
     if ($green === false) {            
         $this->_red = ($red >> 16) & 0xff;
         $this->_green = ($red >> 8) & 0xff;
         $this->_blue = $red & 0xff;
     } else {            
         $this->_red = $red;        
         $this->_green = $green;
         $this->_blue = $blue;
     }
 }