summaryrefslogtreecommitdiffstats
path: root/src/renderer
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-06-12 14:40:06 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-06-12 14:40:06 +0000
commitb33909275f604b119c59972779a47a4288e0f5ec (patch)
tree756bf13bee3a4ed395bc1885391341533d991f65 /src/renderer
parent99117b7f9eb39a6d77eededce51a4d0aa895cc5b (diff)
downloadzetacomponents-graph-b33909275f604b119c59972779a47a4288e0f5ec.zip
zetacomponents-graph-b33909275f604b119c59972779a47a4288e0f5ec.tar.gz
- More documentation fixes
Diffstat (limited to 'src/renderer')
-rw-r--r--src/renderer/2d.php21
-rw-r--r--src/renderer/3d.php13
-rw-r--r--src/renderer/axis_label_radar.php1
3 files changed, 24 insertions, 11 deletions
diff --git a/src/renderer/2d.php b/src/renderer/2d.php
index 6be4956..bd1e811 100644
--- a/src/renderer/2d.php
+++ b/src/renderer/2d.php
@@ -112,7 +112,7 @@ class ezcGraphRenderer2d
* @param float $startAngle Start angle
* @param float $endAngle End angle
* @param string $label Label of pie segment
- * @param float $moveOut Move out from middle for hilighting
+ * @param bool $moveOut Move out from middle for hilighting
* @return void
*/
public function drawPieSegment(
@@ -563,7 +563,7 @@ class ezcGraphRenderer2d
ezcGraphColor $symbolColor = null,
ezcGraphColor $fillColor = null,
$axisPosition = 0.,
- $thickness = 1)
+ $thickness = 1. )
{
// Perhaps fill up line
if ( $fillColor !== null &&
@@ -688,6 +688,16 @@ class ezcGraphRenderer2d
}
}
+ /**
+ * Returns a coordinate in the given bounding box for the given angle
+ * radius with the center as base point.
+ *
+ * @param ezcGraphBoundings $boundings
+ * @param ezcGraphCoordinate $center
+ * @param float $angle
+ * @param float $radius
+ * @return float
+ */
protected function getCoordinateFromAngleAndRadius(
ezcGraphBoundings $boundings,
ezcGraphCoordinate $center,
@@ -751,7 +761,7 @@ class ezcGraphRenderer2d
$symbol = ezcGraph::NO_SYMBOL,
ezcGraphColor $symbolColor = null,
ezcGraphColor $fillColor = null,
- $thickness = 1
+ $thickness = 1.
)
{
// Calculate line points from chart coordinates
@@ -823,6 +833,7 @@ class ezcGraphRenderer2d
* @param ezcGraphFontOptions $font Font used for highlight string
* @param string $text Acutual value
* @param int $size Size of highlight text
+ * @param ezcGraphColor $markLines
* @return void
*/
public function drawDataHighlightText(
@@ -879,7 +890,7 @@ class ezcGraphRenderer2d
* Will draw a legend in the bounding box
*
* @param ezcGraphBoundings $boundings Bounding of legend
- * @param ezcGraphChartElementLegend $labels Legend to draw
+ * @param ezcGraphChartElementLegend $legend Legend to draw;
* @param int $type Type of legend: Protrait or landscape
* @return void
*/
@@ -1150,7 +1161,7 @@ class ezcGraphRenderer2d
* @param ezcGraphCoordinate $start Start point of axis
* @param ezcGraphCoordinate $end Endpoint of axis
* @param ezcGraphChartElementAxis $axis Axis to render
- * @param ezcGraphLabelRenderer $labelClass Used label renderer
+ * @param ezcGraphAxisLabelRenderer $labelClass Used label renderer
* @return void
*/
public function drawAxis(
diff --git a/src/renderer/3d.php b/src/renderer/3d.php
index d9771b5..42cfd83 100644
--- a/src/renderer/3d.php
+++ b/src/renderer/3d.php
@@ -160,10 +160,10 @@ class ezcGraphRenderer3d
* chart.
*
* @param ezcGraphCoordinate $c Coordinate
- * @param flot $front Distance to front (0 - 1)
+ * @param float $front Distance to front (0 - 1)
* @return ezcGraphCoordinate Resulting coordinate
*/
- protected function get3dCoordinate( ezcGraphCoordinate $c, $front = true )
+ protected function get3dCoordinate( ezcGraphCoordinate $c, $front = 1. )
{
return new ezcGraphCoordinate(
( $c->x - $this->dataBoundings->x0 ) * $this->xDepthFactor + $this->dataBoundings->x0 + $this->depth * $front,
@@ -182,7 +182,7 @@ class ezcGraphRenderer3d
* @param float $startAngle Start angle
* @param float $endAngle End angle
* @param string $label Label of pie segment
- * @param float $moveOut Move out from middle for hilighting
+ * @param bool $moveOut Move out from middle for hilighting
* @return void
*/
public function drawPieSegment(
@@ -1154,7 +1154,7 @@ class ezcGraphRenderer3d
ezcGraphColor $symbolColor = null,
ezcGraphColor $fillColor = null,
$axisPosition = 0.,
- $thickness = 1 )
+ $thickness = 1. )
{
// Calculate line width based on options
if ( $this->options->seperateLines )
@@ -1330,6 +1330,7 @@ class ezcGraphRenderer3d
* @param ezcGraphFontOptions $font Font used for highlight string
* @param string $text Acutual value
* @param int $size Size of highlight text
+ * @param ezcGraphColor $markLines
* @return void
*/
public function drawDataHighlightText(
@@ -1396,7 +1397,7 @@ class ezcGraphRenderer3d
* Will draw a legend in the bounding box
*
* @param ezcGraphBoundings $boundings Bounding of legend
- * @param ezcGraphChartElementLegend $labels Legend to draw
+ * @param ezcGraphChartElementLegend $legend Legend to draw;
* @param int $type Type of legend: Protrait or landscape
* @return void
*/
@@ -1789,7 +1790,7 @@ class ezcGraphRenderer3d
* @param ezcGraphCoordinate $start Start point of axis
* @param ezcGraphCoordinate $end Endpoint of axis
* @param ezcGraphChartElementAxis $axis Axis to render
- * @param ezcGraphLabelRenderer $labelClass Used label renderer
+ * @param ezcGraphAxisLabelRenderer $labelClass Used label renderer
* @return void
*/
public function drawAxis(
diff --git a/src/renderer/axis_label_radar.php b/src/renderer/axis_label_radar.php
index 938c34e..4d0bd0e 100644
--- a/src/renderer/axis_label_radar.php
+++ b/src/renderer/axis_label_radar.php
@@ -266,6 +266,7 @@ class ezcGraphAxisRadarLabelRenderer extends ezcGraphAxisLabelRenderer
* @param ezcGraphCoordinate $position Position of step
* @param ezcGraphCoordinate $direction Direction of axis
* @param ezcGraphColor $color Color of axis
+ * @param int $stepPosition
* @return void
*/
protected function drawGrid( ezcGraphRenderer $renderer, ezcGraphBoundings $boundings, ezcGraphCoordinate $position, ezcGraphCoordinate $direction, ezcGraphColor $color, $stepPosition = null )
OpenPOWER on IntegriCloud