diff options
Diffstat (limited to 'src/driver')
-rw-r--r-- | src/driver/flash.php | 24 | ||||
-rw-r--r-- | src/driver/gd.php | 5 | ||||
-rw-r--r-- | src/driver/svg.php | 7 | ||||
-rw-r--r-- | src/driver/verbose.php | 26 |
4 files changed, 41 insertions, 21 deletions
diff --git a/src/driver/flash.php b/src/driver/flash.php index d8b10ec..b84ad9f 100644 --- a/src/driver/flash.php +++ b/src/driver/flash.php @@ -187,7 +187,7 @@ class ezcGraphFlashDriver extends ezcGraphDriver * @param float $thickness Line thickness * @return void */ - public function drawPolygon( array $points, ezcGraphColor $color, $filled = true, $thickness = 1 ) + public function drawPolygon( array $points, ezcGraphColor $color, $filled = true, $thickness = 1. ) { $movie = $this->getDocument(); @@ -232,7 +232,7 @@ class ezcGraphFlashDriver extends ezcGraphDriver * @param float $thickness Line thickness * @return void */ - public function drawLine( ezcGraphCoordinate $start, ezcGraphCoordinate $end, ezcGraphColor $color, $thickness = 1 ) + public function drawLine( ezcGraphCoordinate $start, ezcGraphCoordinate $end, ezcGraphColor $color, $thickness = 1. ) { $movie = $this->getDocument(); @@ -343,14 +343,15 @@ class ezcGraphFlashDriver extends ezcGraphDriver /** * Render text depending of font type and available font extensions * - * @param resource $image Image resource - * @param string $text Text - * @param int $type Font type - * @param string $path Font path - * @param ezcGraphColor $color Font color - * @param ezcGraphCoordinate $position Position - * @param float $size Textsize - * @param ezcGraphRotation $rotation + * @param string $id + * @param string $text + * @param string $chars + * @param int $type + * @param string $path + * @param ezcGraphColor $color + * @param ezcGraphCoordinate $position + * @param float $size + * @param float $rotation * @return void */ protected function renderText( $id, $text, $chars, $type, $path, ezcGraphColor $color, ezcGraphCoordinate $position, $size, $rotation = null ) @@ -688,7 +689,7 @@ class ezcGraphFlashDriver extends ezcGraphDriver * @param mixed $startAngle * @param mixed $endAngle * @param ezcGraphColor $color - * @param mixed $filled + * @param bool $filled * @return string Element id */ protected function simulateCircularArc( ezcGraphCoordinate $center, $width, $height, $size, $startAngle, $endAngle, ezcGraphColor $color, $filled ) @@ -765,6 +766,7 @@ class ezcGraphFlashDriver extends ezcGraphDriver * @param float $startAngle Starting angle of circle sector * @param float $endAngle Ending angle of circle sector * @param ezcGraphColor $color Color of Border + * @param bool $filled * @return void */ public function drawCircularArc( ezcGraphCoordinate $center, $width, $height, $size, $startAngle, $endAngle, ezcGraphColor $color, $filled = true ) diff --git a/src/driver/gd.php b/src/driver/gd.php index 7fb1677..a36b691 100644 --- a/src/driver/gd.php +++ b/src/driver/gd.php @@ -195,7 +195,7 @@ class ezcGraphGdDriver extends ezcGraphDriver * @param float $thickness Line thickness * @return void */ - public function drawPolygon( array $points, ezcGraphColor $color, $filled = true, $thickness = 1 ) + public function drawPolygon( array $points, ezcGraphColor $color, $filled = true, $thickness = 1. ) { $image = $this->getImage(); @@ -232,7 +232,7 @@ class ezcGraphGdDriver extends ezcGraphDriver * @param float $thickness Line thickness * @return void */ - public function drawLine( ezcGraphCoordinate $start, ezcGraphCoordinate $end, ezcGraphColor $color, $thickness = 1 ) + public function drawLine( ezcGraphCoordinate $start, ezcGraphCoordinate $end, ezcGraphColor $color, $thickness = 1. ) { $image = $this->getImage(); @@ -817,6 +817,7 @@ class ezcGraphGdDriver extends ezcGraphDriver * @param float $startAngle Starting angle of circle sector * @param float $endAngle Ending angle of circle sector * @param ezcGraphColor $color Color of Border + * @param bool $filled * @return void */ public function drawCircularArc( ezcGraphCoordinate $center, $width, $height, $size, $startAngle, $endAngle, ezcGraphColor $color, $filled = true ) diff --git a/src/driver/svg.php b/src/driver/svg.php index 573097c..0160674 100644 --- a/src/driver/svg.php +++ b/src/driver/svg.php @@ -277,7 +277,7 @@ class ezcGraphSvgDriver extends ezcGraphDriver * @param float $thickness Line thickness. * @return string Formatstring */ - protected function getStyle( ezcGraphColor $color, $filled = true, $thickness = 1 ) + protected function getStyle( ezcGraphColor $color, $filled = true, $thickness = 1. ) { if ( $filled ) { @@ -325,7 +325,7 @@ class ezcGraphSvgDriver extends ezcGraphDriver * @param float $thickness Line thickness * @return void */ - public function drawPolygon( array $points, ezcGraphColor $color, $filled = true, $thickness = 1 ) + public function drawPolygon( array $points, ezcGraphColor $color, $filled = true, $thickness = 1. ) { $this->createDocument(); @@ -379,7 +379,7 @@ class ezcGraphSvgDriver extends ezcGraphDriver * @param float $thickness Line thickness * @return void */ - public function drawLine( ezcGraphCoordinate $start, ezcGraphCoordinate $end, ezcGraphColor $color, $thickness = 1 ) + public function drawLine( ezcGraphCoordinate $start, ezcGraphCoordinate $end, ezcGraphColor $color, $thickness = 1. ) { $this->createDocument(); @@ -905,6 +905,7 @@ class ezcGraphSvgDriver extends ezcGraphDriver * @param float $startAngle Starting angle of circle sector * @param float $endAngle Ending angle of circle sector * @param ezcGraphColor $color Color of Border + * @param bool $filled * @return void */ public function drawCircularArc( ezcGraphCoordinate $center, $width, $height, $size, $startAngle, $endAngle, ezcGraphColor $color, $filled = true ) diff --git a/src/driver/verbose.php b/src/driver/verbose.php index 64c8138..7739533 100644 --- a/src/driver/verbose.php +++ b/src/driver/verbose.php @@ -18,8 +18,20 @@ class ezcGraphVerboseDriver extends ezcGraphDriver { + /** + * Number of call on driver + * + * @var int + */ protected $call = 0; + /** + * Constructor + * + * @param array $options + * @return void + * @ignore + */ public function __construct( array $options = array() ) { $this->options = new ezcGraphSvgDriverOptions( $options ); @@ -29,12 +41,13 @@ class ezcGraphVerboseDriver extends ezcGraphDriver /** * Draws a single polygon * - * @param mixed $points + * @param array $points * @param ezcGraphColor $color - * @param mixed $filled + * @param bool $filled + * @param float $thickness * @return void */ - public function drawPolygon( array $points, ezcGraphColor $color, $filled = true, $thickness = 1 ) + public function drawPolygon( array $points, ezcGraphColor $color, $filled = true, $thickness = 1. ) { $pointString = ''; foreach ( $points as $point ) @@ -55,9 +68,10 @@ class ezcGraphVerboseDriver extends ezcGraphDriver * @param ezcGraphCoordinate $start * @param ezcGraphCoordinate $end * @param ezcGraphColor $color + * @param float $thickness * @return void */ - public function drawLine( ezcGraphCoordinate $start, ezcGraphCoordinate $end, ezcGraphColor $color, $thickness = 1 ) + public function drawLine( ezcGraphCoordinate $start, ezcGraphCoordinate $end, ezcGraphColor $color, $thickness = 1. ) { printf( "% 4d: Draw line from ( %.2f, %.2f ) to ( %.2f, %.2f ) with thickness %d.\n", $this->call++, @@ -89,7 +103,7 @@ class ezcGraphVerboseDriver extends ezcGraphDriver * @param ezcGraphCoordinate $position * @param mixed $width * @param mixed $height - * @param ezcGraphColor $color + * @param int $align * @param ezcGraphRotation $rotation * @return void */ @@ -114,6 +128,7 @@ class ezcGraphVerboseDriver extends ezcGraphDriver * @param mixed $startAngle * @param mixed $endAngle * @param ezcGraphColor $color + * @param bool $filled * @return void */ public function drawCircleSector( ezcGraphCoordinate $center, $width, $height, $startAngle, $endAngle, ezcGraphColor $color, $filled = true ) @@ -140,6 +155,7 @@ class ezcGraphVerboseDriver extends ezcGraphDriver * @param float $startAngle Starting angle of circle sector * @param float $endAngle Ending angle of circle sector * @param ezcGraphColor $color Color of Border + * @param bool $filled * @return void */ public function drawCircularArc( ezcGraphCoordinate $center, $width, $height, $size, $startAngle, $endAngle, ezcGraphColor $color, $filled = true ) |