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/renderer | |
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/renderer')
-rw-r--r-- | src/renderer/2d.php | 114 | ||||
-rw-r--r-- | src/renderer/3d.php | 112 |
2 files changed, 223 insertions, 3 deletions
diff --git a/src/renderer/2d.php b/src/renderer/2d.php index ca51590..4c6f680 100644 --- a/src/renderer/2d.php +++ b/src/renderer/2d.php @@ -1,6 +1,6 @@ <?php /** - * File containing the abstract ezcGraphRenderer2D class + * File containing the ezcGraphRenderer2D class * * @package Graph * @version $id$ @@ -13,7 +13,117 @@ * @package Graph */ class ezcGraphRenderer2D extends ezcGraphRenderer { - + + /** + * Draw a pie segment + * + * @param ezcGraphCoordinate $position + * @param mixed $radius + * @param float $startAngle + * @param float $endAngle + * @param float $moveOut + * @access public + * @return void + */ + public function drawPieSegment( 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 + * @access public + * @return void + */ + public function drawLine( ezcGraphCoordinate $position, ezcGraphCoordinate $end, $filled = true ) + { + + } + + /** + * Draws a text box + * + * @param ezcGraphCoordinate $position + * @param mixed $text + * @param mixed $width + * @param mixed $height + * @access public + * @return void + */ + public function drawTextBox( ezcGraphCoordinate $position, $text, $width = null, $height = null ) + { + + } + + /** + * Draws a rectangle + * + * @param ezcGraphColor $color + * @param ezcGraphCoordinate $position + * @param mixed $width + * @param mixed $height + * @param float $borderWidth + * @access public + * @return void + */ + 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 + * @access public + * @return void + */ + 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 + * @access public + * @return void + */ + 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 + * @access public + * @return void + */ + public function drawSymbol( ezcGraphCoordinate $position, $width, $height, $symbol = ezcGraph::NO_SYMBOL) + { + + } } ?> diff --git a/src/renderer/3d.php b/src/renderer/3d.php index 7f9149b..16b2ece 100644 --- a/src/renderer/3d.php +++ b/src/renderer/3d.php @@ -1,6 +1,6 @@ <?php /** - * File containing the abstract ezcGraphRenderer2D class + * File containing the ezcGraphRenderer2D class * * @package Graph * @version $id$ @@ -14,6 +14,116 @@ */ class ezcGraphRenderer2D extends ezcGraphRenderer { + /** + * Draw a pie segment + * + * @param ezcGraphCoordinate $position + * @param mixed $radius + * @param float $startAngle + * @param float $endAngle + * @param float $moveOut + * @access public + * @return void + */ + public function drawPieSegment( 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 + * @access public + * @return void + */ + public function drawLine( ezcGraphCoordinate $position, ezcGraphCoordinate $end, $filled = true ) + { + + } + + /** + * Draws a text box + * + * @param ezcGraphCoordinate $position + * @param mixed $text + * @param mixed $width + * @param mixed $height + * @access public + * @return void + */ + public function drawTextBox( ezcGraphCoordinate $position, $text, $width = null, $height = null ) + { + + } + + /** + * Draws a rectangle + * + * @param ezcGraphColor $color + * @param ezcGraphCoordinate $position + * @param mixed $width + * @param mixed $height + * @param float $borderWidth + * @access public + * @return void + */ + 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 + * @access public + * @return void + */ + 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 + * @access public + * @return void + */ + 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 + * @access public + * @return void + */ + public function drawSymbol( ezcGraphCoordinate $position, $width, $height, $symbol = ezcGraph::NO_SYMBOL) + { + + } } ?> |