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_GRID"><div style="background-color:yellow;font-family:courier new;"></a>CLASS <b>Grid</b></div>
9
<i>(Defined in: jpgraph.php : 3331)</i><table border=1><tr><td>&nbsp;<a href="Grid.html" style="font-family:arial;font-weight:bold;color:darkblue;">Grid</a>&nbsp;</td></tr><tr><td valign=top>&nbsp;<a href="Grid.html#_GRID_SETCOLOR">SetColor()</a>&nbsp;<br>
10
&nbsp;<a href="Grid.html#_GRID_SETFILL">SetFill()</a>&nbsp;<br>
11
&nbsp;<a href="Grid.html#_GRID_SETLINESTYLE">SetLineStyle()</a>&nbsp;<br>
12
&nbsp;<a href="Grid.html#_GRID_SETWEIGHT">SetWeight()</a>&nbsp;<br>
13
&nbsp;<a href="Grid.html#_GRID_SHOW">Show()</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>This class is used to hold all properties of the gridline for a specific axis. The grid setting is accessed through the xgrid and ygrid properties of graph.
15
 
16
By default JpGraph has grid lines for Y-lines turned on and gridlines for X-axis turned off.
17
 
18
 <p> &nbsp;
19
<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="_GRID_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">
21
function&nbsp;SetColor($aMajColor,$aMinColor)</font>
22
</b></div></a></span>
23
 
24
<span style='font-family:arial;font-size:90%;'><i>Set color of grid lines</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
$aMajColor</font>
30
 
31
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Major color</td></tr>
32
 
33
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
34
$aMinColor</font>
35
 
36
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
37
false</font>
38
</td><td>Minor color</td></tr>
39
</table>
40
 
41
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Set color of grid lines&nbsp;<br>
42
 
43
<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">
44
$graph-&gt;xgrid-&gt;SetColor('lightblue');</font>
45
</span><br>
46
<p>
47
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_GRID_SETFILL"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
48
function&nbsp;SetFill($aFlg,$aColor1,$aColor2)</font>
49
</b></div></a></span>
50
 
51
<span style='font-family:arial;font-size:90%;'><i>Specify fill style for grid</i></span><p>
52
 
53
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
54
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
55
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
56
$aFlg</font>
57
 
58
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
59
true</font>
60
</td><td>Flag, True=enable fill</td></tr>
61
 
62
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
63
$aColor1</font>
64
 
65
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
66
'lightgray'</font>
67
</td><td>Fill color 1</td></tr>
68
 
69
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
70
$aColor2</font>
71
 
72
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
73
'lightblue'</font>
74
</td><td>Fill color 2</td></tr>
75
</table>
76
 
77
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>The area between the gridline can be filled with two alternating colors. This method specifies this style. See 'filledgridex1.php' for an example of this. By using this feature with alpha-blending you can achieve very nice layouts.
78
&nbsp;<br>
79
 
80
<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">
81
//&nbsp;Use&nbsp;50%&nbsp;blending
<br />$graph-&gt;ygrid-&gt;SetFill(true,'#EFEFEF@0.5','#BBCCFF@0.5');
<br />$graph-&gt;ygrid-&gt;Show();
<br />$graph-&gt;xgrid-&gt;Show();
<br /></font>
82
</span><br>
83
<p>
84
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_GRID_SETLINESTYLE"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
85
function&nbsp;SetLineStyle($aType)</font>
86
</b></div></a></span>
87
88
<span style='font-family:arial;font-size:90%;'><i>Specify if grid line should be dashed, dotted or solid</i></span><p>
89
90
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
91
 
92
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
93
 
94
95
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>String to specify line type</td></tr>
96
</table>
97
98
 
99
&nbsp;<br>
100
 &nbsp; <div style="font-weight:bold;font-family:arial;font-size:85%;">See also</div><a href="Image.html#_IMAGE_SETLINESTYLE">Image::SetLineStyle</a>
101
 
102
$graph-&gt;ygrid-&gt;SetLineStyle('dashed');</font>
103
</span><br>
104
<p>
105
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_GRID_SETWEIGHT"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
106
function&nbsp;SetWeight($aWeight)</font>
107
</b></div></a></span>
108
109
<span style='font-family:arial;font-size:90%;'><i>Set line weight for grid line</i></span><p>
110
111
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
112
 
113
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
114
 
115
116
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Line width in pixels</td></tr>
117
</table>
118
119
 
120
121
<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">
122
 
123
</span><br>
124
 
125
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_GRID_SHOW"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
126
function&nbsp;Show($aShowMajor,$aShowMinor)</font>
127
</b></div></a></span>
128
129
<span style='font-family:arial;font-size:90%;'><i>Specify if both major and minor grid should be displayed</i></span><p>
130
131
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
132
 
133
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
134
 
135
136
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
137
true</font>
138
</td><td>True=Show major grid lines</td></tr>
139
 
140
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
141
$aShowMinor</font>
142
143
 
144
false</font>
145
</td><td>True=Show minor grid lines</td></tr>
146
 
147
148
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Specify if both major and minor grid should be displayed&nbsp;<br>
149
150
<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">
151
 
152
</span><br>
153