60 |
jpm |
1 |
<html>
|
|
|
2 |
<head>
|
|
|
3 |
<title>Documentation</title>
|
|
|
4 |
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
|
|
|
5 |
<link rel='stylesheet' href='style.css' />
|
|
|
6 |
</head>
|
|
|
7 |
|
|
|
8 |
<body>
|
|
|
9 |
<div align='center'>
|
|
|
10 |
<table cellpadding='0' cellspacing='0' id='contenu' class='round' style='width: 80%; margin-bottom: 20px'>
|
|
|
11 |
<tr>
|
|
|
12 |
<td class='borderhg'> </td>
|
|
|
13 |
<td class='borderh'> </td>
|
|
|
14 |
<td class='cornerhd'></td>
|
|
|
15 |
</tr>
|
|
|
16 |
<tr>
|
|
|
17 |
<td class='borderg'> </td>
|
|
|
18 |
<td><a id="top"></a><h2> Class Legend</h2><div class="description">
|
|
|
19 |
<p>
|
|
|
20 |
La classe <a href="Legend.html">Legend</a> permet de manipuler des légendes.
|
|
|
21 |
Un objet de la classe <a href="Legend.html">Legend</a> est disponible sur tous les <a href="Component.html">composants</a>.
|
|
|
22 |
N'importe quel objet peut être légendé à condition qu'il implémente l'interface <a href="Legendable.html">Legendable</a>.
|
|
|
23 |
</p>
|
|
|
24 |
</div><ul class="links"><li><a href="index.html">Retourner voir la liste de toutes les classes</a></li></ul><h2>Méthodes et propriétés</h2><ul class="constants">
|
|
|
25 |
<li>
|
|
|
26 |
<span class="access">const</span> <span class="type">int</span> <a href="Legend.html#constant.LINE">LINE</a> := <span class="default">1</span>
|
|
|
27 |
</li>
|
|
|
28 |
<li>
|
|
|
29 |
<span class="access">const</span> <span class="type">int</span> <a href="Legend.html#constant.BACKGROUND">BACKGROUND</a> := <span class="default">2</span>
|
|
|
30 |
</li>
|
|
|
31 |
<li>
|
|
|
32 |
<span class="access">const</span> <span class="type">int</span> <a href="Legend.html#constant.MARK">MARK</a> := <span class="default">3</span>
|
|
|
33 |
</li>
|
|
|
34 |
<li>
|
|
|
35 |
<span class="access">const</span> <span class="type">int</span> <a href="Legend.html#constant.MARKONLY">MARKONLY</a> := <span class="default">4</span>
|
|
|
36 |
</li>
|
|
|
37 |
<li>
|
|
|
38 |
<span class="access">const</span> <span class="type">int</span> <a href="Legend.html#constant.MODEL_RIGHT">MODEL_RIGHT</a> := <span class="default">1</span>
|
|
|
39 |
</li>
|
|
|
40 |
<li>
|
|
|
41 |
<span class="access">const</span> <span class="type">int</span> <a href="Legend.html#constant.MODEL_BOTTOM">MODEL_BOTTOM</a> := <span class="default">2</span>
|
|
|
42 |
</li>
|
|
|
43 |
<li>
|
|
|
44 |
<span class="access">const</span> <span class="type">int</span> <a href="Legend.html#constant.LEFT">LEFT</a> := <span class="default">0</span>
|
|
|
45 |
</li>
|
|
|
46 |
<li>
|
|
|
47 |
<span class="access">const</span> <span class="type">int</span> <a href="Legend.html#constant.RIGHT">RIGHT</a> := <span class="default">1</span>
|
|
|
48 |
</li>
|
|
|
49 |
<li>
|
|
|
50 |
<span class="access">const</span> <span class="type">int</span> <a href="Legend.html#constant.CENTER">CENTER</a> := <span class="default">2</span>
|
|
|
51 |
</li>
|
|
|
52 |
<li>
|
|
|
53 |
<span class="access">const</span> <span class="type">int</span> <a href="Legend.html#constant.TOP">TOP</a> := <span class="default">3</span>
|
|
|
54 |
</li>
|
|
|
55 |
<li>
|
|
|
56 |
<span class="access">const</span> <span class="type">int</span> <a href="Legend.html#constant.BOTTOM">BOTTOM</a> := <span class="default">4</span>
|
|
|
57 |
</li>
|
|
|
58 |
<li>
|
|
|
59 |
<span class="access">const</span> <span class="type">int</span> <a href="Legend.html#constant.MIDDLE">MIDDLE</a> := <span class="default">5</span>
|
|
|
60 |
</li>
|
|
|
61 |
</ul><ul class="properties">
|
|
|
62 |
<li>
|
|
|
63 |
<span class="access">public</span> <a href="Shadow.html"><span class="type">Shadow</span></a> <a href="Legend.html#property.shadow"><span class="argument">$shadow</span></a>
|
|
|
64 |
</li>
|
|
|
65 |
<li>
|
|
|
66 |
<span class="access">protected</span> <span class="type">bool</span> <a href="Legend.html#property.hide"><span class="argument">$hide</span></a>
|
|
|
67 |
</li>
|
|
|
68 |
<li>
|
|
|
69 |
<span class="access">protected</span> <a href="ArrayOject.html"><span class="type">ArrayOject</span></a> <a href="Legend.html#property.legends"><span class="argument">$legends</span></a>
|
|
|
70 |
</li>
|
|
|
71 |
</ul><ul class="methods">
|
|
|
72 |
<li>
|
|
|
73 |
<span class="access">public</span> <a href="Legend.html#method.__construct">__construct</a>(<span class="type">int</span> <span class="argument">$model</span> := <span class="default">Legend::MODEL_RIGHT</span>)
|
|
|
74 |
</li>
|
|
|
75 |
<li>
|
|
|
76 |
<span class="access">public</span> <a href="Legend.html#method.hide">hide</a>(<span class="type">bool</span> <span class="argument">$hide</span> := <span class="default">TRUE</span>)
|
|
|
77 |
</li>
|
|
|
78 |
<li>
|
|
|
79 |
<span class="access">public</span> <a href="Legend.html#method.show">show</a>(<span class="type">bool</span> <span class="argument">$show</span> := <span class="default">TRUE</span>)
|
|
|
80 |
</li>
|
|
|
81 |
<li>
|
|
|
82 |
<span class="access">public</span> <a href="Legend.html#method.setModel">setModel</a>(<span class="type">int</span> <span class="argument">$model</span>)
|
|
|
83 |
</li>
|
|
|
84 |
<li>
|
|
|
85 |
<span class="access">public</span> <a href="Legend.html#method.add">add</a>(<a href="Legendable.html"><span class="type">Legendable</span></a> <span class="argument">$legendable</span>, <span class="type">string</span> <span class="argument">$title</span>, <span class="type">int</span> <span class="argument">$type</span> := <span class="default">Legend::LINE</span>)
|
|
|
86 |
</li>
|
|
|
87 |
<li>
|
|
|
88 |
<span class="access">public</span> <a href="Legend.html#method.setPadding">setPadding</a>(<span class="type">int</span> <span class="argument">$left</span>, <span class="type">int</span> <span class="argument">$right</span>, <span class="type">int</span> <span class="argument">$top</span>, <span class="type">int</span> <span class="argument">$bottom</span>)
|
|
|
89 |
</li>
|
|
|
90 |
<li>
|
|
|
91 |
<span class="access">public</span> <a href="Legend.html#method.setSpace">setSpace</a>(<span class="type">int</span> <span class="argument">$space</span>)
|
|
|
92 |
</li>
|
|
|
93 |
<li>
|
|
|
94 |
<span class="access">public</span> <a href="Legend.html#method.setAlign">setAlign</a>(<span class="type">int</span> <span class="argument">$h</span> := <span class="default">NULL</span>, <span class="type">int</span> <span class="argument">$v</span> := <span class="default">NULL</span>)
|
|
|
95 |
</li>
|
|
|
96 |
<li>
|
|
|
97 |
<span class="access">public</span> <a href="Legend.html#method.setColumns">setColumns</a>(<span class="type">int</span> <span class="argument">$columns</span>)
|
|
|
98 |
</li>
|
|
|
99 |
<li>
|
|
|
100 |
<span class="access">public</span> <a href="Legend.html#method.setRows">setRows</a>(<span class="type">int</span> <span class="argument">$rows</span>)
|
|
|
101 |
</li>
|
|
|
102 |
<li>
|
|
|
103 |
<span class="access">public</span> <a href="Legend.html#method.setPosition">setPosition</a>(<span class="type">float</span> <span class="argument">$x</span> := <span class="default">NULL</span>, <span class="type">float</span> <span class="argument">$y</span> := <span class="default">NULL</span>)
|
|
|
104 |
</li>
|
|
|
105 |
<li>
|
|
|
106 |
<span class="access">public</span> <a href="Point.html"><span class="type">Point</span></a> <a href="Legend.html#method.getPosition">getPosition</a>()
|
|
|
107 |
</li>
|
|
|
108 |
<li>
|
|
|
109 |
<span class="access">public</span> <a href="Legend.html#method.setTextFont">setTextFont</a>(<a href="Font.html"><span class="type">Font</span></a> <span class="argument">$font</span>)
|
|
|
110 |
</li>
|
|
|
111 |
<li>
|
|
|
112 |
<span class="access">public</span> <a href="Legend.html#method.setTextMargin">setTextMargin</a>(<span class="type">int</span> <span class="argument">$left</span>, <span class="type">int</span> <span class="argument">$right</span>)
|
|
|
113 |
</li>
|
|
|
114 |
<li>
|
|
|
115 |
<span class="access">public</span> <a href="Legend.html#method.setTextColor">setTextColor</a>(<a href="Color.html"><span class="type">Color</span></a> <span class="argument">$color</span>)
|
|
|
116 |
</li>
|
|
|
117 |
<li>
|
|
|
118 |
<span class="access">public</span> <a href="Legend.html#method.setBackground">setBackground</a>(<span class="type">mixed</span> <span class="argument">$background</span>)
|
|
|
119 |
</li>
|
|
|
120 |
<li>
|
|
|
121 |
<span class="access">public</span> <a href="Legend.html#method.setBackgroundColor">setBackgroundColor</a>(<a href="Color.html"><span class="type">Color</span></a> <span class="argument">$color</span>)
|
|
|
122 |
</li>
|
|
|
123 |
<li>
|
|
|
124 |
<span class="access">public</span> <a href="Legend.html#method.setBackgroundGradient">setBackgroundGradient</a>(<a href="Gradient.html"><span class="type">Gradient</span></a> <span class="argument">$gradient</span>)
|
|
|
125 |
</li>
|
|
|
126 |
<li>
|
|
|
127 |
<span class="access">public</span> <a href="Legend.html#method.setBorderSize">setBorderSize</a>(<span class="type">int</span> <span class="argument">$size</span>)
|
|
|
128 |
</li>
|
|
|
129 |
<li>
|
|
|
130 |
<span class="access">public</span> <a href="Legend.html#method.setBorderColor">setBorderColor</a>(<a href="Color.html"><span class="type">Color</span></a> <span class="argument">$color</span>)
|
|
|
131 |
</li>
|
|
|
132 |
<li>
|
|
|
133 |
<span class="access">public</span> <span class="type">int</span> <a href="Legend.html#method.count">count</a>()
|
|
|
134 |
</li>
|
|
|
135 |
<li>
|
|
|
136 |
<span class="access">public</span> <a href="Legend.html#method.draw">draw</a>(<a href="Driver.html"><span class="type">Driver</span></a> <span class="argument">$driver</span>)
|
|
|
137 |
</li>
|
|
|
138 |
</ul><h2>Documentation</h2><ul class="doc">
|
|
|
139 |
<li class="constant">
|
|
|
140 |
<a id="constant.LINE"></a><span class="access">const</span> <span class="type">int</span> <a href="Legend.html#constant.LINE">LINE</a> := <span class="default">1</span><div class="description">
|
|
|
141 |
Utilise une couleur de ligne pour identifier un objet dans la légende.
|
|
|
142 |
</div>
|
|
|
143 |
<div class="description-bottom"><a href="Legend.html#top">Remonter</a></div>
|
|
|
144 |
</li>
|
|
|
145 |
<li class="constant">
|
|
|
146 |
<a id="constant.BACKGROUND"></a><span class="access">const</span> <span class="type">int</span> <a href="Legend.html#constant.BACKGROUND">BACKGROUND</a> := <span class="default">2</span><div class="description">
|
|
|
147 |
Utilise une couleur de fond pour identifier un objet dans la légende.
|
|
|
148 |
</div>
|
|
|
149 |
<div class="description-bottom"><a href="Legend.html#top">Remonter</a></div>
|
|
|
150 |
</li>
|
|
|
151 |
<li class="constant">
|
|
|
152 |
<a id="constant.MARK"></a><span class="access">const</span> <span class="type">int</span> <a href="Legend.html#constant.MARK">MARK</a> := <span class="default">3</span><div class="description">
|
|
|
153 |
Utilise un objet Mark et une ligne pour identifier un objet dans la légende.
|
|
|
154 |
</div>
|
|
|
155 |
<div class="description-bottom"><a href="Legend.html#top">Remonter</a></div>
|
|
|
156 |
</li>
|
|
|
157 |
<li class="constant">
|
|
|
158 |
<a id="constant.MARKONLY"></a><span class="access">const</span> <span class="type">int</span> <a href="Legend.html#constant.MARKONLY">MARKONLY</a> := <span class="default">4</span><div class="description">
|
|
|
159 |
Utilise un objet Mark seulement pour identifier un objet dans la légende.
|
|
|
160 |
</div>
|
|
|
161 |
<div class="description-bottom"><a href="Legend.html#top">Remonter</a></div>
|
|
|
162 |
</li>
|
|
|
163 |
<li class="constant">
|
|
|
164 |
<a id="constant.MODEL_RIGHT"></a><span class="access">const</span> <span class="type">int</span> <a href="Legend.html#constant.MODEL_RIGHT">MODEL_RIGHT</a> := <span class="default">1</span><div class="description">
|
|
|
165 |
Modèle prédéfini qui place la légende à droite.
|
|
|
166 |
</div>
|
|
|
167 |
<div class="description-bottom"><a href="Legend.html#top">Remonter</a></div>
|
|
|
168 |
</li>
|
|
|
169 |
<li class="constant">
|
|
|
170 |
<a id="constant.MODEL_BOTTOM"></a><span class="access">const</span> <span class="type">int</span> <a href="Legend.html#constant.MODEL_BOTTOM">MODEL_BOTTOM</a> := <span class="default">2</span><div class="description">
|
|
|
171 |
Modèle prédéfini qui place la légende en bas.
|
|
|
172 |
</div>
|
|
|
173 |
<div class="description-bottom"><a href="Legend.html#top">Remonter</a></div>
|
|
|
174 |
</li>
|
|
|
175 |
<li class="constant">
|
|
|
176 |
<a id="constant.LEFT"></a><span class="access">const</span> <span class="type">int</span> <a href="Legend.html#constant.LEFT">LEFT</a> := <span class="default">0</span><div class="description">
|
|
|
177 |
Aligne horizontalement la légende à gauche.
|
|
|
178 |
</div>
|
|
|
179 |
<div class="description-bottom"><a href="Legend.html#top">Remonter</a></div>
|
|
|
180 |
</li>
|
|
|
181 |
<li class="constant">
|
|
|
182 |
<a id="constant.RIGHT"></a><span class="access">const</span> <span class="type">int</span> <a href="Legend.html#constant.RIGHT">RIGHT</a> := <span class="default">1</span><div class="description">
|
|
|
183 |
Aligne horizontalement la légende à droite.
|
|
|
184 |
</div>
|
|
|
185 |
<div class="description-bottom"><a href="Legend.html#top">Remonter</a></div>
|
|
|
186 |
</li>
|
|
|
187 |
<li class="constant">
|
|
|
188 |
<a id="constant.CENTER"></a><span class="access">const</span> <span class="type">int</span> <a href="Legend.html#constant.CENTER">CENTER</a> := <span class="default">2</span><div class="description">
|
|
|
189 |
Centre la légende horizontalement.
|
|
|
190 |
</div>
|
|
|
191 |
<div class="description-bottom"><a href="Legend.html#top">Remonter</a></div>
|
|
|
192 |
</li>
|
|
|
193 |
<li class="constant">
|
|
|
194 |
<a id="constant.TOP"></a><span class="access">const</span> <span class="type">int</span> <a href="Legend.html#constant.TOP">TOP</a> := <span class="default">3</span><div class="description">
|
|
|
195 |
Aligne verticalement la légende en haut.
|
|
|
196 |
</div>
|
|
|
197 |
<div class="description-bottom"><a href="Legend.html#top">Remonter</a></div>
|
|
|
198 |
</li>
|
|
|
199 |
<li class="constant">
|
|
|
200 |
<a id="constant.BOTTOM"></a><span class="access">const</span> <span class="type">int</span> <a href="Legend.html#constant.BOTTOM">BOTTOM</a> := <span class="default">4</span><div class="description">
|
|
|
201 |
Aligne verticalement la légende en bas.
|
|
|
202 |
</div>
|
|
|
203 |
<div class="description-bottom"><a href="Legend.html#top">Remonter</a></div>
|
|
|
204 |
</li>
|
|
|
205 |
<li class="constant">
|
|
|
206 |
<a id="constant.MIDDLE"></a><span class="access">const</span> <span class="type">int</span> <a href="Legend.html#constant.MIDDLE">MIDDLE</a> := <span class="default">5</span><div class="description">
|
|
|
207 |
Aligne verticalement la légende au milieu.
|
|
|
208 |
</div>
|
|
|
209 |
<div class="description-bottom"><a href="Legend.html#top">Remonter</a></div>
|
|
|
210 |
</li>
|
|
|
211 |
<li class="property">
|
|
|
212 |
<a id="property.shadow"></a><span class="access">public</span> <a href="Shadow.html"><span class="type">Shadow</span></a> <a href="Legend.html#property.shadow"><span class="argument">$shadow</span></a><div class="description">
|
|
|
213 |
Cette propriété permet de manipuler l'ombre associée éventuellement avec la légende.
|
|
|
214 |
Par défaut, aucune ombre n'est affichée. Si vous souhaitez afficher une ombre, il vous suffit de lui donner une taille :
|
|
|
215 |
<pre>
|
|
|
216 |
|
|
|
217 |
<?php
|
|
|
218 |
|
|
|
219 |
require_once "Tools.class.php";
|
|
|
220 |
|
|
|
221 |
$legend = new <a href="Legend.html">Legend</a>();
|
|
|
222 |
|
|
|
223 |
// On associe une ombre de 4 pixels à la légende
|
|
|
224 |
$legend->shadow-><a href="Legend.html#method.setSize">setSize</a>(4);
|
|
|
225 |
|
|
|
226 |
?>
|
|
|
227 |
|
|
|
228 |
</pre>
|
|
|
229 |
</div>
|
|
|
230 |
<div class="description-bottom"><a href="Legend.html#top">Remonter</a></div>
|
|
|
231 |
</li>
|
|
|
232 |
<li class="property">
|
|
|
233 |
<a id="property.hide"></a><span class="access">protected</span> <span class="type">bool</span> <a href="Legend.html#property.hide"><span class="argument">$hide</span></a><div class="description">
|
|
|
234 |
Détermine si la légende doit être cachée ou non.
|
|
|
235 |
</div>
|
|
|
236 |
<div class="description-bottom"><a href="Legend.html#top">Remonter</a></div>
|
|
|
237 |
</li>
|
|
|
238 |
<li class="property">
|
|
|
239 |
<a id="property.legends"></a><span class="access">protected</span> <a href="ArrayOject.html"><span class="type">ArrayOject</span></a> <a href="Legend.html#property.legends"><span class="argument">$legends</span></a><div class="description">
|
|
|
240 |
Les objets <a href="Legendable.html">Legendable</a> à afficher sur la légende.
|
|
|
241 |
</div>
|
|
|
242 |
<div class="description-bottom"><a href="Legend.html#top">Remonter</a></div>
|
|
|
243 |
</li>
|
|
|
244 |
<li class="method">
|
|
|
245 |
<a id="method.__construct"></a><span class="access">public</span> <a href="Legend.html#method.__construct">__construct</a>(<span class="type">int</span> <span class="argument">$model</span> := <span class="default">Legend::MODEL_RIGHT</span>)
|
|
|
246 |
<div class="description">
|
|
|
247 |
Construit une nouvelle légende avec le modèle $model.
|
|
|
248 |
Les valeurs possibles pour $model sont <a href="Legend.html#constant.MODEL_BOTTOM">Legend::MODEL_BOTTOM</a> et <a href="Legend.html#constant.MODEL_RIGHT">Legend::MODEL_RIGHT</a>.
|
|
|
249 |
</div>
|
|
|
250 |
<div class="description-bottom"><a href="Legend.html#top">Remonter</a></div>
|
|
|
251 |
</li>
|
|
|
252 |
<li class="method">
|
|
|
253 |
<a id="method.hide"></a><span class="access">public</span> <a href="Legend.html#method.hide">hide</a>(<span class="type">bool</span> <span class="argument">$hide</span> := <span class="default">TRUE</span>)
|
|
|
254 |
<div class="description">
|
|
|
255 |
Permet de cacher (par défaut) ou d'afficher la légende.
|
|
|
256 |
</div>
|
|
|
257 |
<div class="description-bottom"><a href="Legend.html#top">Remonter</a></div>
|
|
|
258 |
</li>
|
|
|
259 |
<li class="method">
|
|
|
260 |
<a id="method.show"></a><span class="access">public</span> <a href="Legend.html#method.show">show</a>(<span class="type">bool</span> <span class="argument">$show</span> := <span class="default">TRUE</span>)
|
|
|
261 |
<div class="description">
|
|
|
262 |
Permet d'afficher (par défaut) ou de cacher la légende.
|
|
|
263 |
</div>
|
|
|
264 |
<div class="description-bottom"><a href="Legend.html#top">Remonter</a></div>
|
|
|
265 |
</li>
|
|
|
266 |
<li class="method">
|
|
|
267 |
<a id="method.setModel"></a><span class="access">public</span> <a href="Legend.html#method.setModel">setModel</a>(<span class="type">int</span> <span class="argument">$model</span>)
|
|
|
268 |
<div class="description">
|
|
|
269 |
Change le modèle de légende pour $model.
|
|
|
270 |
L'appel à cette méthode peut écraser les valeurs passées à d'autres méthodes comme <a href="Legend.html#method.setPadding">setPadding()</a> ou <a href="Legend.html#method.setHorizontalAlign">setHorizontalAlign()</a> par exemple (liste non exhaustive).
|
|
|
271 |
Les valeurs possibles pour $model sont <a href="Legend.html#constant.MODEL_BOTTOM">Legend::MODEL_BOTTOM</a> et <a href="Legend.html#constant.MODEL_RIGHT">Legend::MODEL_RIGHT</a>.
|
|
|
272 |
</div>
|
|
|
273 |
<div class="description-bottom"><a href="Legend.html#top">Remonter</a></div>
|
|
|
274 |
</li>
|
|
|
275 |
<li class="method">
|
|
|
276 |
<a id="method.add"></a><span class="access">public</span> <a href="Legend.html#method.add">add</a>(<a href="Legendable.html"><span class="type">Legendable</span></a> <span class="argument">$legendable</span>, <span class="type">string</span> <span class="argument">$title</span>, <span class="type">int</span> <span class="argument">$type</span> := <span class="default">Legend::LINE</span>)
|
|
|
277 |
<div class="description">
|
|
|
278 |
Ajoute un nouvel objet <a href="Legendable.html">légendable</a> avec pour titre $title à cette légende.
|
|
|
279 |
$type permet de spécifier le type de légende, qui peut être <a href="Legend.html#constant.LINE">Legend::LINE</a>, <a href="Legend.html#constant.BACKGROUND">Legend::BACKGROUND</a>, <a href="Legend.html#constant.MARK">Legend::MARK</a> ou encore <a href="Legend.html#constant.MARKONLY">Legend::MARKONLY</a>.
|
|
|
280 |
</div>
|
|
|
281 |
<div class="description-bottom"><a href="Legend.html#top">Remonter</a></div>
|
|
|
282 |
</li>
|
|
|
283 |
<li class="method">
|
|
|
284 |
<a id="method.setPadding"></a><span class="access">public</span> <a href="Legend.html#method.setPadding">setPadding</a>(<span class="type">int</span> <span class="argument">$left</span>, <span class="type">int</span> <span class="argument">$right</span>, <span class="type">int</span> <span class="argument">$top</span>, <span class="type">int</span> <span class="argument">$bottom</span>)
|
|
|
285 |
<div class="description">
|
|
|
286 |
Change l'espace interne de la légende.
|
|
|
287 |
Les nouvelles valeurs doivent être données en pixels.
|
|
|
288 |
Laissez les paramètres dont vous ne souhaitez pas modifier la valeur à NULL.
|
|
|
289 |
</div>
|
|
|
290 |
<div class="description-bottom"><a href="Legend.html#top">Remonter</a></div>
|
|
|
291 |
</li>
|
|
|
292 |
<li class="method">
|
|
|
293 |
<a id="method.setSpace"></a><span class="access">public</span> <a href="Legend.html#method.setSpace">setSpace</a>(<span class="type">int</span> <span class="argument">$space</span>)
|
|
|
294 |
<div class="description">
|
|
|
295 |
Change l'espace entre chaque valeur.
|
|
|
296 |
Cet espace doit être donné en pixels.
|
|
|
297 |
</div>
|
|
|
298 |
<div class="description-bottom"><a href="Legend.html#top">Remonter</a></div>
|
|
|
299 |
</li>
|
|
|
300 |
<li class="method">
|
|
|
301 |
<a id="method.setAlign"></a><span class="access">public</span> <a href="Legend.html#method.setAlign">setAlign</a>(<span class="type">int</span> <span class="argument">$h</span> := <span class="default">NULL</span>, <span class="type">int</span> <span class="argument">$v</span> := <span class="default">NULL</span>)
|
|
|
302 |
<div class="description">
|
|
|
303 |
Change l'alignement de la légende par rapport au point où elle sera affichée.
|
|
|
304 |
$h correspond à l'alignement horizontal (<a href="Legend.html#constant.LEFT">Legend::LEFT</a>, <a href="Legend.html#constant.RIGHT">Legend::RIGHT</a> ou <a href="Legend.html#constant.CENTER">Legend::CENTER</a>) et $v à l'alignement vertical (<a href="Legend.html#constant.TOP">Legend::TOP</a>, <a href="Legend.html#constant.BOTTOM">Legend::BOTTOM</a> ou <a href="Legend.html#constant.MIDDLE">Legend::MIDDLE</a>).
|
|
|
305 |
Si vous ne souhaitez pas modifier une des deux valeurs, vous pouvez passer NULL.
|
|
|
306 |
</div>
|
|
|
307 |
<div class="description-bottom"><a href="Legend.html#top">Remonter</a></div>
|
|
|
308 |
</li>
|
|
|
309 |
<li class="method">
|
|
|
310 |
<a id="method.setColumns"></a><span class="access">public</span> <a href="Legend.html#method.setColumns">setColumns</a>(<span class="type">int</span> <span class="argument">$columns</span>)
|
|
|
311 |
<div class="description">
|
|
|
312 |
Change le nombre de colonnes qui seront affichées dans la légende pour $columns.
|
|
|
313 |
Cette méthode est incompatible avec <a href="Legend.html#method.setRows">setRows()</a>.
|
|
|
314 |
<div class="see">
|
|
|
315 |
Voir aussi :
|
|
|
316 |
<ul><li><a href="Legend.html#method.setColumns">Legend::setColumns()</a></li></ul>
|
|
|
317 |
</div>
|
|
|
318 |
</div>
|
|
|
319 |
<div class="description-bottom"><a href="Legend.html#top">Remonter</a></div>
|
|
|
320 |
</li>
|
|
|
321 |
<li class="method">
|
|
|
322 |
<a id="method.setRows"></a><span class="access">public</span> <a href="Legend.html#method.setRows">setRows</a>(<span class="type">int</span> <span class="argument">$rows</span>)
|
|
|
323 |
<div class="description">
|
|
|
324 |
Change le nombre de lignes qui seront affichées dans la légende pour $rows.
|
|
|
325 |
Cette méthode est incompatible avec <a href="Legend.html#method.setColumns">setColumns()</a>.
|
|
|
326 |
<div class="see">
|
|
|
327 |
Voir aussi :
|
|
|
328 |
<ul><li><a href="Legend.html#method.setRows">Legend::setRows()</a></li></ul>
|
|
|
329 |
</div>
|
|
|
330 |
</div>
|
|
|
331 |
<div class="description-bottom"><a href="Legend.html#top">Remonter</a></div>
|
|
|
332 |
</li>
|
|
|
333 |
<li class="method">
|
|
|
334 |
<a id="method.setPosition"></a><span class="access">public</span> <a href="Legend.html#method.setPosition">setPosition</a>(<span class="type">float</span> <span class="argument">$x</span> := <span class="default">NULL</span>, <span class="type">float</span> <span class="argument">$y</span> := <span class="default">NULL</span>)
|
|
|
335 |
<div class="description">
|
|
|
336 |
Change la position de la légende sur l'objet légendé.
|
|
|
337 |
Les positions $x et $y sont des fractions des largeur et hauteur de l'objet légendé.
|
|
|
338 |
</div>
|
|
|
339 |
<div class="description-bottom"><a href="Legend.html#top">Remonter</a></div>
|
|
|
340 |
</li>
|
|
|
341 |
<li class="method">
|
|
|
342 |
<a id="method.getPosition"></a><span class="access">public</span> <a href="Point.html"><span class="type">Point</span></a> <a href="Legend.html#method.getPosition">getPosition</a>()
|
|
|
343 |
<div class="description">
|
|
|
344 |
Retourne la position courante de la légende sur l'objet légendé sous la forme d'un <a href="Point.html">point</a>.
|
|
|
345 |
</div>
|
|
|
346 |
<div class="description-bottom"><a href="Legend.html#top">Remonter</a></div>
|
|
|
347 |
</li>
|
|
|
348 |
<li class="method">
|
|
|
349 |
<a id="method.setTextFont"></a><span class="access">public</span> <a href="Legend.html#method.setTextFont">setTextFont</a>(<a href="Font.html"><span class="type">Font</span></a> <span class="argument">$font</span>)
|
|
|
350 |
<div class="description">
|
|
|
351 |
Change la police à utiliser sur la légende.
|
|
|
352 |
Voir la classe <a href="Font.html">Font</a> pour une liste des polices disponibles.
|
|
|
353 |
</div>
|
|
|
354 |
<div class="description-bottom"><a href="Legend.html#top">Remonter</a></div>
|
|
|
355 |
</li>
|
|
|
356 |
<li class="method">
|
|
|
357 |
<a id="method.setTextMargin"></a><span class="access">public</span> <a href="Legend.html#method.setTextMargin">setTextMargin</a>(<span class="type">int</span> <span class="argument">$left</span>, <span class="type">int</span> <span class="argument">$right</span>)
|
|
|
358 |
<div class="description">
|
|
|
359 |
Change la marge gauche et droite autour du texte des légendes.
|
|
|
360 |
$left et $right sont à donner en pixels.
|
|
|
361 |
</div>
|
|
|
362 |
<div class="description-bottom"><a href="Legend.html#top">Remonter</a></div>
|
|
|
363 |
</li>
|
|
|
364 |
<li class="method">
|
|
|
365 |
<a id="method.setTextColor"></a><span class="access">public</span> <a href="Legend.html#method.setTextColor">setTextColor</a>(<a href="Color.html"><span class="type">Color</span></a> <span class="argument">$color</span>)
|
|
|
366 |
<div class="description">
|
|
|
367 |
Change la couleur du texte de la légende.
|
|
|
368 |
</div>
|
|
|
369 |
<div class="description-bottom"><a href="Legend.html#top">Remonter</a></div>
|
|
|
370 |
</li>
|
|
|
371 |
<li class="method">
|
|
|
372 |
<a id="method.setBackground"></a><span class="access">public</span> <a href="Legend.html#method.setBackground">setBackground</a>(<span class="type">mixed</span> <span class="argument">$background</span>)
|
|
|
373 |
<div class="description">
|
|
|
374 |
Change le fond de la légende.
|
|
|
375 |
$background peut être soit une couleur, soit un dégradé.
|
|
|
376 |
</div>
|
|
|
377 |
<div class="description-bottom"><a href="Legend.html#top">Remonter</a></div>
|
|
|
378 |
</li>
|
|
|
379 |
<li class="method">
|
|
|
380 |
<a id="method.setBackgroundColor"></a><span class="access">public</span> <a href="Legend.html#method.setBackgroundColor">setBackgroundColor</a>(<a href="Color.html"><span class="type">Color</span></a> <span class="argument">$color</span>)
|
|
|
381 |
<div class="description">
|
|
|
382 |
Change la couleur de fond de la légende.
|
|
|
383 |
<div class="see">
|
|
|
384 |
Voir aussi :
|
|
|
385 |
<ul><li><a href="Legend.html#method.setBackground">Legend::setBackground()</a></li></ul>
|
|
|
386 |
</div>
|
|
|
387 |
</div>
|
|
|
388 |
<div class="description-bottom"><a href="Legend.html#top">Remonter</a></div>
|
|
|
389 |
</li>
|
|
|
390 |
<li class="method">
|
|
|
391 |
<a id="method.setBackgroundGradient"></a><span class="access">public</span> <a href="Legend.html#method.setBackgroundGradient">setBackgroundGradient</a>(<a href="Gradient.html"><span class="type">Gradient</span></a> <span class="argument">$gradient</span>)
|
|
|
392 |
<div class="description">
|
|
|
393 |
Change le dégradé de fond de la légende.
|
|
|
394 |
<div class="see">
|
|
|
395 |
Voir aussi :
|
|
|
396 |
<ul><li><a href="Legend.html#method.setBackground">Legend::setBackground()</a></li></ul>
|
|
|
397 |
</div>
|
|
|
398 |
</div>
|
|
|
399 |
<div class="description-bottom"><a href="Legend.html#top">Remonter</a></div>
|
|
|
400 |
</li>
|
|
|
401 |
<li class="method">
|
|
|
402 |
<a id="method.setBorderSize"></a><span class="access">public</span> <a href="Legend.html#method.setBorderSize">setBorderSize</a>(<span class="type">int</span> <span class="argument">$size</span>)
|
|
|
403 |
<div class="description">
|
|
|
404 |
Change la taille de la bordure qui entoure la légende.
|
|
|
405 |
Les valeurs possibles sont 0 et 1.
|
|
|
406 |
</div>
|
|
|
407 |
<div class="description-bottom"><a href="Legend.html#top">Remonter</a></div>
|
|
|
408 |
</li>
|
|
|
409 |
<li class="method">
|
|
|
410 |
<a id="method.setBorderColor"></a><span class="access">public</span> <a href="Legend.html#method.setBorderColor">setBorderColor</a>(<a href="Color.html"><span class="type">Color</span></a> <span class="argument">$color</span>)
|
|
|
411 |
<div class="description">
|
|
|
412 |
Change la couleur de la bordure qui entoure la légende.
|
|
|
413 |
</div>
|
|
|
414 |
<div class="description-bottom"><a href="Legend.html#top">Remonter</a></div>
|
|
|
415 |
</li>
|
|
|
416 |
<li class="method">
|
|
|
417 |
<a id="method.count"></a><span class="access">public</span> <span class="type">int</span> <a href="Legend.html#method.count">count</a>()
|
|
|
418 |
<div class="description">
|
|
|
419 |
Retourne le nombre d'objets <a href="Legendable.html">légendable</a> qui ont été ajoutés à cette légende.
|
|
|
420 |
</div>
|
|
|
421 |
<div class="description-bottom"><a href="Legend.html#top">Remonter</a></div>
|
|
|
422 |
</li>
|
|
|
423 |
<li class="method">
|
|
|
424 |
<a id="method.draw"></a><span class="access">public</span> <a href="Legend.html#method.draw">draw</a>(<a href="Driver.html"><span class="type">Driver</span></a> <span class="argument">$driver</span>)
|
|
|
425 |
<div class="description">
|
|
|
426 |
Dessine la légende avec le pilote $driver.
|
|
|
427 |
</div>
|
|
|
428 |
<div class="description-bottom"><a href="Legend.html#top">Remonter</a></div>
|
|
|
429 |
</li>
|
|
|
430 |
</ul>
|
|
|
431 |
</td>
|
|
|
432 |
<td class='borderd'> </td>
|
|
|
433 |
</tr>
|
|
|
434 |
<tr>
|
|
|
435 |
<td class='cornerbg'></td>
|
|
|
436 |
<td class='borderb'> </td>
|
|
|
437 |
<td class='cornerbd'></td>
|
|
|
438 |
</tr>
|
|
|
439 |
</table>
|
|
|
440 |
</div>
|
|
|
441 |
</body>
|
|
|
442 |
</html>
|