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_POLARAXIS"><div style="background-color:yellow;font-family:courier new;"></a>CLASS <b>PolarAxis</b> EXTENDS <a href="Axis .html#_C_AXIS " style="font-face:arial;font-weight:bold;">Axis </a></div>
9
<i>(Defined in: jpgraph_polar.php : 151)</i><table border=1><tr><td>&nbsp;<a href="PolarAxis.html" style="font-family:arial;font-weight:bold;color:darkblue;">PolarAxis</a>&nbsp;</td><td>&nbsp;<a href="Axis .html" style="font-family:arial;font-weight:bold;color:darkblue;">Axis </a>&nbsp;</td></tr><tr><td valign=top>&nbsp;<a href="PolarAxis.html#_POLARAXIS_HIDETICKS">HideTicks()</a>&nbsp;<br>
10
&nbsp;<a href="PolarAxis.html#_POLARAXIS_SETANGLEFONT">SetAngleFont()</a>&nbsp;<br>
11
&nbsp;<a href="PolarAxis.html#_POLARAXIS_SETANGLESTEP">SetAngleStep()</a>&nbsp;<br>
12
&nbsp;<a href="PolarAxis.html#_POLARAXIS_SETCOLOR">SetColor()</a>&nbsp;<br>
13
&nbsp;<a href="PolarAxis.html#_POLARAXIS_SETGRIDCOLOR">SetGridColor()</a>&nbsp;<br>
14
&nbsp;<a href="PolarAxis.html#_POLARAXIS_SETTICKCOLORS">SetTickColors()</a>&nbsp;<br>
15
&nbsp;<a href="PolarAxis.html#_POLARAXIS_SHOWANGLEDEGREEMARK">ShowAngleDegreeMark()</a>&nbsp;<br>
16
&nbsp;<a href="PolarAxis.html#_POLARAXIS_SHOWANGLELABEL">ShowAngleLabel()</a>&nbsp;<br>
17
&nbsp;<a href="PolarAxis.html#_POLARAXIS_SHOWGRID">ShowGrid()</a>&nbsp;<br>
18
</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>Represents the different axis for a polar plot. This class holds the property both for the radius and the angle axis classes. It is accessed throught the 'axis' property in the PolarGraph class. <p> &nbsp;
19
<div style="font-weight:bold;font-family:arial;font-size:85%;">See also related classes:</div><a href="PolarGraph.html">PolarGraph</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="_POLARAXIS_HIDETICKS"><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;HideTicks($aFlg,$aAngleFlg)</font>
22
</b></div></a></span>
23
 
24
<span style='font-family:arial;font-size:90%;'><i>HIde ticks marks</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
$aFlg</font>
30
 
31
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
32
true</font>
33
</td><td>Hide radius tick marks</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
$aAngleFlg</font>
37
 
38
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
39
true</font>
40
</td><td>Hide angle tick marks</td></tr>
41
</table>
42
 
43
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>HIde ticks marks&nbsp;<br>
44
 
45
<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">
46
//&nbsp;Hide&nbsp;just&nbsp;the&nbsp;angle&nbsp;tick&nbsp;marks
<br />$polargraph-&gt;axis-&gt;HideTicks(false,true);</font>
47
</span><br>
48
<p>
49
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_POLARAXIS_SETANGLEFONT"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
50
function&nbsp;SetAngleFont($aFontFam,$aFontStyle,$aFontSize)</font>
51
</b></div></a></span>
52
53
 
54
55
 
56
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
57
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
58
$aFontFam</font>
59
60
 
61
62
 
63
$aFontStyle</font>
64
65
 
66
FS_NORMAL</font>
67
</td><td>Font style</td></tr>
68
69
 
70
$aFontSize</font>
71
72
 
73
10</font>
74
</td><td>Font size</td></tr>
75
</table>
76
77
 
78
79
 
80
$polargraph-&gt;axis-&gt;SetAngleFont(FF_ARIAL,FS_NORMAL,8);</font>
81
</span><br>
82
<p>
83
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_POLARAXIS_SETANGLESTEP"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
84
function&nbsp;SetAngleStep($aStep)</font>
85
</b></div></a></span>
86
87
 
88
89
 
90
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
91
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
92
$aStep</font>
93
94
 
95
</table>
96
97
 
98
99
 
