| 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_GANTTGRAPH"><div style="background-color:yellow;font-family:courier new;"></a>CLASS <b>GanttGraph</b> EXTENDS <a href="Graph .html#_C_GRAPH " style="font-face:arial;font-weight:bold;">Graph </a></div>
|
|
|
9 |
<i>(Defined in: jpgraph_gantt.php : 331)</i><table border=1><tr><td> <a href="GanttGraph.html" style="font-family:arial;font-weight:bold;color:darkblue;">GanttGraph</a> </td><td> <a href="Graph .html" style="font-family:arial;font-weight:bold;color:darkblue;">Graph </a> </td></tr><tr><td valign=top> <a href="GanttGraph.html#_GANTTGRAPH_ADD">Add()</a> <br>
|
|
|
10 |
<a href="GanttGraph.html#_GANTTGRAPH_CREATESIMPLE">CreateSimple()</a> <br>
|
|
|
11 |
<a href="GanttGraph.html#_GANTTGRAPH_GANTTGRAPH">GanttGraph()</a> <br>
|
|
|
12 |
<a href="GanttGraph.html#_GANTTGRAPH_SETDATERANGE">SetDateRange()</a> <br>
|
|
|
13 |
<a href="GanttGraph.html#_GANTTGRAPH_SETLABELVMARGINFACTOR">SetLabelVMarginFactor()</a> <br>
|
|
|
14 |
<a href="GanttGraph.html#_GANTTGRAPH_SETSIMPLEFONT">SetSimpleFont()</a> <br>
|
|
|
15 |
<a href="GanttGraph.html#_GANTTGRAPH_SETSIMPLESTYLE">SetSimpleStyle()</a> <br>
|
|
|
16 |
<a href="GanttGraph.html#_GANTTGRAPH_SETVMARGINFACTOR">SetVMarginFactor()</a> <br>
|
|
|
17 |
<a href="GanttGraph.html#_GANTTGRAPH_SHOWHEADERS">ShowHeaders()</a> <br>
|
|
|
18 |
<a href="GanttGraph.html#_GANTTGRAPH_STROKE">Stroke()</a> <br>
|
|
|
19 |
</td><td valign=top> </td></tr></table> <p><div style="font-weight:bold;font-family:arial;font-size:100%;">Class usage and Overview</div>Create a Gantt graph. The Gantt graph can then be built up by adding activity bars and milestones. <p>
|
|
|
20 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">See also related classes:</div><a href="GanttBar.html">GanttBar</a>, <a href="GanttVLine.html">GanttVLine</a> and <a href="MileStone.html">MileStone</a> <p> <hr><span style="font-family:arial;font-size:120%;font-weight:bold;">Class Methods</span><hr><p>
|
|
|
21 |
<p> <p> <span style='font-size:110%;'><a name="_GANTTGRAPH_ADD"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
|
|
|
22 |
function Add($aObject)</font>
|
|
|
23 |
</b></div></a></span>
|
|
|
24 |
|
|
|
25 |
<span style='font-family:arial;font-size:90%;'><i>Add a new Gantt object</i></span><p>
|
|
|
26 |
|
|
|
27 |
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
|
|
|
28 |
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
|
29 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
30 |
$aObject</font>
|
|
|
31 |
|
|
|
32 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Gantt plot object</td></tr>
|
|
|
33 |
</table>
|
|
|
34 |
|
|
|
35 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Add a gantt object to the graph. A gantt object is an instance of either:
|
|
|
36 |
<ul>
|
|
|
37 |
<li> GanttBar
|
|
|
38 |
<li> MileStone
|
|
|
39 |
<li> GanttVLine
|
|
|
40 |
</ul> <br>
|
|
|
41 |
|
|
|
42 |
<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">
|
|
|
43 |
$vline = new GanttVLine("2002-02-28");
<br />$vline->title->Set("2002-02-28");
<br />$vline->title->SetFont(FF_FONT1,FS_BOLD,10);
<br />$graph->Add($vline);
<br /></font>
|
|
|
44 |
</span><br>
|
|
|
45 |
<p>
|
|
|
46 |
<p> <p> <span style='font-size:110%;'><a name="_GANTTGRAPH_CREATESIMPLE"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
|
|
|
47 |
function CreateSimple($data,$constrains,$progress)</font>
|
|
|
48 |
</b></div></a></span>
|
|
|
49 |
|
|
|
50 |
<span style='font-family:arial;font-size:90%;'><i>A utility function to help create the Gantt charts</i></span><p>
|
|
|
51 |
|
|
|
52 |
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
|
|
|
53 |
|
|
|
54 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
55 |
|
|
|
56 |
|
|
|
57 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Gantt bar specification (See below)</td></tr>
|
|
|
58 |
|
|
|
59 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
60 |
|
|
|
61 |
|
|
|
62 |
|
|
|
63 |
array()</font>
|
|
|
64 |
</td><td>Constrain specification (see below)</td></tr>
|
|
|
65 |
|
|
|
66 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
67 |
$progress</font>
|
|
|
68 |
|
|
|
69 |
|
|
|
70 |
array()</font>
|
|
|
71 |
</td><td>Progress specification (see below)</td></tr>
|
|
|
72 |
|
|
|
73 |
|
|
|
74 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>For a simple Gantt graphs this will simplify it's creation. The idea is that this method accepts a number of data arrays which specifies the activities in the Gantt graph.
|
|
|
75 |
<p>
|
|
|
76 |
<b>Description of arguments</b><br>
|
|
|
77 |
|
|
|
78 |
<li> $data. Specifies the basic type of activity. Eac entry is an array with the following content:
|
|
|
79 |
<ol>
|
|
|
80 |
<li> Row where activity whould be
|
|
|
81 |
<li> Type of activity, can be one of ACTYPE_NORMAL, ACTYPE_GROUP, ACTYUPE_MILESTONE
|
|
|
82 |
<li> Activity title
|
|
|
83 |
<li> Start date
|
|
|
84 |
<li> End date
|
|
|
85 |
<li> Caption text
|
|
|
86 |
</ol>
|
|
|
87 |
<li> $constrains. Specifies potential constrain links between activities each entry is an array with the following content
|
|
|
88 |
<ol>
|
|
|
89 |
<li> From activity (specified by row)
|
|
|
90 |
<li> To activity (specified by row)
|
|
|
91 |
<li> Constrain type, (e.g CONSTRAIN_ENDSTART)
|
|
|
92 |
</ol>
|
|
|
93 |
<li> $progress. Specify a potential progress bar for each activity. Each entry is an array with the following content
|
|
|
94 |
<ol>
|
|
|
95 |
<li> Activity specification (by row)
|
|
|
96 |
<li> Progress as a fraction in the range [0,1]
|
|
|
97 |
</ol>
|
|
|
98 |
</ul>
|
|
|
99 |
|
|
|
100 |
<br>
|
|
|
101 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">See also</div><a href="GanttPlotObject.html#_GANTTPLOTOBJECT_SETCONSTRAIN">GanttPlotObject::SetConstrain</a>, <a href="Progress.html#_PROGRESS_SET">Progress::Set</a>, <a href="GanttGraph.html#_GANTTGRAPH_SETSIMPLEFONT">GanttGraph::SetSimpleFont</a> and <a href="GanttGraph.html#_GANTTGRAPH_SETSIMPLESTYLE">GanttGraph::SetSimpleStyle</a>
|
|
|
102 |
<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">
|
|
|
103 |
|
|
|
104 |
</span><br>
|
|
|
105 |
<p>
|
|
|
106 |
<p> <p> <span style='font-size:110%;'><a name="_GANTTGRAPH_GANTTGRAPH"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
|
|
|
107 |
function GanttGraph($aWidth,$aHeight,$aCachedName,$aTimeOut,$aInline)</font>
|
|
|
108 |
</b></div></a></span>
|
|
|
109 |
|
|
|
110 |
<span style='font-family:arial;font-size:90%;'><i>Create a new GanttGraph</i></span><p>
|
|
|
111 |
|
|
|
112 |
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
|
|
|
113 |
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
|
114 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
115 |
$aWidth</font>
|
|
|
116 |
|
|
|
117 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
118 |
0</font>
|
|
|
119 |
</td><td>Width of graph</td></tr>
|
|
|
120 |
|
|
|
121 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
122 |
$aHeight</font>
|
|
|
123 |
|
|
|
124 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
125 |
0</font>
|
|
|
126 |
</td><td>Height of graph</td></tr>
|
|
|
127 |
|
|
|
128 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
129 |
$aCachedName</font>
|
|
|
130 |
|
|
|
131 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
132 |
""</font>
|
|
|
133 |
</td><td>Filename to use if cache is enables</td></tr>
|
|
|
134 |
|
|
|
135 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
136 |
$aTimeOut</font>
|
|
|
137 |
|
|
|
138 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
139 |
|
|
|
140 |
</td><td>Timeout in minutes</td></tr>
|
|
|
141 |
|
|
|
142 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
143 |
$aInline</font>
|
|
|
144 |
|
|
|
145 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
146 |
true</font>
|
|
|
147 |
</td><td>True=Stream back to browser</td></tr>
|
|
|
148 |
|
|
|
149 |
|
|
|
150 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Construct a new GanttGraph. This differs slightly from the standard Graph or PlotGraph in that you are not required to specify width and height of the graph. Instead these can be left out and will be automatically be determined.
|
|
|
151 |
|
|
|
152 |
As a further refinement you can just specify width and have the height be automtically determined.
|
|
|
153 |
<br>
|
|
|
154 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">See also</div><a href="Graph.html#_GRAPH_GRAPH">Graph::Graph</a>
|
|
|
155 |
|
|
|
156 |
// Setup Gantt graph
<br />$graph = new GanttGraph();
<br />$graph->SetShadow();
<br />$graph->SetBox();
<br />
<br />// Only show part of the Gantt
<br />$graph->SetDateRange('2001-11-22','2002-1-24');
<br /></font>
|
|
|
157 |
</span><br>
|
|
|
158 |
|
|
|
159 |
<p> <p> <span style='font-size:110%;'><a name="_GANTTGRAPH_SETDATERANGE"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
|
|
|
160 |
function SetDateRange($aStart,$aEnd)</font>
|
|
|
161 |
</b></div></a></span>
|
|
|
162 |
|
|
|
163 |
<span style='font-family:arial;font-size:90%;'><i>Specify date range for Gantt chart.</i></span><p>
|
|
|
164 |
|
|
|
165 |
|
|
|
166 |
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
|
167 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
168 |
$aStart</font>
|
|
|
169 |
|
|
|
170 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Start date</td></tr>
|
|
|
171 |
|
|
|
172 |
|
|
|
173 |
$aEnd</font>
|
|
|
174 |
|
|
|
175 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>End date</td></tr>
|
|
|
176 |
</table>
|
|
|
177 |
|
|
|
178 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Specify the date range for Gantt graphs. If this is not set it will be automtically determined from the input data.
|
|
|
179 |
<p>
|
|
|
180 |
All gantt chart objects, like bar activities, will be clipped to the spcified date range should they happen to be wider then the specified range.
|
|
|
181 |
<p>
|
|
|
182 |
The date is specified as a normal date string according to the chosen locale.
|
|
|
183 |
<br>
|
|
|
184 |
|
|
|
185 |
<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">
|
|
|
186 |
$graph->SetDateRange('2001-11-22','2002-1-24');
<br /></font>
|
|
|
187 |
</span><br>
|
|
|
188 |
<p>
|
|
|
189 |
<p> <p> <span style='font-size:110%;'><a name="_GANTTGRAPH_SETLABELVMARGINFACTOR"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
|
|
|
190 |
function SetLabelVMarginFactor($aVal)</font>
|
|
|
191 |
</b></div></a></span>
|
|
|
192 |
|
|
|
193 |
<span style='font-family:arial;font-size:90%;'><i>Set margin vertical factor.</i></span><p>
|
|
|
194 |
|
|
|
195 |
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
|
|
|
196 |
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
|
197 |
|
|
|
198 |
$aVal</font>
|
|
|
199 |
|
|
|
200 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Margin factor</td></tr>
|
|
|
201 |
</table>
|
|
|
202 |
|
|
|
203 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Specify the fraction of the font height that should be added as vertical margin between the labels. <br>
|
|
|
204 |
|
|
|
205 |
<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">
|
|
|
206 |
|
|
|
207 |
</span><br>
|
|
|
208 |
<p>
|
|
|
209 |
|
|
|
210 |
function SetSimpleFont($aFont,$aSize)</font>
|
|
|
211 |
</b></div></a></span>
|
|
|
212 |
|
|
|
213 |
<span style='font-family:arial;font-size:90%;'><i>Specify font for simplified Gantt graph</i></span><p>
|
|
|
214 |
|
|
|
215 |
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
|
|
|
216 |
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
|
217 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
218 |
$aFont</font>
|
|
|
219 |
|
|
|
220 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Font family</td></tr>
|
|
|
221 |
|
|
|
222 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
223 |
$aSize</font>
|
|
|
224 |
|
|
|
225 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Font size</td></tr>
|
|
|
226 |
</table>
|
|
|
227 |
|
|
|
228 |
|
|
|
229 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">See also</div><a href="GanttGraph.html#_GANTTGRAPH_CREATESIMPLE">GanttGraph::CreateSimple</a>
|
|
|
230 |
|
|
|
231 |
$ganttgraph->SetSimpleFont(FF_FONT2);</font>
|
|
|
232 |
</span><br>
|
|
|
233 |
<p>
|
|
|
234 |
<p> <p> <span style='font-size:110%;'><a name="_GANTTGRAPH_SETSIMPLESTYLE"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
|
|
|
235 |
|
|
|
236 |
</b></div></a></span>
|
|
|
237 |
|
|
|
238 |
|
|
|
239 |
|
|
|
240 |
|
|
|
241 |
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
|
242 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
243 |
$aBand</font>
|
|
|
244 |
|
|
|
245 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Patern style</td></tr>
|
|
|
246 |
|
|
|
247 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
248 |
|
|
|
249 |
|
|
|
250 |
|
|
|
251 |
|
|
|
252 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
253 |
$aBkgColor</font>
|
|
|
254 |
|
|
|
255 |
|
|
|
256 |
</table>
|
|
|
257 |
|
|
|
258 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Specify looks for bars in Gantt graph when the gantt chart is created with CreateSimple.
|
|
|
259 |
<p>
|
|
|
260 |
|
|
|
261 |
|
|
|
262 |
<ol>
|
|
|
263 |
|
|
|
264 |
<li>GANTT_LDIAG, Left diagonal lines
|
|
|
265 |
<li>GANTT_SOLID, Solid one color
|
|
|
266 |
<li>GANTT_LVERT, Vertical lines
|
|
|
267 |
<li>GANTT_LHOR, Horizontal lines
|
|
|
268 |
<li>GANTT_VLINE, Vertical lines
|
|
|
269 |
<li>GANTT_HLINE, Horizontal lines
|
|
|
270 |
<li>GANTT_3DPLANE, A 3D plane
|
|
|
271 |
<li>GANTT_HVCROSS, Crosses
|
|
|
272 |
<li>GANTT_DIAGCROSS, Diagonal crosses
|
|
|
273 |
|
|
|
274 |
<br>
|
|
|
275 |
|
|
|
276 |
<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">
|
|
|
277 |
$ganttgraph->SetSimpleStyle(GANTT_SOLID,'orange','orange');</font>
|
|
|
278 |
</span><br>
|
|
|
279 |
<p>
|
|
|
280 |
|
|
|
281 |
function SetVMarginFactor($aVal)</font>
|
|
|
282 |
|
|
|
283 |
|
|
|
284 |
<span style='font-family:arial;font-size:90%;'><i>Specify the margin factor for lines in the gantt graph</i></span><p>
|
|
|
285 |
|
|
|
286 |
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
|
|
|
287 |
|
|
|
288 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
289 |
$aVal</font>
|
|
|
290 |
|
|
|
291 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Vertical margin factor</td></tr>
|
|
|
292 |
</table>
|
|
|
293 |
|
|
|
294 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Specify the margin factor for lines in the Gantt graph. A factor of 1 makes each line take just as much space as it needs. A factor of 1.5 makes it 1.5 linmes apart and a factor of 2 makes it double-line spacing and so on.
|
|
|
295 |
<p>
|
|
|
296 |
<b>Hint:</b> When using icon in titles it is usually a good idea to use a margin factor > 1
|
|
|
297 |
|
|
|
298 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">See also</div><a href="GanttGraph.html#_GANTTGRAPH_SETLABELVMARGINFACTOR">GanttGraph::SetLabelVMarginFactor</a>
|
|
|
299 |
<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">
|
|
|
300 |
$graph->SetVMarginFactor(2);</font>
|
|
|
301 |
</span><br>
|
|
|
302 |
<p>
|
|
|
303 |
<p> <p> <span style='font-size:110%;'><a name="_GANTTGRAPH_SHOWHEADERS"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
|
|
|
304 |
function ShowHeaders($aFlg)</font>
|
|
|
305 |
</b></div></a></span>
|
|
|
306 |
|
|
|
307 |
<span style='font-family:arial;font-size:90%;'><i>Determine what headers/scales to display.</i></span><p>
|
|
|
308 |
|
|
|
309 |
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
|
|
|
310 |
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
|
311 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
312 |
$aFlg</font>
|
|
|
313 |
|
|
|
314 |
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'> </td><td>Logic OR of flags to specify what headers should be displayed.</td></tr>
|
|
|
315 |
</table>
|
|
|
316 |
|
|
|
317 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Specify what headers should be displayed on the Gantt charts. Possible headers are:
|
|
|
318 |
<ul>
|
|
|
319 |
|
|
|
320 |
<li>GANTT_HMONTH
|
|
|
321 |
|
|
|
322 |
<li>GANTT_HDAY
|
|
|
323 |
<li>GANTT_HHOUR
|
|
|
324 |
<li>GANTT_HMIN
|
|
|
325 |
</ul>
|
|
|
326 |
|
|
|
327 |
<br>
|
|
|
328 |
|
|
|
329 |
|
|
|
330 |
// Show all headers
<br />$graph->ShowHeaders(GANTT_HYEAR | GANTT_HMONTH | GANTT_HDAY | GANTT_HWEEK);</font>
|
|
|
331 |
</span><br>
|
|
|
332 |
<p>
|
|
|
333 |
<p> <p> <span style='font-size:110%;'><a name="_GANTTGRAPH_STROKE"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
|
|
|
334 |
function Stroke($aStrokeFileName)</font>
|
|
|
335 |
</b></div></a></span>
|
|
|
336 |
|
|
|
337 |
<span style='font-family:arial;font-size:90%;'><i>Internal. Stroke the gantt chart.</i></span><p>
|
|
|
338 |
|
|
|
339 |
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
|
|
|
340 |
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
|
|
|
341 |
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
|
|
|
342 |
|
|
|
343 |
|
|
|
344 |
|
|
|
345 |
""</font>
|
|
|
346 |
</td><td>Filename to stroke image to</td></tr>
|
|
|
347 |
</table>
|
|
|
348 |
|
|
|
349 |
|
|
|
350 |
<p>
|
|
|
351 |
This should as usual be the last method called in your script.
|
|
|
352 |
|
|
|
353 |
<div style="font-weight:bold;font-family:arial;font-size:85%;">See also</div><a href="Graph.html#_GRAPH_STROKE">Graph::Stroke</a>
|
|
|
354 |
<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">
|
|
|
355 |
$ganttgraph->Stroke();
<br /></font>
|
|
|
356 |
</span><br>
|
|
|
357 |
<p> <hr> <p>
|