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_PLOT"><div style="background-color:yellow;font-family:courier new;"></a>CLASS <b>Plot</b></div>
9
<i>(Defined in: jpgraph.php : 5626)</i><table border=1><tr><td>&nbsp;<a href="Plot.html" style="font-family:arial;font-weight:bold;color:darkblue;">Plot</a>&nbsp;</td></tr><tr><td valign=top>&nbsp;<a href="Plot.html#_PLOT_HIDELEGEND">HideLegend()</a>&nbsp;<br>
10
&nbsp;<a href="Plot.html#_PLOT_SETCENTER">SetCenter()</a>&nbsp;<br>
11
&nbsp;<a href="Plot.html#_PLOT_SETCOLOR">SetColor()</a>&nbsp;<br>
12
&nbsp;<a href="Plot.html#_PLOT_SETCSIMTARGETS">SetCSIMTargets()</a>&nbsp;<br>
13
&nbsp;<a href="Plot.html#_PLOT_SETLEGEND">SetLegend()</a>&nbsp;<br>
14
&nbsp;<a href="Plot.html#_PLOT_SETLINEWEIGHT">SetLineWeight()</a>&nbsp;<br>
15
</td></tr></table>&nbsp;<p><div style="font-weight:bold;font-family:arial;font-size:100%;">Class usage and Overview</div>Abstract base class for all plots. This abstract base class defines the signature that all plots must adhere to. It also provides the default trivial implementation for these framework methods.
16
 
17
<b>Public properties:</b>
18
<table width=80%>
19
<tr><th width=20%> Name </th><th width=20%> Type </th><th> Description </th></tr>
20
 
21
<tr><td> value </td><td> DisplayValue </td><td> Control the data value displayed at each data point</td></tr>
22
 
23
</table>
24
 <p> &nbsp;
25
<div style="font-weight:bold;font-family:arial;font-size:85%;">See also related classes:</div><a href="DisplayValue.html">DisplayValue</a>, <a href="LinePlot.html">LinePlot</a>, <a href="ErrorPlot.html">ErrorPlot</a> and <a href="ScatterPlot.html">ScatterPlot</a> <p> &nbsp;<hr><span style="font-family:arial;font-size:120%;font-weight:bold;">Class Methods</span><hr><p>
26
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_PLOT_HIDELEGEND"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
27
function&nbsp;HideLegend($f)</font>
28
</b></div></a></span>
29
 
30
<span style='font-family:arial;font-size:90%;'><i>Hide legend for this plot</i></span><p>
31
 
32
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
33
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
34
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
35
$f</font>
36
 
37
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
38
true</font>
39
</td><td>TRUE=Hide legend</td></tr>
40
</table>
41
 
42
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Hide legend for this plot even if it was specified (with SetLegend() ) &nbsp;<br>
43
 
44
<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">
45
$bar&nbsp;=&nbsp;new&nbsp;GanttBar(...);
<br />$bar-&gt;HideLegend();
<br /></font>
46
</span><br>
47
<p>
48
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_PLOT_SETCENTER"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
49
function&nbsp;SetCenter($aCenter)</font>
50
</b></div></a></span>
51
52
<span style='font-family:arial;font-size:90%;'><i>Center the data pointr between tick labels</i></span><p>
53
 
54
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
55
 
56
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
57
$aCenter</font>
58
59
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
60
 
61
</td><td>True=Center each data point</td></tr>
62
</table>
63
64
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Used for text scales. Centers the data values between the ticvk marks instead if falling exactly on them.
65
 
66
67
<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">
68
 
69
</span><br>
70
<p>
71
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_PLOT_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">
72
function&nbsp;SetColor($aColor)</font>
73
</b></div></a></span>
74
75
<span style='font-family:arial;font-size:90%;'><i>Specify color for plot.</i></span><p>
76
 
77
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
78
 
79
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
80
$aColor</font>
81
82
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Color</td></tr>
83
 
84
85
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Specify color for plot. Each plot type is free to interpret it to its own choosing.&nbsp;<br>
86
 
87
<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">
88
 
89
</span><br>
90
<p>
91
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_PLOT_SETCSIMTARGETS"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
92
function&nbsp;SetCSIMTargets($aTargets,$aAlts)</font>
93
</b></div></a></span>
94
95
<span style='font-family:arial;font-size:90%;'><i>Set URL targets for CSIM</i></span><p>
96
97
 
98
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
99
 
100
$aTargets</font>
101
102
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'>&nbsp;</td><td>Array of URL targets</td></tr>
103
104
 
105
$aAlts</font>
106
 
107
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
108
null</font>
109
 
110
</table>
111
112
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Set the URL links for the CSIM if the plot type support this.&nbsp;<br>
113
114
 
115
$url1&nbsp;=&nbsp;"http://someotherurl.html"
<br />$url2&nbsp;=&nbsp;..
<br />...
<br />
<br />$targetarray&nbsp;=&nbsp;array($url1,&nbsp;$url2,&nbsp;$url3,&nbsp;$url4);
<br />$barplot-&gt;SetCSIMTargets($targetarray);</font>
116
 
117
<p>
118
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_PLOT_SETLEGEND"><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;SetLegend($aLegend,$aCSIM,$aCSIMAlt)</font>
120
</b></div></a></span>
121
122
<span style='font-family:arial;font-size:90%;'><i>Set legend string for this plot</i></span><p>
123
124
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
125
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
126
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
127
$aLegend</font>
128
129
 
130
131
 
132
$aCSIM</font>
133
134
</td><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
135
""</font>
136
 
137
138
 
139
$aCSIMAlt</font>
140
141
 
142
""</font>
143
</td><td>Alt text for image map</td></tr>
144
</table>
145
 
146
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Set legend string for this plot. If the CSIM string is epscified then the legend will become an image map. To use image maps you need to use the StrokeCSIM() instead of the normal Stroke()&nbsp;<br>
147
 &nbsp; <div style="font-weight:bold;font-family:arial;font-size:85%;">See also</div><a href="Graph.html#_GRAPH_STROKECSIM">Graph::StrokeCSIM</a>
148
 
149
$lineplot-&gt;SetLegend('Year&nbsp;2002');</font>
150
</span><br>
151
<p>
152
<p>&nbsp; <p> &nbsp; <span style='font-size:110%;'><a name="_PLOT_SETLINEWEIGHT"><div style="border-top:solid black 2pt;background-color:lightblue;font-family:courier new;font-size:90%;font-weight:bold;"><b><font color="#000000">
153
 
154
</b></div></a></span>
155
156
<span style='font-family:arial;font-size:90%;'><i>Specify line weight for plot</i></span><p>
157
158
<table cellspacing=0 style='border:black solid 1pt;' width=100%>
159
<tr><th width=25%>Argument</th><th width=15%>Default</th><th width=60%>Description</th></tr>
160
<tr><td style='border-right:black solid 1pt;font-family:courier;font-size:90%;font-weight:bold;'><font color="#000000">
161
$aWeight</font>
162
163
 
164
1</font>
165
 
166
</table>
167
168
<div style="font-weight:bold;font-family:arial;font-size:85%;">Description</div>Specify line weight for plot&nbsp;<br>
169
170
 
171
$lineplot-&gt;SetWeight(2);</font>
172
</span><br>
173
<p> <hr> <p>