@@ -57,6 +57,10 @@ discard block |
||
57 | 57 | |
58 | 58 | //--------------- |
59 | 59 | // PUBLIC METHODS |
60 | + |
|
61 | + /** |
|
62 | + * @param integer $aType |
|
63 | + */ |
|
60 | 64 | public function SetType($aType, $aFileName = '', $aScale = 1.0) |
61 | 65 | { |
62 | 66 | $this->type = $aType; |
@@ -82,11 +86,17 @@ discard block |
||
82 | 86 | return $this->type; |
83 | 87 | } |
84 | 88 | |
89 | + /** |
|
90 | + * @param string $aColor |
|
91 | + */ |
|
85 | 92 | public function SetColor($aColor) |
86 | 93 | { |
87 | 94 | $this->color = $aColor; |
88 | 95 | } |
89 | 96 | |
97 | + /** |
|
98 | + * @param string $aFillColor |
|
99 | + */ |
|
90 | 100 | public function SetFillColor($aFillColor) |
91 | 101 | { |
92 | 102 | $this->fill_color = $aFillColor; |
@@ -103,6 +113,9 @@ discard block |
||
103 | 113 | $this->width = $aWidth; |
104 | 114 | } |
105 | 115 | |
116 | + /** |
|
117 | + * @param integer $aWidth |
|
118 | + */ |
|
106 | 119 | public function SetWidth($aWidth) |
107 | 120 | { |
108 | 121 | $this->width = $aWidth; |
@@ -157,6 +170,9 @@ discard block |
||
157 | 170 | return $this->csimareas; |
158 | 171 | } |
159 | 172 | |
173 | + /** |
|
174 | + * @param double[] $aPts |
|
175 | + */ |
|
160 | 176 | public function AddCSIMPoly($aPts) |
161 | 177 | { |
162 | 178 | $coords = round($aPts[0]) . ", " . round($aPts[1]); |
@@ -54,6 +54,9 @@ |
||
54 | 54 | $this->weight = $w; |
55 | 55 | } |
56 | 56 | |
57 | + /** |
|
58 | + * @param boolean $aColor |
|
59 | + */ |
|
57 | 60 | public function SetFillColor($aColor) |
58 | 61 | { |
59 | 62 | $this->fill_color = $aColor; |
@@ -177,6 +177,13 @@ |
||
177 | 177 | } |
178 | 178 | |
179 | 179 | // A hook for subclasses to modify the plot |
180 | + |
|
181 | + /** |
|
182 | + * @param integer $i |
|
183 | + * @param double $xl |
|
184 | + * @param double $xr |
|
185 | + * @param boolean $neg |
|
186 | + */ |
|
180 | 187 | public function ModBox($img, $xscale, $yscale, $i, $xl, $xr, $neg) |
181 | 188 | { |
182 | 189 | } |
@@ -261,6 +261,10 @@ discard block |
||
261 | 261 | } |
262 | 262 | } |
263 | 263 | |
264 | + /** |
|
265 | + * @param double $aXC |
|
266 | + * @param string $aColor |
|
267 | + */ |
|
264 | 268 | public function _ThickCircle($aImg, $aXC, $aYC, $aRad, $aWeight = 2, $aColor) |
265 | 269 | { |
266 | 270 | $aImg->SetColor($aColor); |
@@ -578,6 +582,14 @@ discard block |
||
578 | 582 | $this->iLabelPositioning = $aPos; |
579 | 583 | } |
580 | 584 | |
585 | + /** |
|
586 | + * @param Text\Text $value |
|
587 | + * @param double $scaling |
|
588 | + * @param double $xc |
|
589 | + * @param double $yc |
|
590 | + * @param double $r |
|
591 | + * @param double $ri |
|
592 | + */ |
|
581 | 593 | public function _StrokeFreeRose($dblImg, $value, $scaling, $xc, $yc, $r, $ri) |
582 | 594 | { |
583 | 595 | |
@@ -753,6 +765,10 @@ discard block |
||
753 | 765 | |
754 | 766 | // Translate potential string specified compass labels to their |
755 | 767 | // corresponding index. |
768 | + |
|
769 | + /** |
|
770 | + * @param integer $num |
|
771 | + */ |
|
756 | 772 | public function FixupIndexes($aDataArray, $num) |
757 | 773 | { |
758 | 774 | $ret = []; |
@@ -782,6 +798,14 @@ discard block |
||
782 | 798 | return $ret; |
783 | 799 | } |
784 | 800 | |
801 | + /** |
|
802 | + * @param Text\Text $value |
|
803 | + * @param double $scaling |
|
804 | + * @param double $xc |
|
805 | + * @param double $yc |
|
806 | + * @param double $r |
|
807 | + * @param double $ri |
|
808 | + */ |
|
785 | 809 | public function _StrokeRegularRose($dblImg, $value, $scaling, $xc, $yc, $r, $ri) |
786 | 810 | { |
787 | 811 | // _StrokeRegularRose($dblImg,$xc,$yc,$r,$ri) |
@@ -55,6 +55,9 @@ |
||
55 | 55 | $this->corner = $aD; |
56 | 56 | } |
57 | 57 | |
58 | + /** |
|
59 | + * @param \Amenadiel\JpGraph\Image\RotImage $aImg |
|
60 | + */ |
|
58 | 61 | public function Stroke($aImg, $aDummy1 = null, $aDummy2 = null) |
59 | 62 | { |
60 | 63 | if ($this->hide) { |
@@ -856,6 +856,10 @@ |
||
856 | 856 | } |
857 | 857 | } |
858 | 858 | |
859 | + /** |
|
860 | + * @param double $aX |
|
861 | + * @param double $aY |
|
862 | + */ |
|
859 | 863 | public function Stroke($aImg, $aX = null, $aY = null) |
860 | 864 | { |
861 | 865 | if ($aX !== null && $aY !== null) { |
@@ -97,18 +97,30 @@ discard block |
||
97 | 97 | } |
98 | 98 | |
99 | 99 | // Alias |
100 | + |
|
101 | + /** |
|
102 | + * @param string $aHAlign |
|
103 | + */ |
|
100 | 104 | public function SetAlign($aHAlign, $aVAlign = "top", $aParagraphAlign = "") |
101 | 105 | { |
102 | 106 | $this->Align($aHAlign, $aVAlign, $aParagraphAlign); |
103 | 107 | } |
104 | 108 | |
105 | 109 | // Specifies the alignment for a multi line text |
110 | + |
|
111 | + /** |
|
112 | + * @param string $aAlign |
|
113 | + */ |
|
106 | 114 | public function ParagraphAlign($aAlign) |
107 | 115 | { |
108 | 116 | $this->paragraph_align = $aAlign; |
109 | 117 | } |
110 | 118 | |
111 | 119 | // Specifies the alignment for a multi line text |
120 | + |
|
121 | + /** |
|
122 | + * @param string $aAlign |
|
123 | + */ |
|
112 | 124 | public function SetParagraphAlign($aAlign) |
113 | 125 | { |
114 | 126 | $this->paragraph_align = $aAlign; |
@@ -176,6 +188,10 @@ discard block |
||
176 | 188 | } |
177 | 189 | |
178 | 190 | // Center the text between $left and $right coordinates |
191 | + |
|
192 | + /** |
|
193 | + * @param integer $aLeft |
|
194 | + */ |
|
179 | 195 | public function Center($aLeft, $aRight, $aYAbsPos = false) |
180 | 196 | { |
181 | 197 | $this->x = $aLeft + ($aRight - $aLeft) / 2; |
@@ -186,6 +202,10 @@ discard block |
||
186 | 202 | } |
187 | 203 | |
188 | 204 | // Set text color |
205 | + |
|
206 | + /** |
|
207 | + * @param string $aColor |
|
208 | + */ |
|
189 | 209 | public function SetColor($aColor) |
190 | 210 | { |
191 | 211 | $this->color = $aColor; |
@@ -244,6 +264,10 @@ discard block |
||
244 | 264 | |
245 | 265 | // Set the margin which will be interpretated differently depending |
246 | 266 | // on the context. |
267 | + |
|
268 | + /** |
|
269 | + * @param integer $aMarg |
|
270 | + */ |
|
247 | 271 | public function SetMargin($aMarg) |
248 | 272 | { |
249 | 273 | $this->margin = $aMarg; |
@@ -67,7 +67,7 @@ |
||
67 | 67 | * range 0 $mu < 1 where 0 is tha start point and 1 is the end point. Note that every newly computed |
68 | 68 | * point depends on all the existing points |
69 | 69 | * |
70 | - * @param $mu Position on the bezier curve |
|
70 | + * @param double $mu Position on the bezier curve |
|
71 | 71 | * @return array($x, $y) |
72 | 72 | */ |
73 | 73 | public function GetPoint($mu) |
@@ -22,6 +22,9 @@ |
||
22 | 22 | $this->Set('C'); |
23 | 23 | } |
24 | 24 | |
25 | + /** |
|
26 | + * @param string $aLocale |
|
27 | + */ |
|
25 | 28 | public function Set($aLocale) |
26 | 29 | { |
27 | 30 | if (in_array($aLocale, array_keys($this->iDayAbb))) { |