summaryrefslogtreecommitdiffstats
path: root/src/driver
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-07-21 14:14:56 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-07-21 14:14:56 +0000
commit49ded86c90d1bfa6cc0b780b1ad00544f9d198fd (patch)
tree29a292b23a6b1af6159fa6fa82515c3aed1097e6 /src/driver
parent14f4f83b181822bb65c55ca76eb0e28157ba43b4 (diff)
downloadzetacomponents-graph-49ded86c90d1bfa6cc0b780b1ad00544f9d198fd.zip
zetacomponents-graph-49ded86c90d1bfa6cc0b780b1ad00544f9d198fd.tar.gz
- Readded drawing of axis steps and grids (only available in
ezcGraphAxisExactLabelRenderer yet)
Diffstat (limited to 'src/driver')
-rw-r--r--src/driver/svg.php1
-rw-r--r--src/driver/verbose.php17
2 files changed, 9 insertions, 9 deletions
diff --git a/src/driver/svg.php b/src/driver/svg.php
index 42ad365..69941bb 100644
--- a/src/driver/svg.php
+++ b/src/driver/svg.php
@@ -51,7 +51,6 @@ class ezcGraphSvgDriver extends ezcGraphDriver
public function __construct( array $options = array() )
{
$this->options = new ezcGraphSvgDriverOptions( $options );
-
}
protected function createDocument()
diff --git a/src/driver/verbose.php b/src/driver/verbose.php
index 80867fd..1a0757e 100644
--- a/src/driver/verbose.php
+++ b/src/driver/verbose.php
@@ -17,8 +17,9 @@ class ezcGraphVerboseDriver extends ezcGraphDriver
{
protected $call = 0;
- public function __construct()
+ public function __construct( array $options = array() )
{
+ $this->options = new ezcGraphSvgDriverOptions( $options );
echo "\n";
}
@@ -38,7 +39,7 @@ class ezcGraphVerboseDriver extends ezcGraphDriver
$pointString .= sprintf( "\t( %.2f, %.2f )\n", $point->x, $point->y );
}
- printf( "%03d: Draw %spolygon:\n%s",
+ printf( "% 4d: Draw %spolygon:\n%s",
$this->call++,
( $filled ? 'filled ' : '' ),
$pointString
@@ -55,7 +56,7 @@ class ezcGraphVerboseDriver extends ezcGraphDriver
*/
public function drawLine( ezcGraphCoordinate $start, ezcGraphCoordinate $end, ezcGraphColor $color, $thickness = 1 )
{
- printf( "%03d: Draw line from ( %.2f, %.2f ) to ( %.2f, %.2f ) with thickness %d.\n",
+ printf( "% 4d: Draw line from ( %.2f, %.2f ) to ( %.2f, %.2f ) with thickness %d.\n",
$this->call++,
$start->x,
$start->y,
@@ -77,7 +78,7 @@ class ezcGraphVerboseDriver extends ezcGraphDriver
*/
public function drawTextBox( $string, ezcGraphCoordinate $position, $width, $height, $align )
{
- printf( "%03d: Draw text '%s' at ( %.2f, %.2f ) with dimensions ( %d, %d ) and alignement %d.\n",
+ printf( "% 4d: Draw text '%s' at ( %.2f, %.2f ) with dimensions ( %d, %d ) and alignement %d.\n",
$this->call++,
$string,
$position->x,
@@ -100,7 +101,7 @@ class ezcGraphVerboseDriver extends ezcGraphDriver
*/
public function drawCircleSector( ezcGraphCoordinate $center, $width, $height, $startAngle, $endAngle, ezcGraphColor $color, $filled = true )
{
- printf( "%03d: Draw %scicle sector at ( %.2f, %.2f ) with dimensions ( %d, %d ) from %.2f to %.2f.\n",
+ printf( "% 4d: Draw %scicle sector at ( %.2f, %.2f ) with dimensions ( %d, %d ) from %.2f to %.2f.\n",
$this->call++,
( $filled ? 'filled ' : '' ),
$center->x,
@@ -126,7 +127,7 @@ class ezcGraphVerboseDriver extends ezcGraphDriver
*/
public function drawCircularArc( ezcGraphCoordinate $center, $width, $height, $size, $startAngle, $endAngle, ezcGraphColor $color )
{
- printf( "%03d: Draw circular arc at ( %.2f, %.2f ) with dimensions ( %d, %d ) and size %.2f from %.2f to %.2f.\n",
+ printf( "% 4d: Draw circular arc at ( %.2f, %.2f ) with dimensions ( %d, %d ) and size %.2f from %.2f to %.2f.\n",
$this->call++,
$center->x,
$center->y,
@@ -151,7 +152,7 @@ class ezcGraphVerboseDriver extends ezcGraphDriver
*/
public function drawCircle( ezcGraphCoordinate $center, $width, $height, ezcGraphColor $color, $filled = true )
{
- printf( "%03d: Draw %scircle at ( %.2f, %.2f ) with dimensions ( %d, %d ).\n",
+ printf( "% 4d: Draw %scircle at ( %.2f, %.2f ) with dimensions ( %d, %d ).\n",
$this->call++,
( $filled ? 'filled ' : '' ),
$center->x,
@@ -172,7 +173,7 @@ class ezcGraphVerboseDriver extends ezcGraphDriver
*/
public function drawImage( $file, ezcGraphCoordinate $position, $width, $height )
{
- printf( "%03d: Draw image '%s' at ( %.2f, %.2f ) with dimensions ( %d, %d ).\n",
+ printf( "% 4d: Draw image '%s' at ( %.2f, %.2f ) with dimensions ( %d, %d ).\n",
$this->call++,
$file,
$position->x,
OpenPOWER on IntegriCloud