summaryrefslogtreecommitdiffstats
path: root/src/interfaces/driver.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-05-29 11:28:30 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-05-29 11:28:30 +0000
commit2942447b30b3be16ec869a40087ed6e79ed330e0 (patch)
tree762f8a0f86296ced69d23581623092f09af3b91d /src/interfaces/driver.php
parent89a8010b0b0869d07cb1d433351a1334bf232c57 (diff)
downloadzetacomponents-graph-2942447b30b3be16ec869a40087ed6e79ed330e0.zip
zetacomponents-graph-2942447b30b3be16ec869a40087ed6e79ed330e0.tar.gz
- Added basic 2d renderer test
- Implemented tested 2d renderer functions
Diffstat (limited to 'src/interfaces/driver.php')
-rw-r--r--src/interfaces/driver.php28
1 files changed, 22 insertions, 6 deletions
diff --git a/src/interfaces/driver.php b/src/interfaces/driver.php
index 6a18894..946eab0 100644
--- a/src/interfaces/driver.php
+++ b/src/interfaces/driver.php
@@ -22,7 +22,7 @@ abstract class ezcGraphDriver
* @param mixed $filled
* @return void
*/
- abstract abstract public function drawPolygon( $points, ezcGraphColor $color, $filled = true );
+ abstract abstract public function drawPolygon( array $points, ezcGraphColor $color, $filled = true );
/**
* Draws a single line
@@ -44,32 +44,46 @@ abstract class ezcGraphDriver
* @param ezcGraphColor $color
* @return void
*/
- abstract abstract public function drawTextBox( $string, ezcGraphCoordinate $position, $width, $height, ezcGraphColor $color );
+ abstract abstract public function drawTextBox( $string, ezcGraphCoordinate $position, $width, $height, $align );
/**
* Draws a sector of cirlce
*
* @param ezcGraphCoordinate $center
- * @param mixed $radius
+ * @param mixed $width
+ * @param mixed $height
* @param mixed $startAngle
* @param mixed $endAngle
* @param ezcGraphColor $color
* @return void
*/
- abstract abstract public function drawCircleSector( ezcGraphCoordinate $center, $radius, $startAngle, $endAngle, ezcGraphColor $color );
+ abstract abstract public function drawCircleSector( ezcGraphCoordinate $center, $width, $height, $startAngle, $endAngle, ezcGraphColor $color );
/**
* Draws a circular arc
*
* @param ezcGraphCoordinate $center
- * @param mixed $radius
+ * @param mixed $width
* @param mixed $height
* @param mixed $startAngle
* @param mixed $endAngle
* @param ezcGraphColor $color
* @return void
*/
- abstract abstract public function drawCircularArc( ezcGraphCoordinate $center, $radius, $height, $startAngle, $endAngle, ezcGraphColor $color );
+ abstract abstract public function drawCircularArc( ezcGraphCoordinate $center, $width, $height, $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 abstract public function drawCircle( ezcGraphCoordinate $center, $width, $height, ezcGraphColor $color, $filled = true );
/**
* Draws a imagemap of desired size
@@ -82,3 +96,5 @@ abstract class ezcGraphDriver
*/
abstract abstract public function drawImage( $file, ezcGraphCoordinate $position, $width, $height );
}
+
+?>
OpenPOWER on IntegriCloud