Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
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_GANTTBAR"><div style="background-color:yellow;font-family:courier new;"></a>CLASS <b>GanttBar</b> EXTENDS <a href="GanttPlotObject .html#_C_GANTTPLOTOBJECT " style="font-face:arial;font-weight:bold;">GanttPlotObject </a></div>
9
<i>(Defined in: jpgraph_gantt.php : 3140)</i><table border=1><tr><td>&nbsp;<a href="GanttBar.html" style="font-family:arial;font-weight:bold;color:darkblue;">GanttBar</a>&nbsp;</td><td>&nbsp;<a href="GanttPlotObject .html" style="font-family:arial;font-weight:bold;color:darkblue;">GanttPlotObject </a>&nbsp;</td></tr><tr><td valign=top>&nbsp;<a href="GanttBar.html#_GANTTBAR_GANTTBAR">GanttBar()</a>&nbsp;<br>
10
&nbsp;<a href="GanttBar.html#_GANTTBAR_SETCOLOR">SetColor()</a>&nbsp;<br>
11
&nbsp;<a href="GanttBar.html#_GANTTBAR_SETFILLCOLOR">SetFillColor()</a>&nbsp;<br>
12
&nbsp;<a href="GanttBar.html#_GANTTBAR_SETHEIGHT">SetHeight()</a>&nbsp;<br>
13
&nbsp;<a href="GanttBar.html#_GANTTBAR_SETPATTERN">SetPattern()</a>&nbsp;<br>
14
&nbsp;<a href="GanttBar.html#_GANTTBAR_SETSHADOW">SetShadow()</a>&nbsp;<br>
15
</td><td valign=top>&nbsp;</td></tr></table>&nbsp;<p><div style="font-weight:bold;font-family:arial;font-size:100%;">Class usage and Overview</div>This class represents each activity bar. The activity bars can then be added to a GanttChart vi the GanttGraph::Add() <p> &nbsp;
16
<hr><span style="font-family:arial;font-size:120%;font-weight:bold;">Class Methods</span><hr><p>
17
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_GANTTBAR_GANTTBAR"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
18
function&nbsp;GanttBar($aPos,$aLabel,$aStart,$aEnd,$aCaption,$aHeightFactor)</font>
19
</b></div></a></span>
20
 
21
<span style='font-family:arial;font-size:90%;'><i>Create a new activity bar.</i></span><p>
22
 
23
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
24
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
25
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
26
$aPos</font>
27
 
28
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Vertical position (row)</td></tr>
29
 
30
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
31
$aLabel</font>
32
 
33
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Text label</td></tr>
34
 
35
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
36
$aStart</font>
37
 
38
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Start date</td></tr>
39
 
40
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
41
$aEnd</font>
42
 
43
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>End date</td></tr>
44
 
45
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
46
$aCaption</font>
47
 
48
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
49
""</font>
50
</td><td>Caption string for bar</td></tr>
51
 
52
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
53
$aHeightFactor</font>
54
 
55
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
56
0.6</font>
57
</td><td>Height factor</td></tr>
58
</table>
59
 
60
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Create a new activity bar. An activity bar is created by specifyin :
61
<ol>
62
<li> The row in gentt chart to draw the activity bar in
63
<li> Specify a label(titel) for the activity.
64
<li> A start date
65
<li> An end date
66
<li> A caption which is a string that gets stroked to the right of the activity bar.
67
<li> Height as either an asbolute value or as a fraction of the available row height.
68
</ol>
69
&nbsp;<br>
70
 
71
<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">
72
$bar&nbsp;=&nbsp;new&nbsp;GanttBar(4,"Group&nbsp;2",&nbsp;"2001-11-30","2001-12-22","[5%]",10);</font>
73
</span><br>
74
<p>
75
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_GANTTBAR_SETCOLOR"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
76
function&nbsp;SetColor($aColor)</font>
77
</b></div></a></span>
78
 
79
<span style='font-family:arial;font-size:90%;'><i>Specify frame color for the activity bar</i></span><p>
80
 
