options = $propertyValue; } else { throw new ezcBaseValueException( "options", $propertyValue, "instanceof ezcGraphOptions" ); } default: throw new ezcBasePropertyNotFoundException( $propertyName ); break; } } /** * Returns the requested property * * @param mixed $propertyName * @return mixed */ public function __get( $propertyName ) { if ( isset( $this->$propertyName ) ) { return $this->$propertyName; } else { throw new ezcBasePropertyNotFoundException( $propertyName ); } } /** * Draws a single polygon * * @param mixed $points * @param ezcGraphColor $color * @param mixed $filled * @return void */ abstract public function drawPolygon( array $points, ezcGraphColor $color, $filled = true, $thickness = 1 ); /** * Draws a single line * * @param ezcGraphCoordinate $start * @param ezcGraphCoordinate $end * @param ezcGraphColor $color * @return void */ abstract public function drawLine( ezcGraphCoordinate $start, ezcGraphCoordinate $end, ezcGraphColor $color, $thickness = 1 ); /** * Wrties text in a box of desired size * * @param mixed $string * @param ezcGraphCoordinate $position * @param mixed $width * @param mixed $height * @param ezcGraphColor $color * @return void */ abstract public function drawTextBox( $string, ezcGraphCoordinate $position, $width, $height, $align ); /** * Draws a sector of cirlce * * @param ezcGraphCoordinate $center * @param mixed $width * @param mixed $height * @param mixed $startAngle * @param mixed $endAngle * @param ezcGraphColor $color * @return void */ abstract public function drawCircleSector( ezcGraphCoordinate $center, $width, $height, $startAngle, $endAngle, ezcGraphColor $color, $filled = true ); /** * Draws a circular arc * * @param ezcGraphCoordinate $center Center of ellipse * @param integer $width Width of ellipse * @param integer $height Height of ellipse * @param integer $size Height of border * @param float $startAngle Starting angle of circle sector * @param float $endAngle Ending angle of circle sector * @param ezcGraphColor $color Color of Border * @return void */ abstract public function drawCircularArc( ezcGraphCoordinate $center, $width, $height, $size, $startAngle, $endAngle, ezcGraphColor $color ); /** * Draws a circle * * @param ezcGraphCoordinate $center * @param mixed $width * @param mixed $height * @param ezcGraphColor $color * @param bool $filled * * @return void */ abstract public function drawCircle( ezcGraphCoordinate $center, $width, $height, ezcGraphColor $color, $filled = true ); /** * Draws a imagemap of desired size * * @param mixed $file * @param ezcGraphCoordinate $position * @param mixed $width * @param mixed $height * @return void */ abstract public function drawImage( $file, ezcGraphCoordinate $position, $width, $height ); /** * Finally save image * * @param mixed $file * @return void */ abstract public function render( $file ); } ?>