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

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 lineObj
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 lineObj object.
48    */
49   public lineObj()
50   {
510    this(MapScriptJNI.new_lineObj(), true);
520  }
53  
54   /**
55    * Creates a new lineObj object.
56    *
57    * @param cPtr PARAMETER
58    * @param cMemoryOwn PARAMETER
59    */
60   protected lineObj(long cPtr, boolean cMemoryOwn)
610  {
620    swigCMemOwn = cMemoryOwn;
630    swigCPtr = cPtr;
640  }
65  
66   /**
67    * DOCUMENT ME!
68    *
69    * @param numpoints PARAMETER
70    *
71    * @todo METHOD_DESCRIPTION
72    */
73   public void setNumpoints(int numpoints)
74   {
750    MapScriptJNI.set_lineObj_numpoints(swigCPtr, numpoints);
760  }
77  
78   /**
79    * DOCUMENT ME!
80    *
81    * @return RETURN
82    *
83    * @todo METHOD_DESCRIPTION
84    */
85   public int getNumpoints()
86   {
870    return MapScriptJNI.get_lineObj_numpoints(swigCPtr);
88   }
89  
90   /**
91    * DOCUMENT ME!
92    *
93    * @param point PARAMETER
94    *
95    * @todo METHOD_DESCRIPTION
96    */
97   public void setPoint(pointObj point)
98   {
990    MapScriptJNI.set_lineObj_point(swigCPtr, pointObj.getCPtr(point));
1000  }
101  
102   /**
103    * DOCUMENT ME!
104    *
105    * @return RETURN
106    *
107    * @todo METHOD_DESCRIPTION
108    */
109   public pointObj getPoint()
110   {
1110    return new pointObj(MapScriptJNI.get_lineObj_point(swigCPtr), false);
112   }
113  
114   /**
115    * DOCUMENT ME!
116    *
117    * @param p PARAMETER
118    *
119    * @return RETURN
120    *
121    * @todo METHOD_DESCRIPTION
122    */
123   public int add(pointObj p)
124   {
1250    return MapScriptJNI.lineObj_add(swigCPtr, pointObj.getCPtr(p));
126   }
127  
128   /**
129    * DOCUMENT ME!
130    *
131    * @todo METHOD_DESCRIPTION
132    */
133   public void delete()
134   {
1350    if ((swigCPtr != 0) && swigCMemOwn)
136     {
1370      MapScriptJNI.delete_lineObj(swigCPtr);
1380      swigCMemOwn = false;
139     }
140  
1410    swigCPtr = 0;
1420  }
143  
144   /**
145    * DOCUMENT ME!
146    *
147    * @param obj PARAMETER
148    *
149    * @return RETURN
150    *
151    * @todo METHOD_DESCRIPTION
152    */
153   public boolean equals(Object obj)
154   {
1550    boolean equal = false;
156  
1570    if (obj instanceof lineObj)
158     {
1590      equal = (((lineObj) obj).swigCPtr == this.swigCPtr);
160     }
161  
1620    return equal;
163   }
164  
165   /**
166    * DOCUMENT ME!
167    *
168    * @param i PARAMETER
169    *
170    * @return RETURN
171    *
172    * @todo METHOD_DESCRIPTION
173    */
174   public pointObj get(int i)
175   {
1760    return new pointObj(MapScriptJNI.lineObj_get(swigCPtr, i), false);
177   }
178  
179   /**
180    * DOCUMENT ME!
181    *
182    * @param in PARAMETER
183    * @param out PARAMETER
184    *
185    * @return RETURN
186    *
187    * @todo METHOD_DESCRIPTION
188    */
189   public int project(projectionObj in, projectionObj out)
190   {
1910    return MapScriptJNI.lineObj_project(swigCPtr, projectionObj.getCPtr(in),
192       projectionObj.getCPtr(out));
193   }
194  
195   /**
196    * DOCUMENT ME!
197    *
198    * @param obj PARAMETER
199    *
200    * @return RETURN
201    *
202    * @todo METHOD_DESCRIPTION
203    */
204   protected static long getCPtr(lineObj obj)
205   {
2060    return obj.swigCPtr;
207   }
208  
209   /**
210    * DOCUMENT ME!
211    *
212    * @todo METHOD_DESCRIPTION
213    */
214   protected void finalize()
215   {
2160    delete();
2170  }
218 }

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.