| 1 |
lars |
1 |
<style type="text/css">
|
|
|
2 |
<!--
|
|
|
3 |
A:link {font-family: helvetica, arial, geneva, sans-serif; font-size: x-small; text-decoration: none; color: #0000ff}
|
|
|
4 |
A:visited {font-family: helvetica, arial, geneva, sans-serif; font-size: x-small; text-decoration: none; color: #0000ff}
|
|
|
5 |
A:hover {font-family: helvetica, arial, geneva, sans-serif; font-size: x-small; text-decoration: underline; color: #FF0000}
|
|
|
6 |
th {font-family: helvetica, arial; color : blue; font-size:85%; background : lightgrey; border-right:black solid 1pt; border-bottom:black solid 1pt;}
|
|
|
7 |
//-->
|
|
|
8 |
</style><hr><a name="_C_PROGRESS"><div style="background-color:yellow;font-family:courier new;"></a>CLASS <b>Progress</b></div>
|
|
|
9 |
<i>(Defined in: jpgraph_gantt.php : 3027)</i><table border=1><tr><td> <a href="Progress.html" style="font-family:arial;font-weight:bold;color:darkblue;">Progress</a> </td></tr><tr><td valign=top> <a href="Progress.html#_PROGRESS_SET">Set()</a> <br>
|
|
|
10 |
<a href="Progress.html#_PROGRESS_SETFILLCOLOR">SetFillColor()</a> <br>
|
|
|
11 |
<a href="Progress.html#_PROGRESS_SETPATTERN">SetPattern()</a> <br>
|
|
|
12 |
</td></tr></table> <p><div style="font-weight:bold;font-family:arial;font-size:100%;">Class usage and Overview</div>Represents the progress bar inside the activity bar in Gantt Charts <p>
|
|
|
13 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">See also related classes:</div><a href="GanttGraph.html">GanttGraph</a> and <a href="GanttBar.html">GanttBar</a> <p> <hr><span style="font-family:arial;font-size:120%;font-weight:bold;">Class Methods</span><hr><p>
|
|
|
14 |
<p> <p> <span style='font-size:110%;'><a name="_PROGRESS_SET"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
|
|
|
15 |
function Set($aProg)</font>
|
|
|
16 |
</b></div></a></span>
|
|
|
17 |
|
|
|
18 |
<span style='font-family:arial;font-size:90%;'><i>Specify progress of activity in percent.</i></span><p>
|
|
|
19 |
|
|
|
20 |
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
|
|
|
21 |
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
|
22 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
23 |
$aProg</font>
|
|
|
24 |
|
|
|
25 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Progress in percent (0-1)</td></tr>
|
|
|
26 |
</table>
|
|
|
27 |
|
|
|
28 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Specify progress of activity in percent. The shape of the progress bar can be specified with Progress::SetPattern() <br>
|
|
|
29 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">See also</div><a href="Progress.html#_PROGRESS_SETPATTERN">Progress::SetPattern</a>
|
|
|
30 |
<div style="font-weight:bold;font-family:arial;font-size:85%;"><p>Example</div><span style="font-family:courier;font-size:85%;"><font color="#000000">
|
|
|
31 |
$bar->progress->Set(0.8);</font>
|
|
|
32 |
</span><br>
|
|
|
33 |
<p>
|
|
|
34 |
<p> <p> <span style='font-size:110%;'><a name="_PROGRESS_SETFILLCOLOR"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
|
|
|
35 |
function SetFillColor($aColor)</font>
|
|
|
36 |
</b></div></a></span>
|
|
|
37 |
|
|
|
38 |
<span style='font-family:arial;font-size:90%;'><i>Set fill (background) color for progress bar</i></span><p>
|
|
|
39 |
|
|
|
40 |
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
|
|
|
41 |
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
|
42 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
43 |
$aColor</font>
|
|
|
44 |
|
|
|
45 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Color</td></tr>
|
|
|
46 |
</table>
|
|
|
47 |
|
|
|
48 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Set fill (background) color for progress bar <br>
|
|
|
49 |
|
|
|
50 |
<div style="font-weight:bold;font-family:arial;font-size:85%;"><p>Example</div><span style="font-family:courier;font-size:85%;"><font color="#000000">
|
|
|
51 |
$bar->progress->SetFillColor('white');</font>
|
|
|
52 |
</span><br>
|
|
|
53 |
<p>
|
|
|
54 |
<p> <p> <span style='font-size:110%;'><a name="_PROGRESS_SETPATTERN"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
|
|
|
55 |
function SetPattern($aPattern,$aColor,$aDensity)</font>
|
|
|
56 |
</b></div></a></span>
|
|
|
57 |
|
|
|
58 |
<span style='font-family:arial;font-size:90%;'><i>Specify pattern class to use for progress bar</i></span><p>
|
|
|
59 |
|
|
|
60 |
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
|
|
|
61 |
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
|
62 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
63 |
$aPattern</font>
|
|
|
64 |
|
|
|
65 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Pattern</td></tr>
|
|
|
66 |
|
|
|
67 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
68 |
$aColor</font>
|
|
|
69 |
|
|
|
70 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
71 |
"blue"</font>
|
|
|
72 |
</td><td>Color</td></tr>
|
|
|
73 |
|
|
|
74 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
75 |
$aDensity</font>
|
|
|
76 |
|
|
|
77 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
78 |
98</font>
|
|
|
79 |
</td><td>Density</td></tr>
|
|
|
80 |
</table>
|
|
|
81 |
|
|
|
82 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Specify pattern class to use for progress bar. Valid patterns for the first argument are:
|
|
|
83 |
|
|
|
84 |
<ul>
|
|
|
85 |
<li>BAND_RDIAG, Right diagonal lines
|
|
|
86 |
<li>BAND_LDIAG, Left diagonal lines
|
|
|
87 |
<li>BAND_SOLID, Solid one color
|
|
|
88 |
<li>BAND_LVERT, Vertical lines
|
|
|
89 |
<li>BAND_LHOR, Horizontal lines
|
|
|
90 |
<li>BAND_VLINE, Vertical lines
|
|
|
91 |
<li>BAND_HLINE, Horizontal lines
|
|
|
92 |
<li>BAND_3DPLANE, "3D" Plane
|
|
|
93 |
<lI>BAND_HVCROSS, Vertical/Hor crosses
|
|
|
94 |
<li>BAND_DIAGCROSS, Diagonal crosses
|
|
|
95 |
</ul>
|
|
|
96 |
|
|
|
97 |
<br>
|
|
|
98 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">See also</div><a href="GanttBar.html#_GANTTBAR_SETPATTERN">GanttBar::SetPattern</a>
|
|
|
99 |
<div style="font-weight:bold;font-family:arial;font-size:85%;"><p>Example</div><span style="font-family:courier;font-size:85%;"><font color="#000000">
|
|
|
100 |
$activity->Set(0.8);
<br />$activity->progress->SetPattern(BAND_RDIAG,"blue");
<br /></font>
|
|
|
101 |
</span><br>
|
|
|
102 |
<p> <hr> <p>
|