@@ -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))) { |
@@ -18,17 +18,27 @@ |
||
| 18 | 18 | // Empty. Reserved for future use |
| 19 | 19 | } |
| 20 | 20 | |
| 21 | + /** |
|
| 22 | + * @param string $aTitle |
|
| 23 | + */ |
|
| 21 | 24 | public function SetTitle($aTitle) |
| 22 | 25 | { |
| 23 | 26 | $this->iTitle = $aTitle; |
| 24 | 27 | } |
| 25 | 28 | |
| 29 | + /** |
|
| 30 | + * @param string $aDest |
|
| 31 | + */ |
|
| 26 | 32 | public function SetStrokeDest($aDest) |
| 27 | 33 | { |
| 28 | 34 | $this->iDest = $aDest; |
| 29 | 35 | } |
| 30 | 36 | |
| 31 | 37 | // If aHalt is true then execution can't continue. Typical used for fatal errors |
| 38 | + |
|
| 39 | + /** |
|
| 40 | + * @param string $aMsg |
|
| 41 | + */ |
|
| 32 | 42 | public function Raise($aMsg, $aHalt = false) |
| 33 | 43 | { |
| 34 | 44 | if ($this->iDest != '') { |