driver = $driver; } /** * Draw a pie segment * * @param ezcGraphCoordinate $position * @param mixed $radius * @param float $startAngle * @param float $endAngle * @param float $moveOut * @return void */ abstract public function drawPieSegment( ezcGraphColor $color, ezcGraphCoordinate $position, $radius, $startAngle = .0, $endAngle = 360., $moveOut = .0 ); /** * Draw a line * * Semantically means a line as a chart element, not a single line like * the ones used in axes. * * @param ezcGraphCoordinate $position * @param ezcGraphCoordinate $end * @param mixed $filled * @return void */ abstract public function drawLine( ezcGraphColor $color, ezcGraphCoordinate $position, ezcGraphCoordinate $end, $thickness = 1 ); /** * Draws a text box * * @param ezcGraphCoordinate $position * @param mixed $text * @param mixed $width * @param mixed $height * @return void */ abstract public function drawTextBox( ezcGraphCoordinate $position, $text, $width = null, $height = null, $align = ezcGraph::LEFT ); /** * Draws a rectangle * * @param ezcGraphColor $color * @param ezcGraphCoordinate $position * @param mixed $width * @param mixed $height * @param float $borderWidth * @return void */ abstract public function drawRect( ezcGraphColor $color, ezcGraphCoordinate $position = null, $width = null, $height = null, $borderWidth = 1 ); /** * Draw Background * * Draws a filled rectangle, used for backgrounds * * @param ezcGraphColor $color * @param ezcGraphCoordinate $position * @param mixed $width * @param mixed $height * @return void */ abstract public function drawBackground( ezcGraphColor $color, ezcGraphCoordinate $position = null, $width = null, $height = null ); /** * Draws BackgrouniImage * * @param mixed $file * @param ezcGraphCoordinate $position * @param mixed $width * @param mixed $height * @return void */ abstract public function drawBackgroundImage( $file, ezcGraphCoordinate $position = null, $width = null, $height = null ); /** * Draws a lines symbol * * @param ezcGraphCoordinate $position * @param float $width * @param float $height * @param int $symbol * @return void */ abstract public function drawSymbol( ezcGraphColor $color, ezcGraphCoordinate $position, $width, $height, $symbol = ezcGraph::NO_SYMBOL); /** * Draws a single polygon * * @param mixed $points * @param ezcGraphColor $color * @param mixed $filled * @return void */ public function drawPolygon( array $points, ezcGraphColor $color, $filled = true ) { $this->driver->drawPolygon( $points, $color, $filled ); } /** * Finally renders the image * * @param string $file Filename of destination file * @return void */ public function render( $file ) { $this->driver->render( $file ); } } ?>