@@ -39,6 +39,9 @@ discard block |
||
39 | 39 | $this->yscale->ticks->SupressMinorTickMarks(!$aFlag); |
40 | 40 | } |
41 | 41 | |
42 | + /** |
|
43 | + * @param string $axtype |
|
44 | + */ |
|
42 | 45 | public function SetScale($axtype, $ymin = 1, $ymax = 1, $dummy1 = null, $dumy2 = null) |
43 | 46 | { |
44 | 47 | if ($axtype != 'lin' && $axtype != 'log') { |
@@ -72,6 +75,9 @@ discard block |
||
72 | 75 | $this->SetSize($aSize); |
73 | 76 | } |
74 | 77 | |
78 | + /** |
|
79 | + * @param integer $densy |
|
80 | + */ |
|
75 | 81 | public function SetTickDensity($densy = TICKD_NORMAL, $dummy1 = null) |
76 | 82 | { |
77 | 83 | $this->ytick_factor = 25; |
@@ -113,6 +119,9 @@ discard block |
||
113 | 119 | } |
114 | 120 | } |
115 | 121 | |
122 | + /** |
|
123 | + * @param integer[] $aColor |
|
124 | + */ |
|
116 | 125 | public function SetColor($aColor) |
117 | 126 | { |
118 | 127 | $this->SetMarginColor($aColor); |
@@ -19,6 +19,9 @@ |
||
19 | 19 | protected $linespacing; // Line spacing in pixels |
20 | 20 | protected $iBackgroundColor = -1; // Default is no background fill |
21 | 21 | |
22 | + /** |
|
23 | + * @param string $aColor |
|
24 | + */ |
|
22 | 25 | public function __construct($aColor, $aWeight = 1) |
23 | 26 | { |
24 | 27 | $this->color = $aColor; |
@@ -73,6 +73,9 @@ |
||
73 | 73 | parent::AddText($aTxt); |
74 | 74 | } |
75 | 75 | |
76 | + /** |
|
77 | + * @param string $c |
|
78 | + */ |
|
76 | 79 | public function SetColor($c) |
77 | 80 | { |
78 | 81 | $this->SetMarginColor($c); |
@@ -26,12 +26,22 @@ discard block |
||
26 | 26 | // timeout value it will be overwritten with a newer version. |
27 | 27 | // If timeout is set to 0 this is the same as infinite large timeout and if |
28 | 28 | // timeout is set to -1 this is the same as infinite small timeout |
29 | + |
|
30 | + /** |
|
31 | + * @param integer $aTimeout |
|
32 | + */ |
|
29 | 33 | public function SetTimeout($aTimeout) |
30 | 34 | { |
31 | 35 | $this->timeout = $aTimeout; |
32 | 36 | } |
33 | 37 | |
34 | 38 | // Output image to browser and also write it to the cache |
39 | + |
|
40 | + /** |
|
41 | + * @param Image $aImage |
|
42 | + * @param boolean $aInline |
|
43 | + * @param string $aStrokeFileName |
|
44 | + */ |
|
35 | 45 | public function PutAndStream($aImage, $aCacheFileName, $aInline, $aStrokeFileName) |
36 | 46 | { |
37 | 47 | |
@@ -169,6 +179,11 @@ discard block |
||
169 | 179 | // Check if a given image is in cache and in that case |
170 | 180 | // pass it directly on to web browser. Return false if the |
171 | 181 | // image file doesn't exist or exists but is to old |
182 | + |
|
183 | + /** |
|
184 | + * @param Image $aImage |
|
185 | + * @param string $aCacheFileName |
|
186 | + */ |
|
172 | 187 | public function GetAndStream($aImage, $aCacheFileName) |
173 | 188 | { |
174 | 189 | if ($this->Isvalid($aCacheFileName)) { |
@@ -181,6 +196,10 @@ discard block |
||
181 | 196 | //--------------- |
182 | 197 | // PRIVATE METHODS |
183 | 198 | // Create all necessary directories in a path |
199 | + |
|
200 | + /** |
|
201 | + * @param string $aFile |
|
202 | + */ |
|
184 | 203 | public function MakeDirs($aFile) |
185 | 204 | { |
186 | 205 | $dirs = array(); |
@@ -220,6 +220,10 @@ |
||
220 | 220 | // * $aBorder, if set to anything besides false this will draw a |
221 | 221 | // a border of the speciied color around the image |
222 | 222 | // -------------------------------------------------------------------- |
223 | + |
|
224 | + /** |
|
225 | + * @param integer $aDir |
|
226 | + */ |
|
223 | 227 | public function Skew3D($aHorizon = 120, $aSkewDist = 150, $aDir = SKEW3D_DOWN, $aHiQuality = false, $aMinSize = true, $aFillColor = '#FFFFFF', $aBorder = false) |
224 | 228 | { |
225 | 229 | return $this->_Skew3D($this->gdImg, $aHorizon, $aSkewDist, $aDir, $aHiQuality, |
@@ -18,6 +18,10 @@ discard block |
||
18 | 18 | private $iSize = ARROW_S2; |
19 | 19 | private $iColor = 'black'; |
20 | 20 | |
21 | + /** |
|
22 | + * @param integer $x |
|
23 | + * @param integer $aDirection |
|
24 | + */ |
|
21 | 25 | public function __construct($x, $y, $aDirection, $aType = ARROWT_SOLID, $aSize = ARROW_S2) |
22 | 26 | { |
23 | 27 | $this->iDirection = $aDirection; |
@@ -27,6 +31,9 @@ discard block |
||
27 | 31 | $this->iy = $y; |
28 | 32 | } |
29 | 33 | |
34 | + /** |
|
35 | + * @param string $aColor |
|
36 | + */ |
|
30 | 37 | public function SetColor($aColor) |
31 | 38 | { |
32 | 39 | $this->iColor = $aColor; |
@@ -15,6 +15,9 @@ discard block |
||
15 | 15 | public $transy = 0; |
16 | 16 | private $m = array(); |
17 | 17 | |
18 | + /** |
|
19 | + * @param string $aFormat |
|
20 | + */ |
|
18 | 21 | public function __construct($aWidth, $aHeight, $a = 0, $aFormat = DEFAULT_GFORMAT, $aSetAutoMargin = true) |
19 | 22 | { |
20 | 23 | parent::__construct($aWidth, $aHeight, $aFormat, $aSetAutoMargin); |
@@ -23,6 +26,10 @@ discard block |
||
23 | 26 | $this->SetAngle($a); |
24 | 27 | } |
25 | 28 | |
29 | + /** |
|
30 | + * @param double $dx |
|
31 | + * @param double $dy |
|
32 | + */ |
|
26 | 33 | public function SetCenter($dx, $dy) |
27 | 34 | { |
28 | 35 | $old_dx = $this->dx; |
@@ -70,6 +77,11 @@ discard block |
||
70 | 77 | parent::Circle($xc, $yc, $r); |
71 | 78 | } |
72 | 79 | |
80 | + /** |
|
81 | + * @param integer $xc |
|
82 | + * @param integer $yc |
|
83 | + * @param integer $r |
|
84 | + */ |
|
73 | 85 | public function FilledCircle($xc, $yc, $r) |
74 | 86 | { |
75 | 87 | list($xc, $yc) = $this->Rotate($xc, $yc); |
@@ -112,6 +124,10 @@ discard block |
||
112 | 124 | } |
113 | 125 | } |
114 | 126 | |
127 | + /** |
|
128 | + * @param integer $fromX |
|
129 | + * @param integer $fromY |
|
130 | + */ |
|
115 | 131 | public function CopyMerge($fromImg, $toX, $toY, $fromX, $fromY, $toWidth, $toHeight, $fromWidth = -1, $fromHeight = -1, $aMix = 100) |
116 | 132 | { |
117 | 133 | list($toX, $toY) = $this->Rotate($toX, $toY); |
@@ -28,6 +28,9 @@ discard block |
||
28 | 28 | $this->img = $img; |
29 | 29 | } |
30 | 30 | |
31 | + /** |
|
32 | + * @param integer $aNum |
|
33 | + */ |
|
31 | 34 | public function SetNumColors($aNum) |
32 | 35 | { |
33 | 36 | $this->numcolors = $aNum; |
@@ -328,6 +331,11 @@ discard block |
||
328 | 331 | // Please note that this is NOT a generic gradient polygon fill |
329 | 332 | // routine. It assumes that the bottom is flat (like a drawing |
330 | 333 | // of a mountain) |
334 | + |
|
335 | + /** |
|
336 | + * @param string $from_color |
|
337 | + * @param string $to_color |
|
338 | + */ |
|
331 | 339 | public function FilledFlatPolygon($pts, $from_color, $to_color) |
332 | 340 | { |
333 | 341 | if (count($pts) == 0) { |
@@ -186,6 +186,11 @@ |
||
186 | 186 | } |
187 | 187 | } |
188 | 188 | |
189 | + /** |
|
190 | + * @param double $xc |
|
191 | + * @param double $yc |
|
192 | + * @param double $r |
|
193 | + */ |
|
189 | 194 | public function AddMiddleCSIM($xc, $yc, $r) |
190 | 195 | { |
191 | 196 | $xc = round($xc); |