Coverage details for edu.umn.gis.mapscript.imp.scalebarObj

LineHitsSource
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   {
510    this(MapScriptJNI.new_scalebarObj(), true);
520  }
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)
610  {
620    swigCMemOwn = cMemoryOwn;
630    swigCPtr = cPtr;
640  }
65  
66   /**
67    * DOCUMENT ME!
68    *
69    * @param backgroundcolor PARAMETER
70    *
71    * @todo METHOD_DESCRIPTION
72    */
73   public void setBackgroundcolor(int backgroundcolor)
74   {
750    MapScriptJNI.set_scalebarObj_backgroundcolor(swigCPtr, backgroundcolor);
760  }
77  
78   /**
79    * DOCUMENT ME!
80    *
81    * @return RETURN
82    *
83    * @todo METHOD_DESCRIPTION
84    */
85   public int getBackgroundcolor()
86   {
870    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   {
990    MapScriptJNI.set_scalebarObj_color(swigCPtr, color);
1000  }
101  
102   /**
103    * DOCUMENT ME!
104    *
105    * @return RETURN
106    *
107    * @todo METHOD_DESCRIPTION
108    */
109   public int getColor()
110   {
1110    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   {
1230    MapScriptJNI.set_scalebarObj_height(swigCPtr, height);
1240  }
125  
126   /**
127    * DOCUMENT ME!
128    *
129    * @return RETURN
130    *
131    * @todo METHOD_DESCRIPTION
132    */
133   public int getHeight()
134   {
1350    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   {
1470    MapScriptJNI.set_scalebarObj_imagecolor(swigCPtr,
148       colorObj.getCPtr(imagecolor));
1490  }
150  
151   /**
152    * DOCUMENT ME!
153    *
154    * @return RETURN
155    *
156    * @todo METHOD_DESCRIPTION
157    */
158   public colorObj getImagecolor()
159   {
1600    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   {
1720    MapScriptJNI.set_scalebarObj_interlace(swigCPtr, interlace);
1730  }
174  
175   /**
176    * DOCUMENT ME!
177    *
178    * @return RETURN
179    *
180    * @todo METHOD_DESCRIPTION
181    */
182   public int getInterlace()
183   {
1840    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   {
1960    MapScriptJNI.set_scalebarObj_intervals(swigCPtr, intervals);
1970  }
198  
199   /**
200    * DOCUMENT ME!
201    *
202    * @return RETURN
203    *
204    * @todo METHOD_DESCRIPTION
205    */
206   public int getIntervals()
207   {
2080    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   {
2200    MapScriptJNI.set_scalebarObj_label(swigCPtr, labelObj.getCPtr(label));
2210  }
222  
223   /**
224    * DOCUMENT ME!
225    *
226    * @return RETURN
227    *
228    * @todo METHOD_DESCRIPTION
229    */
230   public labelObj getLabel()
231   {
2320    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   {
2440    MapScriptJNI.set_scalebarObj_outlinecolor(swigCPtr, outlinecolor);
2450  }
246  
247   /**
248    * DOCUMENT ME!
249    *
250    * @return RETURN
251    *
252    * @todo METHOD_DESCRIPTION
253    */
254   public int getOutlinecolor()
255   {
2560    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   {
2680    MapScriptJNI.set_scalebarObj_position(swigCPtr, position);
2690  }
270  
271   /**
272    * DOCUMENT ME!
273    *
274    * @return RETURN
275    *
276    * @todo METHOD_DESCRIPTION
277    */
278   public int getPosition()
279   {
2800    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   {
2920    MapScriptJNI.set_scalebarObj_postlabelcache(swigCPtr, postlabelcache);
2930  }
294  
295   /**
296    * DOCUMENT ME!
297    *
298    * @return RETURN
299    *
300    * @todo METHOD_DESCRIPTION
301    */
302   public int getPostlabelcache()
303   {
3040    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   {
3160    MapScriptJNI.set_scalebarObj_status(swigCPtr, status);
3170  }
318  
319   /**
320    * DOCUMENT ME!
321    *
322    * @return RETURN
323    *
324    * @todo METHOD_DESCRIPTION
325    */
326   public int getStatus()
327   {
3280    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   {
3400    MapScriptJNI.set_scalebarObj_style(swigCPtr, style);
3410  }
342  
343   /**
344    * DOCUMENT ME!
345    *
346    * @return RETURN
347    *
348    * @todo METHOD_DESCRIPTION
349    */
350   public int getStyle()
351   {
3520    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   {
3640    MapScriptJNI.set_scalebarObj_transparent(swigCPtr, transparent);
3650  }
366  
367   /**
368    * DOCUMENT ME!
369    *
370    * @return RETURN
371    *
372    * @todo METHOD_DESCRIPTION
373    */
374   public int getTransparent()
375   {
3760    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   {
3880    MapScriptJNI.set_scalebarObj_units(swigCPtr, units);
3890  }
390  
391   /**
392    * DOCUMENT ME!
393    *
394    * @return RETURN
395    *
396    * @todo METHOD_DESCRIPTION
397    */
398   public int getUnits()
399   {
4000    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   {
4120    MapScriptJNI.set_scalebarObj_width(swigCPtr, width);
4130  }
414  
415   /**
416    * DOCUMENT ME!
417    *
418    * @return RETURN
419    *
420    * @todo METHOD_DESCRIPTION
421    */
422   public int getWidth()
423   {
4240    return MapScriptJNI.get_scalebarObj_width(swigCPtr);
425   }
426  
427   /**
428    * DOCUMENT ME!
429    *
430    * @todo METHOD_DESCRIPTION
431    */
432   public void delete()
433   {
4340    if ((swigCPtr != 0) && swigCMemOwn)
435     {
4360      MapScriptJNI.delete_scalebarObj(swigCPtr);
4370      swigCMemOwn = false;
438     }
439  
4400    swigCPtr = 0;
4410  }
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   {
4540    boolean equal = false;
455  
4560    if (obj instanceof scalebarObj)
457     {
4580      equal = (((scalebarObj) obj).swigCPtr == this.swigCPtr);
459     }
460  
4610    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   {
4750    return obj.swigCPtr;
476   }
477  
478   /**
479    * DOCUMENT ME!
480    *
481    * @todo METHOD_DESCRIPTION
482    */
483   protected void finalize()
484   {
4850    delete();
4860  }
487 }

this report was generated by version 1.0.2 of jcoverage.
visit www.jcoverage.com for updates.

copyright © 2003, jcoverage ltd. all rights reserved.
Java is a trademark of Sun Microsystems, Inc. in the United States and other countries.