* @package Mammut\Chart */ interface iRenderer { const HINT_PIE = 'piechart'; const HINT_AREA = 'areachart'; const HINT_LINE = 'linechart'; public function start($w, $h, Color $bg, $hint); public function drawLine($x1, $y1, $x2, $y2, Color $color); public function drawRect($x1, $y1, $x2, $y2, Color $color, $fill = FALSE); public function drawText($x, $y, $text, Color $color, $font = NULL, $size = -1, $angle = 0); public function drawEllipse($cx, $cy, $width, $height, Color $color, $fill = FALSE); public function drawArc($cx, $cy, $width, $height, $start, $end, Color $color, $fill = FALSE); /** * Render the graph * * @param mixed $file * NULL = direct output, string = filename, Mammut iOutput to write on stream */ public function output($file = NULL); }