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

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 rectObj
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 rectObj object.
48    */
49   public rectObj()
50   {
510    this(MapScriptJNI.new_rectObj(), true);
520  }
53  
54   /**
55    * Creates a new rectObj object.
56    *
57    * @param cPtr PARAMETER
58    * @param cMemoryOwn PARAMETER
59    */
60   protected rectObj(long cPtr, boolean cMemoryOwn)
610  {
620    swigCMemOwn = cMemoryOwn;
630    swigCPtr = cPtr;
640  }
65  
66   /**
67    * DOCUMENT ME!
68    *
69    * @param maxx PARAMETER
70    *
71    * @todo METHOD_DESCRIPTION
72    */
73   public void setMaxx(double maxx)
74   {
750    MapScriptJNI.set_rectObj_maxx(swigCPtr, maxx);
760  }
77  
78   /**
79    * DOCUMENT ME!
80    *
81    * @return RETURN
82    *
83    * @todo METHOD_DESCRIPTION
84    */
85   public double getMaxx()
86   {
870    return MapScriptJNI.get_rectObj_maxx(swigCPtr);
88   }
89  
90   /**
91    * DOCUMENT ME!
92    *
93    * @param maxy PARAMETER
94    *
95    * @todo METHOD_DESCRIPTION
96    */
97   public void setMaxy(double maxy)
98   {
990    MapScriptJNI.set_rectObj_maxy(swigCPtr, maxy);
1000  }
101  
102   /**
103    * DOCUMENT ME!
104    *
105    * @return RETURN
106    *
107    * @todo METHOD_DESCRIPTION
108    */
109   public double getMaxy()
110   {
1110    return MapScriptJNI.get_rectObj_maxy(swigCPtr);
112   }
113  
114   /**
115    * DOCUMENT ME!
116    *
117    * @param minx PARAMETER
118    *
119    * @todo METHOD_DESCRIPTION
120    */
121   public void setMinx(double minx)
122   {
1230    MapScriptJNI.set_rectObj_minx(swigCPtr, minx);
1240  }
125  
126   /**
127    * DOCUMENT ME!
128    *
129    * @return RETURN
130    *
131    * @todo METHOD_DESCRIPTION
132    */
133   public double getMinx()
134   {
1350    return MapScriptJNI.get_rectObj_minx(swigCPtr);
136   }
137  
138   /**
139    * DOCUMENT ME!
140    *
141    * @param miny PARAMETER
142    *
143    * @todo METHOD_DESCRIPTION
144    */
145   public void setMiny(double miny)
146   {
1470    MapScriptJNI.set_rectObj_miny(swigCPtr, miny);
1480  }
149  
150   /**
151    * DOCUMENT ME!
152    *
153    * @return RETURN
154    *
155    * @todo METHOD_DESCRIPTION
156    */
157   public double getMiny()
158   {
1590    return MapScriptJNI.get_rectObj_miny(swigCPtr);
160   }
161  
162   /**
163    * DOCUMENT ME!
164    *
165    * @todo METHOD_DESCRIPTION
166    */
167   public void delete()
168   {
1690    if ((swigCPtr != 0) && swigCMemOwn)
170     {
1710      MapScriptJNI.delete_rectObj(swigCPtr);
1720      swigCMemOwn = false;
173     }
174  
1750    swigCPtr = 0;
1760  }
177  
178   /**
179    * DOCUMENT ME!
180    *
181    * @param map PARAMETER
182    * @param layer PARAMETER
183    * @param image PARAMETER
184    * @param classindex PARAMETER
185    * @param text PARAMETER
186    *
187    * @return RETURN
188    *
189    * @todo METHOD_DESCRIPTION
190    */
191   public int draw(mapObj map, layerObj layer, imageObj image, int classindex,
192     String text)
193   {
1940    return MapScriptJNI.rectObj_draw(swigCPtr, mapObj.getCPtr(map),
195       layerObj.getCPtr(layer), imageObj.getCPtr(image), classindex, text);
196   }
197  
198   /**
199    * DOCUMENT ME!
200    *
201    * @param obj PARAMETER
202    *
203    * @return RETURN
204    *
205    * @todo METHOD_DESCRIPTION
206    */
207   public boolean equals(Object obj)
208   {
2090    boolean equal = false;
210  
2110    if (obj instanceof rectObj)
212     {
2130      equal = (((rectObj) obj).swigCPtr == this.swigCPtr);
214     }
215  
2160    return equal;
217   }
218  
219   /**
220    * DOCUMENT ME!
221    *
222    * @param width PARAMETER
223    * @param height PARAMETER
224    *
225    * @return RETURN
226    *
227    * @todo METHOD_DESCRIPTION
228    */
229   public double fit(int width, int height)
230   {
2310    return MapScriptJNI.rectObj_fit(swigCPtr, width, height);
232   }
233  
234   /**
235    * DOCUMENT ME!
236    *
237    * @param in PARAMETER
238    * @param out PARAMETER
239    *
240    * @return RETURN
241    *
242    * @todo METHOD_DESCRIPTION
243    */
244   public int project(projectionObj in, projectionObj out)
245   {
2460    return MapScriptJNI.rectObj_project(swigCPtr, projectionObj.getCPtr(in),
247       projectionObj.getCPtr(out));
248   }
249  
250   /**
251    * DOCUMENT ME!
252    *
253    * @param obj PARAMETER
254    *
255    * @return RETURN
256    *
257    * @todo METHOD_DESCRIPTION
258    */
259   protected static long getCPtr(rectObj obj)
260   {
2610    return obj.swigCPtr;
262   }
263  
264   /**
265    * DOCUMENT ME!
266    *
267    * @todo METHOD_DESCRIPTION
268    */
269   protected void finalize()
270   {
2710    delete();
2720  }
273 }

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.