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_GANTTPLOTOBJECT"><div style="background-color:yellow;font-family:courier new;"></a>CLASS <b>GanttPlotObject</b></div>
9
<i>(Defined in: jpgraph_gantt.php : 2931)</i><table border=1><tr><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="GanttPlotObject.html#_GANTTPLOTOBJECT_SETCAPTIONMARGIN">SetCaptionMargin()</a>&nbsp;<br>
10
&nbsp;<a href="GanttPlotObject.html#_GANTTPLOTOBJECT_SETCONSTRAIN">SetConstrain()</a>&nbsp;<br>
11
&nbsp;<a href="GanttPlotObject.html#_GANTTPLOTOBJECT_SETCSIMALT">SetCSIMAlt()</a>&nbsp;<br>
12
&nbsp;<a href="GanttPlotObject.html#_GANTTPLOTOBJECT_SETCSIMTARGET">SetCSIMTarget()</a>&nbsp;<br>
13
&nbsp;<a href="GanttPlotObject.html#_GANTTPLOTOBJECT_SETLABELLEFTMARGIN">SetLabelLeftMargin()</a>&nbsp;<br>
14
</td></tr></table>&nbsp;<p><div style="font-weight:bold;font-family:arial;font-size:100%;">Class usage and Overview</div>Abstract base class to hold common properties for all objects that are drawn on the Gantt plot like activity bars, milestones, vertical markers.
15
<p>
16
Internal method that can't be instantiated directly. Used to capture the common properties of all objects that can be added to the Ganttgraph, i.e. GanttBar, MileStones GanttVLine.
17
 
18
 <p> &nbsp;
19
<div style="font-weight:bold;font-family:arial;font-size:85%;">See also related classes:</div><a href="GanttGraph.html">GanttGraph</a>, <a href="GanttBar.html">GanttBar</a>, <a href="GanttVLine.html">GanttVLine</a> and <a href="MileStone.html">MileStone</a> <p> &nbsp;<hr><span style="font-family:arial;font-size:120%;font-weight:bold;">Class Methods</span><hr><p>
20
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_GANTTPLOTOBJECT_SETCAPTIONMARGIN"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
21
function&nbsp;SetCaptionMargin($aMarg)</font>
22
</b></div></a></span>
23
 
24
<span style='font-family:arial;font-size:90%;'><i>Specify margin (in pixels) between object and caption string</i></span><p>
25
 
26
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
27
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
28
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
29
$aMarg</font>
30
 
31
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Margin in pixels</td></tr>
32
</table>
33
 
34
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Specify margin (in pixels) between object and caption string&nbsp;<br>
35
 
36
<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">
37
$ms-&gt;SetCaptionMargin(20);
<br /></font>
38
</span><br>
39
<p>
40
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_GANTTPLOTOBJECT_SETCONSTRAIN"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
41
function&nbsp;SetConstrain($aRow,$aType,$aColor,$aArrowSize,$aArrowType)</font>
42
</b></div></a></span>
43
44
 
45
46
 
47
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
48
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
49
$aRow</font>
50
51
 
52
53
 
54
$aType</font>
55
56
 
57
58
 
59
$aColor</font>
60
61
 
62
'black'</font>
63
</td><td>Color of constrain</td></tr>
64
65
 
66
$aArrowSize</font>
67
68
 
69
ARROW_S2</font>
70
</td><td>Size of ending arrow</td></tr>
71
72
 
73
$aArrowType</font>
74
75
 
76
ARROWT_SOLID</font>
77
</td><td>Type of arrow</td></tr>
78
</table>
79
80
 
81
<ul>
82
<li> CONSTRAIN_STARTSTART
83
<li> CONSTRAIN_STARTEND
84
<li> CONSTRAIN_ENDSTART
85
<li> CONSTRAIN_ENDEND
86
</ul>
87
<p>
88
The possible arrow sizes are
89
<ul>
90
<li> ARROW_S1, smallest
91
<li> ARROW_S2, (default)
92
<li> ARROW_S3
93
<li> ARROW_S4
94
<li> ARROW_S5, largest
95
</ul>
96
97
 
98
Type of arrow can be either of
99
<ul>
100
<li> ARROWT_SOLID
101
<li> ARROWT_OPEN
102
</ul>&nbsp;<br>
103
104
 
105
//&nbsp;Add&nbsp;a&nbsp;constrain&nbsp;from&nbsp;the&nbsp;end&nbsp;of&nbsp;this&nbsp;activity&nbsp;to&nbsp;
<br />//&nbsp;the&nbsp;start&nbsp;of&nbsp;the&nbsp;activity&nbsp;on&nbsp;row&nbsp;2
<br />$bar-&gt;SetConstrain(2,CONSTRAIN_ENDSTART);
<br /></font>
106
</span><br>
107
<p>
108
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_GANTTPLOTOBJECT_SETCSIMALT"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
109
function&nbsp;SetCSIMAlt($aAlt)</font>
110
</b></div></a></span>
111
112
<span style='font-family:arial;font-size:90%;'><i>Specify ALT-tag text for hotspot</i></span><p>
113
114
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
115
 
116
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
117
 
118
119
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Alt text</td></tr>
120
</table>
121
122
 
123
<p>
124
Note: You must have specified a CSIM atrget for this to have any effect.&nbsp;<br>
125
 
126
<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">
127
$bar-&gt;SetCSIMAlt('Main&nbsp;activity');</font>
128
</span><br>
129
<p>
130
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_GANTTPLOTOBJECT_SETCSIMTARGET"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
131
function&nbsp;SetCSIMTarget($aTarget,$aAlt)</font>
132
</b></div></a></span>
133
134
<span style='font-family:arial;font-size:90%;'><i>Specify URL when object is used in a CSIM</i></span><p>
135
136
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
137
 
138
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
139
 
140
141
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Target URL</td></tr>
142
143
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
144
 
145
146
 
147
''</font>
148
</td><td>Alt texts</td></tr>
149
 
150
151
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Used to specify the target URL for for a hotspot&nbsp;<br>
152
 &nbsp; <div style="font-weight:bold;font-family:arial;font-size:85%;">See also</div><a href="GanttPlotObject.html#_GANTTPLOTOBJECT_SETCSIMALT">GanttPlotObject::SetCSIMAlt</a>
153
<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">
154
 
155
</span><br>
156
<p>
157
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_GANTTPLOTOBJECT_SETLABELLEFTMARGIN"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
158
function&nbsp;SetLabelLeftMargin($aOff)</font>
159
</b></div></a></span>
160
161
<span style='font-family:arial;font-size:90%;'><i>Specify offset (in pixels) for the title of this object.</i></span><p>
162
163
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
164
 
165
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
166
 
167
168
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Offset in pixels</td></tr>
169
</table>
170
171
 
172
173
<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">
174
 
175
</span><br>
176