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

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 labelCacheObj
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 labelCacheObj object.
48    */
49   public labelCacheObj()
50   {
510    this(MapScriptJNI.new_labelCacheObj(), true);
520  }
53  
54   /**
55    * Creates a new labelCacheObj object.
56    *
57    * @param cPtr PARAMETER
58    * @param cMemoryOwn PARAMETER
59    */
60   protected labelCacheObj(long cPtr, boolean cMemoryOwn)
610  {
620    swigCMemOwn = cMemoryOwn;
630    swigCPtr = cPtr;
640  }
65  
66   /**
67    * DOCUMENT ME!
68    *
69    * @return RETURN
70    *
71    * @todo METHOD_DESCRIPTION
72    */
73   public int getCachesize()
74   {
750    return MapScriptJNI.get_labelCacheObj_cachesize(swigCPtr);
76   }
77  
78   /**
79    * DOCUMENT ME!
80    *
81    * @return RETURN
82    *
83    * @todo METHOD_DESCRIPTION
84    */
85   public labelCacheMemberObj getLabels()
86   {
870    return new labelCacheMemberObj(MapScriptJNI.get_labelCacheObj_labels(
88         swigCPtr), false);
89   }
90  
91   /**
92    * DOCUMENT ME!
93    *
94    * @return RETURN
95    *
96    * @todo METHOD_DESCRIPTION
97    */
98   public int getMarkercachesize()
99   {
1000    return MapScriptJNI.get_labelCacheObj_markercachesize(swigCPtr);
101   }
102  
103   /**
104    * DOCUMENT ME!
105    *
106    * @return RETURN
107    *
108    * @todo METHOD_DESCRIPTION
109    */
110   public markerCacheMemberObj getMarkers()
111   {
1120    return new markerCacheMemberObj(MapScriptJNI.get_labelCacheObj_markers(
113         swigCPtr), false);
114   }
115  
116   /**
117    * DOCUMENT ME!
118    *
119    * @return RETURN
120    *
121    * @todo METHOD_DESCRIPTION
122    */
123   public int getNumlabels()
124   {
1250    return MapScriptJNI.get_labelCacheObj_numlabels(swigCPtr);
126   }
127  
128   /**
129    * DOCUMENT ME!
130    *
131    * @return RETURN
132    *
133    * @todo METHOD_DESCRIPTION
134    */
135   public int getNummarkers()
136   {
1370    return MapScriptJNI.get_labelCacheObj_nummarkers(swigCPtr);
138   }
139  
140   /**
141    * DOCUMENT ME!
142    *
143    * @todo METHOD_DESCRIPTION
144    */
145   public void delete()
146   {
1470    if ((swigCPtr != 0) && swigCMemOwn)
148     {
1490      MapScriptJNI.delete_labelCacheObj(swigCPtr);
1500      swigCMemOwn = false;
151     }
152  
1530    swigCPtr = 0;
1540  }
155  
156   /**
157    * DOCUMENT ME!
158    *
159    * @param obj PARAMETER
160    *
161    * @return RETURN
162    *
163    * @todo METHOD_DESCRIPTION
164    */
165   public boolean equals(Object obj)
166   {
1670    boolean equal = false;
168  
1690    if (obj instanceof labelCacheObj)
170     {
1710      equal = (((labelCacheObj) obj).swigCPtr == this.swigCPtr);
172     }
173  
1740    return equal;
175   }
176  
177   /**
178    * DOCUMENT ME!
179    *
180    * @todo METHOD_DESCRIPTION
181    */
182   public void freeCache()
183   {
1840    MapScriptJNI.labelCacheObj_freeCache(swigCPtr);
1850  }
186  
187   /**
188    * DOCUMENT ME!
189    *
190    * @param obj PARAMETER
191    *
192    * @return RETURN
193    *
194    * @todo METHOD_DESCRIPTION
195    */
196   protected static long getCPtr(labelCacheObj obj)
197   {
1980    return obj.swigCPtr;
199   }
200  
201   /**
202    * DOCUMENT ME!
203    *
204    * @todo METHOD_DESCRIPTION
205    */
206   protected void finalize()
207   {
2080    delete();
2090  }
210 }

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.