100
//&nbsp;Set&nbsp;20&nbsp;degrees&nbsp;between&nbsp;each&nbsp;marker
<br />$polargraph-&gt;axis-&gt;SetAngleStep(20);</font>
101
</span><br>
102
<p>
103
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_POLARAXIS_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">
104
function&nbsp;SetColor($aColor,$aRadColor,$aAngleColor)</font>
105
</b></div></a></span>
106
107
<span style='font-family:arial;font-size:90%;'><i>Specify axis and label colors</i></span><p>
108
 
109
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
110
 
111
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
112
$aColor</font>
113
114
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Color for radius axis</td></tr>
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;'><font color="#000000">
120
 
121
</td><td>Color for radius labels</td></tr>
122
123
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
124
 
125
126
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
127
 
128
</td><td>Color for angle labels</td></tr>
129
</table>
130
131
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Specify axis and label colors.&nbsp;<br>
132
 
133
<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">
134
$polargraph-&gt;axis-&gt;SetColor('black','navy','darkred');</font>
135
</span><br>
136
<p>
137
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_POLARAXIS_SETGRIDCOLOR"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
138
function&nbsp;SetGridColor($aMajorColor,$aMinorColor,$aAngleColor)</font>
139
</b></div></a></span>
140
141
<span style='font-family:arial;font-size:90%;'><i>Set colors for the various grids</i></span><p>
142
 
143
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
144
 
145
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
146
$aMajorColor</font>
147
148
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Major radius grid color</td></tr>
149
 
150
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
151
 
152
153
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
154
 
155
</td><td>Minor radius grid color</td></tr>
156
157
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
158
 
159
160
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
161
 
162
</td><td>Angle grid color</td></tr>
163
</table>
164
165
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Set colors for the various grids&nbsp;<br>
166
 
167
<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">
168
 
169
</span><br>
170
<p>
171
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_POLARAXIS_SETTICKCOLORS"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
172
function&nbsp;SetTickColors($aRadColor,$aAngleColor)</font>
173
</b></div></a></span>
174
175
<span style='font-family:arial;font-size:90%;'><i>Specify color for axis tick marks</i></span><p>
176
177
 
178
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
179
 
180
$aRadColor</font>
181
182
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Radius axis colors</td></tr>
183
184
 
185
$aAngleColor</font>
186
 
187
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
188
''</font>
189
 
190
</table>
191
192
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Specify color for axis tick marks&nbsp;<br>
193
194
 
195
$polargraph-&gt;axis-&gt;SetTickColor('red');</font>
196
 
197
<p>
198
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_POLARAXIS_SHOWANGLEDEGREEMARK"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
199
function&nbsp;ShowAngleDegreeMark($aFlg)</font>
200
</b></div></a></span>
201
202
<span style='font-family:arial;font-size:90%;'><i>Add a degree mark after each angel label</i></span><p>
203
204
 
205
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
206
 
207
$aFlg</font>
208
209
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
210
true</font>
211
 
212
</table>
213
214
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Add a degree mark after each angel label ( a small sperscripted 'o' ). This is enabled by default.&nbsp;<br>
215
216
 
217
$polargraph-&gt;axis-&gt;ShowAngleDegreeMark(true);</font>
218
 
219
<p>
220
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_POLARAXIS_SHOWANGLELABEL"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
221
function&nbsp;ShowAngleLabel($aFlg)</font>
222
</b></div></a></span>
223
224
<span style='font-family:arial;font-size:90%;'><i>Show angle labels</i></span><p>
225
226
 
227
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
228
 
229
$aFlg</font>
230
231
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
232
true</font>
233
 
234
</table>
235
236
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Show angle labels. This is on by default.&nbsp;<br>
237
238
 
239
//&nbsp;Enable&nbsp;angle&nbsp;labels
<br />$polargraph-&gt;axis-&gt;ShowAngleLabel();</font>
240
 
241
<p>
242
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_POLARAXIS_SHOWGRID"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
243
function&nbsp;ShowGrid($aMajor,$aMinor,$aAngle)</font>
244
</b></div></a></span>
245
246
<span style='font-family:arial;font-size:90%;'><i>Determine what grid lines should be visible</i></span><p>
247
248
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
249
 
250
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
251
 
252
253
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
254
true</font>
255
</td><td>Show major radius grid lines</td></tr>
256
 
257
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
258
$aMinor</font>
259
260
 
261
false</font>
262
</td><td>Show minor radius grid lines</td></tr>
263
 
264
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
265
$aAngle</font>
266
267
 
268
true</font>
269
</td><td>Show angle grid lines</td></tr>
270
 
271
272
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Determine what grid lines should be visible.&nbsp;<br>
273
274
<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">
275
 
276
</span><br>
277