81
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
82
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
83
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
84
$aColor</font>
85
 
86
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Color for gantt bar</td></tr>
87
</table>
88
 
89
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Specify frame color for the activity bar.&nbsp;<br>
90
 
91
<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">
92
$bar-&gt;SetColor('orange');
<br /></font>
93
</span><br>
94
<p>
95
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_GANTTBAR_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">
96
function&nbsp;SetFillColor($aColor)</font>
97
</b></div></a></span>
98
99
 
100
101
 
102
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
103
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
104
$aColor</font>
105
106
 
107
</table>
108
109
 
110
<p>
111
<b>Note:</b> It is perfectly possible to use both a background color as weel as a pattern.
112
&nbsp;<br>
113
114
 
115
$bar-&gt;SetPattern(BAND_RDIAG,"yellow");
<br />$bar-&gt;SetFillColor("red");
<br /></font>
116
</span><br>
117
<p>
118
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_GANTTBAR_SETHEIGHT"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
119
function&nbsp;SetHeight($aHeight)</font>
120
</b></div></a></span>
121
122
<span style='font-family:arial;font-size:90%;'><i>Set height for the bar.</i></span><p>
123
124
 
125
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
126
 
127
$aHeight</font>
128
129
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Height specification for bars</td></tr>
130
</table>
131
 
132
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Specify height of the activity bar. The height can be specified as either as fraction (0.0 to 1.0) or as an absolute value (1 to 200). In the first case the height is interpreted as the fraction of the row height and in the second case as an absolute height in pixels.&nbsp;<br>
133
134
 
135
$bar-&gt;SetHeight(0.6);
<br /></font>
136
 
137
<p>
138
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_GANTTBAR_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">
139
function&nbsp;SetPattern($aPattern,$aColor,$aDensity)</font>
140
</b></div></a></span>
141
142
<span style='font-family:arial;font-size:90%;'><i>Specify what pattern to use for the activity bars.</i></span><p>
143
144
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
145
 
146
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
147
 
148
149
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Pattern specification</td></tr>
150
151
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
152
 
153
154
 
155
"blue"</font>
156
</td><td>Pattern color</td></tr>
157
 
158
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
159
$aDensity</font>
160
161
 
162
95</font>
163
</td><td>Density</td></tr>
164
 
165
166
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>The following patterns are currently implemented:
167
<ol>
168
<li>GANTT_RDIAG, Right diagonal lines
169
 
170
<li>GANTT_SOLID, Solid one color
171
<li>GANTT_LVERT, Vertical lines
172
<li>GANTT_LHOR, Horizontal lines
173
<li>GANTT_VLINE, Vertical lines
174
<li>GANTT_HLINE, Horizontal lines
175
<li>GANTT_3DPLANE, A 3D plane
176
<li>GANTT_HVCROSS, Crosses
177
<li>GANTT_DIAGCROSS, Diagonal crosses
178
</ol>
179
&nbsp;<br>
180
 &nbsp; <div style="font-weight:bold;font-family:arial;font-size:85%;">See also</div><a href="Progress.html#_PROGRESS_SETPATTERN">Progress::SetPattern</a>
181
<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">
182
$bar-&gt;SetPattern(BAND_RDIAG,"yellow");
<br />$bar-&gt;SetFillColor("red");</font>
183
</span><br>
184
<p>
185
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_GANTTBAR_SETSHADOW"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
186
function&nbsp;SetShadow($aShadow,$aColor)</font>
187
</b></div></a></span>
188
189
<span style='font-family:arial;font-size:90%;'><i>Add a drop shadow to the bar.</i></span><p>
190
191
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
192
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
193
 
194
$aShadow</font>
195
 
196
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
197
true</font>
198
</td><td>True=Add drop shadow to bars</td></tr>
199
200
 
201
$aColor</font>
202
203
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
204
 
205
</td><td>Colro fo shadow</td></tr>
206
</table>
207
 
208
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Add a drop shadow to the bar.
209
&nbsp;<br>
210
211
<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">
212
 
213
</span><br>
214
<p> <hr> <p>