diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-05-09 13:20:31 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-05-09 13:20:31 +0000 |
commit | 9cace6f3a5815b94bbbc0547087fd9640afd8cd5 (patch) | |
tree | a9be5a5982a8e5be90ecc524ed84f243ceb45e8f /src/driver | |
parent | 0f060a5d867310cb71a8fc82cd3bb982fb93fba6 (diff) | |
download | zetacomponents-graph-9cace6f3a5815b94bbbc0547087fd9640afd8cd5.zip zetacomponents-graph-9cace6f3a5815b94bbbc0547087fd9640afd8cd5.tar.gz |
- Added more tests for ezcGraphChart
- Implemented setting renderer and driver
- Started with setting of chart options (yet incomplete)
Diffstat (limited to 'src/driver')
-rw-r--r-- | src/driver/gd.php | 102 |
1 files changed, 100 insertions, 2 deletions
diff --git a/src/driver/gd.php b/src/driver/gd.php index 19cfd78..31221ea 100644 --- a/src/driver/gd.php +++ b/src/driver/gd.php @@ -1,6 +1,6 @@ <?php /** - * File containing the abstract ezcGraphDriverGD class + * File containing the ezcGraphDriverGD class * * @package Graph * @version $id$ @@ -12,8 +12,106 @@ * * @package Graph */ -class ezcGraphDriverGD extends ezcGraphDriver +class ezcGraphGDDriver extends ezcGraphDriver { + + /** + * Draws a single polygon + * + * @param mixed $points + * @param ezcGraphColor $color + * @param mixed $filled + * @abstract + * @access public + * @return void + */ + public function drawPolygon( $points, ezcGraphColor $color, $filled = true ) + { + + } + + /** + * Draws a single line + * + * @param ezcGraphCoordinate $start + * @param ezcGraphCoordinate $end + * @param ezcGraphColor $color + * @abstract + * @access public + * @return void + */ + public function drawLine( ezcGraphCoordinate $start, ezcGraphCoordinate $end, ezcGraphColor $color ) + { + + } + + /** + * Wrties text in a box of desired size + * + * @param mixed $string + * @param ezcGraphCoordinate $position + * @param mixed $width + * @param mixed $height + * @param ezcGraphColor $color + * @abstract + * @access public + * @return void + */ + public function drawTextBox( $string, ezcGraphCoordinate $position, $width, $height, ezcGraphColor $color ) + { + + } + + /** + * Draws a sector of cirlce + * + * @param ezcGraphCoordinate $center + * @param mixed $radius + * @param mixed $startAngle + * @param mixed $endAngle + * @param ezcGraphColor $color + * @abstract + * @access public + * @return void + */ + public function drawCircleSector( ezcGraphCoordinate $center, $radius, $startAngle, $endAngle, ezcGraphColor $color ) + { + + } + + /** + * Draws a circular arc + * + * @param ezcGraphCoordinate $center + * @param mixed $radius + * @param mixed $height + * @param mixed $startAngle + * @param mixed $endAngle + * @param ezcGraphColor $color + * @abstract + * @access public + * @return void + */ + public function drawCircularArc( ezcGraphCoordinate $center, $radius, $height, $startAngle, $endAngle, ezcGraphColor $color ) + { + + } + + /** + * Draws a imagemap of desired size + * + * @param mixed $file + * @param ezcGraphCoordinate $position + * @param mixed $width + * @param mixed $height + * @abstract + * @access public + * @return void + */ + public function drawImage( $file, ezcGraphCoordinate $position, $width, $height ) + { + + } } ?> |