function circle($x, $y, $r, $color, $width = null, $style = null, $fill = false)
 {
     $this->_set_fill_color($color);
     $this->_set_stroke_color($color);
     if (!$fill && isset($width)) {
         $this->_set_line_style($width, "square", "miter", $style);
     }
     $this->_pdf->circle($x, $y, $r);
     if ($fill) {
         $this->_pdf->fill();
     } else {
         $this->_pdf->stroke();
     }
 }
  function circle($x, $y, $r, $color, $width = null, $style = null, $fill = false) {

    $this->_set_fill_color($color);
    $this->_set_stroke_color($color);

    if ( !$fill && isset($width) )
      $this->_set_line_style($width, "round", "round", $style);

    $y = $this->y($y);

    $this->_pdf->circle($x, $y, $r);

    if ( $fill )
      $this->_pdf->fill();
    else
      $this->_pdf->stroke();

  }