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_PLOTBAND"><div style="background-color:yellow;font-family:courier new;"></a>CLASS <b>PlotBand</b></div>
9
<i>(Defined in: jpgraph_plotband.php : 541)</i><table border=1><tr><td>&nbsp;<a href="PlotBand.html" style="font-family:arial;font-weight:bold;color:darkblue;">PlotBand</a>&nbsp;</td></tr><tr><td valign=top>&nbsp;<a href="PlotBand.html#_PLOTBAND_PLOTBAND">PlotBand()</a>&nbsp;<br>
10
&nbsp;<a href="PlotBand.html#_PLOTBAND_SETDENSITY">SetDensity()</a>&nbsp;<br>
11
&nbsp;<a href="PlotBand.html#_PLOTBAND_SETORDER">SetOrder()</a>&nbsp;<br>
12
&nbsp;<a href="PlotBand.html#_PLOTBAND_SHOWFRAME">ShowFrame()</a>&nbsp;<br>
13
</td></tr></table>&nbsp;<p><div style="font-weight:bold;font-family:arial;font-size:100%;">Class usage and Overview</div>A "Plotband" repesent a rectangualr area in the graph that can be given a specific pattern ranging from 3D grid to simple horizntal grid lines.
14
<p>
15
A Plot band is then added to the graph via the Graph::AddBand() method.
16
 <p> &nbsp;
17
<div style="font-weight:bold;font-family:arial;font-size:85%;">See also related classes:</div><a href="Graph.html">Graph</a> <p> &nbsp;<hr><span style="font-family:arial;font-size:120%;font-weight:bold;">Class Methods</span><hr><p>
18
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_PLOTBAND_PLOTBAND"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
19
function&nbsp;PlotBand($aDir,$aPattern,$aMin,$aMax,$aColor,$aWeight,$aDepth)</font>
20
</b></div></a></span>
21
 
22
<span style='font-family:arial;font-size:90%;'><i>Create a new Plot band of the specified type</i></span><p>
23
 
24
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
25
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
26
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
27
$aDir</font>
28
 
29
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Direction of plot band</td></tr>
30
 
31
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
32
$aPattern</font>
33
 
34
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Type of pattern</td></tr>
35
 
36
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
37
$aMin</font>
38
 
39
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Min value for plot area</td></tr>
40
 
41
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
42
$aMax</font>
43
 
44
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Max value for plot area</td></tr>
45
 
46
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
47
$aColor</font>
48
 
49
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
50
"black"</font>
51
</td><td>Color of pattern</td></tr>
52
 
53
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
54
$aWeight</font>
55
 
56
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
57
1</font>
58
</td><td>Line weight</td></tr>
59
 
60
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
61
$aDepth</font>
62
 
63
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
64
DEPTH_BACK</font>
65
</td><td>Depth. Over or under the plot.</td></tr>
66
</table>
67
 
68
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Create a new Plot band that later on can be added to the graph. The following pattern types are supported
69
 
70
<ul>
71
<li>BAND_RDIAG, Right diagonal lines
72
<li>BAND_LDIAG, Left diagonal lines
73
<li>BAND_SOLID, Solid one color
74
<li>BAND_LVERT, Vertical lines
75
<li>BAND_LHOR, Horizontal lines
76
<li>BAND_VLINE, Vertical lines
77
<li>BAND_HLINE, Horizontal lines
78
<li>BAND_3DPLANE, "3D" Plane
79
<lI>BAND_HVCROSS, Vertical/Hor crosses
80
<li>BAND_DIAGCROSS, Diagonal crosses
81
</ul>
82
 
83
A plotband extends completely along one of the axis in the graph. This axis is determined by the first argument, the direction.
84
 
85
Valid directions are
86
<ol>
87
<li> HORIZONTAL
88
<li> VERTICAL
89
</ol>
90
&nbsp;<br>
91
 
92
<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">
93
$uband=new&nbsp;PlotBand(HORIZONTAL,BAND_RDIAG,0,"max","green");
<br />$uband-&gt;ShowFrame(false);
<br />$uband-&gt;SetDensity(50);&nbsp;//&nbsp;50%&nbsp;line&nbsp;density
<br />$lband=new&nbsp;PlotBand(HORIZONTAL,BAND_LDIAG,"min",0,"red");
<br />$lband-&gt;ShowFrame(false);
<br />$lband-&gt;SetDensity(20);&nbsp;//&nbsp;20%&nbsp;line&nbsp;density
<br />
<br />$graph-&gt;AddBand($uband);
<br />$graph-&gt;AddBand($lband);
<br /></font>
94
</span><br>
95
<p>
96
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_PLOTBAND_SETDENSITY"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
97
function&nbsp;SetDensity($aDens)</font>
98
</b></div></a></span>
99
100
<span style='font-family:arial;font-size:90%;'><i>Specify density for pattern</i></span><p>
101
102
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
103
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
104
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
105
$aDens</font>
106
107
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Density [1,100]</td></tr>
108
 
109
110
 
111
&nbsp;<br>
112
113
<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">
114
$uband=new&nbsp;PlotBand(HORIZONTAL,BAND_RDIAG,0,"max","green");
<br />$uband-&gt;ShowFrame(false);
<br />$uband-&gt;SetDensity(50);&nbsp;//&nbsp;50%&nbsp;line&nbsp;density
<br />$lband=new&nbsp;PlotBand(HORIZONTAL,BAND_LDIAG,"min",0,"red");
<br />$lband-&gt;ShowFrame(false);
<br />$lband-&gt;SetDensity(20);&nbsp;//&nbsp;20%&nbsp;line&nbsp;density
<br />
<br />$graph-&gt;AddBand($uband);
<br />$graph-&gt;AddBand($lband);
<br /></font>
115
 
116
<p>
117
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_PLOTBAND_SETORDER"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
118
 
119
</b></div></a></span>
120
121
 
122
123
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
124
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
125
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
126
$aDepth</font>
127
128
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Pattern Z-order parameter</td></tr>
129
</table>
130
131
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Specify if the pattern should be in front of plot or behind the plot. Valid parameters are
132
133
<ul>
134
<li>DEPTH_BACK, Behind the plot
135
<li>DEPTH_FRONT, In front of the plot
136
</ul>
137
&nbsp;<br>
138
 
139
<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">
140
 
141
</span><br>
142
<p>
143
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_PLOTBAND_SHOWFRAME"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
144
function&nbsp;ShowFrame($aFlag)</font>
145
 
146
147
<span style='font-family:arial;font-size:90%;'><i>Display frame around pattern</i></span><p>
148
 
149
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
150
 
151
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
152
$aFlag</font>
153
154
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
155
true</font>
156
 
157
</table>
158
159
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Display frame around pattern&nbsp;<br>
160
161
<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">
162
$band=new&nbsp;PlotBand(HORIZONTAL,BAND_RDIAG,0,"max","green");
<br />$band-&gt;ShowFrame(false);
<br />$band-&gt;SetOrder(DEPTH_BACK);
<br />$graph-&gt;AddBand($band);
<br /></font>
163
</span><br>
164
<p> <hr> <p>