Line | Hits | Source |
---|---|---|
1 | // A Java MapScript module for MapServer. | |
2 | // See <http://mapserver.gis.umn.edu> for information on MapServer. | |
3 | // | |
4 | // Copyright (C) 2003 Andrew Collins <andrewrcollins@yahoo.com> | |
5 | // | |
6 | // This library is free software; you can redistribute it | |
7 | // and/or modify it under the terms of the GNU Lesser General | |
8 | // Public License as published by the Free Software Foundation; | |
9 | // either version 2.1 of the License, or (at your option) any | |
10 | // later version. | |
11 | // | |
12 | // This library is distributed in the hope that it will be useful, | |
13 | // but WITHOUT ANY WARRANTY; without even the implied warranty | |
14 | // of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
15 | // See the GNU Lesser General Public License for more details. | |
16 | // | |
17 | // You should have received a copy of the GNU Lesser General | |
18 | // Public License along with this library; if not, write to | |
19 | // the Free Software Foundation, Inc., 59 Temple Place, | |
20 | // Suite 330, Boston, MA 02111-1307 USA | |
21 | package edu.umn.gis.mapscript.imp; | |
22 | ||
23 | /** | |
24 | * DOCUMENT ME! | |
25 | * | |
26 | * @author <a href="mailto:ADDRESS">NAME</a> | |
27 | * | |
28 | * @todo CLASS_DESCRIPTION | |
29 | */ | |
30 | public class scalebarObj | |
31 | { | |
32 | /** | |
33 | * DOCUMENT ME! | |
34 | * | |
35 | * @todo FIELD_DESCRIPTION | |
36 | */ | |
37 | protected boolean swigCMemOwn; | |
38 | ||
39 | /** | |
40 | * DOCUMENT ME! | |
41 | * | |
42 | * @todo FIELD_DESCRIPTION | |
43 | */ | |
44 | private long swigCPtr; | |
45 | ||
46 | /** | |
47 | * Creates a new scalebarObj object. | |
48 | */ | |
49 | public scalebarObj() | |
50 | { | |
51 | 0 | this(MapScriptJNI.new_scalebarObj(), true); |
52 | 0 | } |
53 | ||
54 | /** | |
55 | * Creates a new scalebarObj object. | |
56 | * | |
57 | * @param cPtr PARAMETER | |
58 | * @param cMemoryOwn PARAMETER | |
59 | */ | |
60 | protected scalebarObj(long cPtr, boolean cMemoryOwn) | |
61 | 0 | { |
62 | 0 | swigCMemOwn = cMemoryOwn; |
63 | 0 | swigCPtr = cPtr; |
64 | 0 | } |
65 | ||
66 | /** | |
67 | * DOCUMENT ME! | |
68 | * | |
69 | * @param backgroundcolor PARAMETER | |
70 | * | |
71 | * @todo METHOD_DESCRIPTION | |
72 | */ | |
73 | public void setBackgroundcolor(int backgroundcolor) | |
74 | { | |
75 | 0 | MapScriptJNI.set_scalebarObj_backgroundcolor(swigCPtr, backgroundcolor); |
76 | 0 | } |
77 | ||
78 | /** | |
79 | * DOCUMENT ME! | |
80 | * | |
81 | * @return RETURN | |
82 | * | |
83 | * @todo METHOD_DESCRIPTION | |
84 | */ | |
85 | public int getBackgroundcolor() | |
86 | { | |
87 | 0 | return MapScriptJNI.get_scalebarObj_backgroundcolor(swigCPtr); |
88 | } | |
89 | ||
90 | /** | |
91 | * DOCUMENT ME! | |
92 | * | |
93 | * @param color PARAMETER | |
94 | * | |
95 | * @todo METHOD_DESCRIPTION | |
96 | */ | |
97 | public void setColor(int color) | |
98 | { | |
99 | 0 | MapScriptJNI.set_scalebarObj_color(swigCPtr, color); |
100 | 0 | } |
101 | ||
102 | /** | |
103 | * DOCUMENT ME! | |
104 | * | |
105 | * @return RETURN | |
106 | * | |
107 | * @todo METHOD_DESCRIPTION | |
108 | */ | |
109 | public int getColor() | |
110 | { | |
111 | 0 | return MapScriptJNI.get_scalebarObj_color(swigCPtr); |
112 | } | |
113 | ||
114 | /** | |
115 | * DOCUMENT ME! | |
116 | * | |
117 | * @param height PARAMETER | |
118 | * | |
119 | * @todo METHOD_DESCRIPTION | |
120 | */ | |
121 | public void setHeight(int height) | |
122 | { | |
123 | 0 | MapScriptJNI.set_scalebarObj_height(swigCPtr, height); |
124 | 0 | } |
125 | ||
126 | /** | |
127 | * DOCUMENT ME! | |
128 | * | |
129 | * @return RETURN | |
130 | * | |
131 | * @todo METHOD_DESCRIPTION | |
132 | */ | |
133 | public int getHeight() | |
134 | { | |
135 | 0 | return MapScriptJNI.get_scalebarObj_height(swigCPtr); |
136 | } | |
137 | ||
138 | /** | |
139 | * DOCUMENT ME! | |
140 | * | |
141 | * @param imagecolor PARAMETER | |
142 | * | |
143 | * @todo METHOD_DESCRIPTION | |
144 | */ | |
145 | public void setImagecolor(colorObj imagecolor) | |
146 | { | |
147 | 0 | MapScriptJNI.set_scalebarObj_imagecolor(swigCPtr, |
148 | colorObj.getCPtr(imagecolor)); | |
149 | 0 | } |
150 | ||
151 | /** | |
152 | * DOCUMENT ME! | |
153 | * | |
154 | * @return RETURN | |
155 | * | |
156 | * @todo METHOD_DESCRIPTION | |
157 | */ | |
158 | public colorObj getImagecolor() | |
159 | { | |
160 | 0 | return new colorObj(MapScriptJNI.get_scalebarObj_imagecolor(swigCPtr), false); |
161 | } | |
162 | ||
163 | /** | |
164 | * DOCUMENT ME! | |
165 | * | |
166 | * @param interlace PARAMETER | |
167 | * | |
168 | * @todo METHOD_DESCRIPTION | |
169 | */ | |
170 | public void setInterlace(int interlace) | |
171 | { | |
172 | 0 | MapScriptJNI.set_scalebarObj_interlace(swigCPtr, interlace); |
173 | 0 | } |
174 | ||
175 | /** | |
176 | * DOCUMENT ME! | |
177 | * | |
178 | * @return RETURN | |
179 | * | |
180 | * @todo METHOD_DESCRIPTION | |
181 | */ | |
182 | public int getInterlace() | |
183 | { | |
184 | 0 | return MapScriptJNI.get_scalebarObj_interlace(swigCPtr); |
185 | } | |
186 | ||
187 | /** | |
188 | * DOCUMENT ME! | |
189 | * | |
190 | * @param intervals PARAMETER | |
191 | * | |
192 | * @todo METHOD_DESCRIPTION | |
193 | */ | |
194 | public void setIntervals(int intervals) | |
195 | { | |
196 | 0 | MapScriptJNI.set_scalebarObj_intervals(swigCPtr, intervals); |
197 | 0 | } |
198 | ||
199 | /** | |
200 | * DOCUMENT ME! | |
201 | * | |
202 | * @return RETURN | |
203 | * | |
204 | * @todo METHOD_DESCRIPTION | |
205 | */ | |
206 | public int getIntervals() | |
207 | { | |
208 | 0 | return MapScriptJNI.get_scalebarObj_intervals(swigCPtr); |
209 | } | |
210 | ||
211 | /** | |
212 | * DOCUMENT ME! | |
213 | * | |
214 | * @param label PARAMETER | |
215 | * | |
216 | * @todo METHOD_DESCRIPTION | |
217 | */ | |
218 | public void setLabel(labelObj label) | |
219 | { | |
220 | 0 | MapScriptJNI.set_scalebarObj_label(swigCPtr, labelObj.getCPtr(label)); |
221 | 0 | } |
222 | ||
223 | /** | |
224 | * DOCUMENT ME! | |
225 | * | |
226 | * @return RETURN | |
227 | * | |
228 | * @todo METHOD_DESCRIPTION | |
229 | */ | |
230 | public labelObj getLabel() | |
231 | { | |
232 | 0 | return new labelObj(MapScriptJNI.get_scalebarObj_label(swigCPtr), false); |
233 | } | |
234 | ||
235 | /** | |
236 | * DOCUMENT ME! | |
237 | * | |
238 | * @param outlinecolor PARAMETER | |
239 | * | |
240 | * @todo METHOD_DESCRIPTION | |
241 | */ | |
242 | public void setOutlinecolor(int outlinecolor) | |
243 | { | |
244 | 0 | MapScriptJNI.set_scalebarObj_outlinecolor(swigCPtr, outlinecolor); |
245 | 0 | } |
246 | ||
247 | /** | |
248 | * DOCUMENT ME! | |
249 | * | |
250 | * @return RETURN | |
251 | * | |
252 | * @todo METHOD_DESCRIPTION | |
253 | */ | |
254 | public int getOutlinecolor() | |
255 | { | |
256 | 0 | return MapScriptJNI.get_scalebarObj_outlinecolor(swigCPtr); |
257 | } | |
258 | ||
259 | /** | |
260 | * DOCUMENT ME! | |
261 | * | |
262 | * @param position PARAMETER | |
263 | * | |
264 | * @todo METHOD_DESCRIPTION | |
265 | */ | |
266 | public void setPosition(int position) | |
267 | { | |
268 | 0 | MapScriptJNI.set_scalebarObj_position(swigCPtr, position); |
269 | 0 | } |
270 | ||
271 | /** | |
272 | * DOCUMENT ME! | |
273 | * | |
274 | * @return RETURN | |
275 | * | |
276 | * @todo METHOD_DESCRIPTION | |
277 | */ | |
278 | public int getPosition() | |
279 | { | |
280 | 0 | return MapScriptJNI.get_scalebarObj_position(swigCPtr); |
281 | } | |
282 | ||
283 | /** | |
284 | * DOCUMENT ME! | |
285 | * | |
286 | * @param postlabelcache PARAMETER | |
287 | * | |
288 | * @todo METHOD_DESCRIPTION | |
289 | */ | |
290 | public void setPostlabelcache(int postlabelcache) | |
291 | { | |
292 | 0 | MapScriptJNI.set_scalebarObj_postlabelcache(swigCPtr, postlabelcache); |
293 | 0 | } |
294 | ||
295 | /** | |
296 | * DOCUMENT ME! | |
297 | * | |
298 | * @return RETURN | |
299 | * | |
300 | * @todo METHOD_DESCRIPTION | |
301 | */ | |
302 | public int getPostlabelcache() | |
303 | { | |
304 | 0 | return MapScriptJNI.get_scalebarObj_postlabelcache(swigCPtr); |
305 | } | |
306 | ||
307 | /** | |
308 | * DOCUMENT ME! | |
309 | * | |
310 | * @param status PARAMETER | |
311 | * | |
312 | * @todo METHOD_DESCRIPTION | |
313 | */ | |
314 | public void setStatus(int status) | |
315 | { | |
316 | 0 | MapScriptJNI.set_scalebarObj_status(swigCPtr, status); |
317 | 0 | } |
318 | ||
319 | /** | |
320 | * DOCUMENT ME! | |
321 | * | |
322 | * @return RETURN | |
323 | * | |
324 | * @todo METHOD_DESCRIPTION | |
325 | */ | |
326 | public int getStatus() | |
327 | { | |
328 | 0 | return MapScriptJNI.get_scalebarObj_status(swigCPtr); |
329 | } | |
330 | ||
331 | /** | |
332 | * DOCUMENT ME! | |
333 | * | |
334 | * @param style PARAMETER | |
335 | * | |
336 | * @todo METHOD_DESCRIPTION | |
337 | */ | |
338 | public void setStyle(int style) | |
339 | { | |
340 | 0 | MapScriptJNI.set_scalebarObj_style(swigCPtr, style); |
341 | 0 | } |
342 | ||
343 | /** | |
344 | * DOCUMENT ME! | |
345 | * | |
346 | * @return RETURN | |
347 | * | |
348 | * @todo METHOD_DESCRIPTION | |
349 | */ | |
350 | public int getStyle() | |
351 | { | |
352 | 0 | return MapScriptJNI.get_scalebarObj_style(swigCPtr); |
353 | } | |
354 | ||
355 | /** | |
356 | * DOCUMENT ME! | |
357 | * | |
358 | * @param transparent PARAMETER | |
359 | * | |
360 | * @todo METHOD_DESCRIPTION | |
361 | */ | |
362 | public void setTransparent(int transparent) | |
363 | { | |
364 | 0 | MapScriptJNI.set_scalebarObj_transparent(swigCPtr, transparent); |
365 | 0 | } |
366 | ||
367 | /** | |
368 | * DOCUMENT ME! | |
369 | * | |
370 | * @return RETURN | |
371 | * | |
372 | * @todo METHOD_DESCRIPTION | |
373 | */ | |
374 | public int getTransparent() | |
375 | { | |
376 | 0 | return MapScriptJNI.get_scalebarObj_transparent(swigCPtr); |
377 | } | |
378 | ||
379 | /** | |
380 | * DOCUMENT ME! | |
381 | * | |
382 | * @param units PARAMETER | |
383 | * | |
384 | * @todo METHOD_DESCRIPTION | |
385 | */ | |
386 | public void setUnits(int units) | |
387 | { | |
388 | 0 | MapScriptJNI.set_scalebarObj_units(swigCPtr, units); |
389 | 0 | } |
390 | ||
391 | /** | |
392 | * DOCUMENT ME! | |
393 | * | |
394 | * @return RETURN | |
395 | * | |
396 | * @todo METHOD_DESCRIPTION | |
397 | */ | |
398 | public int getUnits() | |
399 | { | |
400 | 0 | return MapScriptJNI.get_scalebarObj_units(swigCPtr); |
401 | } | |
402 | ||
403 | /** | |
404 | * DOCUMENT ME! | |
405 | * | |
406 | * @param width PARAMETER | |
407 | * | |
408 | * @todo METHOD_DESCRIPTION | |
409 | */ | |
410 | public void setWidth(int width) | |
411 | { | |
412 | 0 | MapScriptJNI.set_scalebarObj_width(swigCPtr, width); |
413 | 0 | } |
414 | ||
415 | /** | |
416 | * DOCUMENT ME! | |
417 | * | |
418 | * @return RETURN | |
419 | * | |
420 | * @todo METHOD_DESCRIPTION | |
421 | */ | |
422 | public int getWidth() | |
423 | { | |
424 | 0 | return MapScriptJNI.get_scalebarObj_width(swigCPtr); |
425 | } | |
426 | ||
427 | /** | |
428 | * DOCUMENT ME! | |
429 | * | |
430 | * @todo METHOD_DESCRIPTION | |
431 | */ | |
432 | public void delete() | |
433 | { | |
434 | 0 | if ((swigCPtr != 0) && swigCMemOwn) |
435 | { | |
436 | 0 | MapScriptJNI.delete_scalebarObj(swigCPtr); |
437 | 0 | swigCMemOwn = false; |
438 | } | |
439 | ||
440 | 0 | swigCPtr = 0; |
441 | 0 | } |
442 | ||
443 | /** | |
444 | * DOCUMENT ME! | |
445 | * | |
446 | * @param obj PARAMETER | |
447 | * | |
448 | * @return RETURN | |
449 | * | |
450 | * @todo METHOD_DESCRIPTION | |
451 | */ | |
452 | public boolean equals(Object obj) | |
453 | { | |
454 | 0 | boolean equal = false; |
455 | ||
456 | 0 | if (obj instanceof scalebarObj) |
457 | { | |
458 | 0 | equal = (((scalebarObj) obj).swigCPtr == this.swigCPtr); |
459 | } | |
460 | ||
461 | 0 | return equal; |
462 | } | |
463 | ||
464 | /** | |
465 | * DOCUMENT ME! | |
466 | * | |
467 | * @param obj PARAMETER | |
468 | * | |
469 | * @return RETURN | |
470 | * | |
471 | * @todo METHOD_DESCRIPTION | |
472 | */ | |
473 | protected static long getCPtr(scalebarObj obj) | |
474 | { | |
475 | 0 | return obj.swigCPtr; |
476 | } | |
477 | ||
478 | /** | |
479 | * DOCUMENT ME! | |
480 | * | |
481 | * @todo METHOD_DESCRIPTION | |
482 | */ | |
483 | protected void finalize() | |
484 | { | |
485 | 0 | delete(); |
486 | 0 | } |
487 | } |
this report was generated by version 1.0.2 of jcoverage. |
copyright © 2003, jcoverage ltd. all rights reserved. |