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 queryMapObj | |
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 queryMapObj object. | |
48 | */ | |
49 | public queryMapObj() | |
50 | { | |
51 | 0 | this(MapScriptJNI.new_queryMapObj(), true); |
52 | 0 | } |
53 | ||
54 | /** | |
55 | * Creates a new queryMapObj object. | |
56 | * | |
57 | * @param cPtr PARAMETER | |
58 | * @param cMemoryOwn PARAMETER | |
59 | */ | |
60 | protected queryMapObj(long cPtr, boolean cMemoryOwn) | |
61 | 0 | { |
62 | 0 | swigCMemOwn = cMemoryOwn; |
63 | 0 | swigCPtr = cPtr; |
64 | 0 | } |
65 | ||
66 | /** | |
67 | * DOCUMENT ME! | |
68 | * | |
69 | * @param color PARAMETER | |
70 | * | |
71 | * @todo METHOD_DESCRIPTION | |
72 | */ | |
73 | public void setColor(int color) | |
74 | { | |
75 | 0 | MapScriptJNI.set_queryMapObj_color(swigCPtr, color); |
76 | 0 | } |
77 | ||
78 | /** | |
79 | * DOCUMENT ME! | |
80 | * | |
81 | * @return RETURN | |
82 | * | |
83 | * @todo METHOD_DESCRIPTION | |
84 | */ | |
85 | public int getColor() | |
86 | { | |
87 | 0 | return MapScriptJNI.get_queryMapObj_color(swigCPtr); |
88 | } | |
89 | ||
90 | /** | |
91 | * DOCUMENT ME! | |
92 | * | |
93 | * @param height PARAMETER | |
94 | * | |
95 | * @todo METHOD_DESCRIPTION | |
96 | */ | |
97 | public void setHeight(int height) | |
98 | { | |
99 | 0 | MapScriptJNI.set_queryMapObj_height(swigCPtr, height); |
100 | 0 | } |
101 | ||
102 | /** | |
103 | * DOCUMENT ME! | |
104 | * | |
105 | * @return RETURN | |
106 | * | |
107 | * @todo METHOD_DESCRIPTION | |
108 | */ | |
109 | public int getHeight() | |
110 | { | |
111 | 0 | return MapScriptJNI.get_queryMapObj_height(swigCPtr); |
112 | } | |
113 | ||
114 | /** | |
115 | * DOCUMENT ME! | |
116 | * | |
117 | * @param status PARAMETER | |
118 | * | |
119 | * @todo METHOD_DESCRIPTION | |
120 | */ | |
121 | public void setStatus(int status) | |
122 | { | |
123 | 0 | MapScriptJNI.set_queryMapObj_status(swigCPtr, status); |
124 | 0 | } |
125 | ||
126 | /** | |
127 | * DOCUMENT ME! | |
128 | * | |
129 | * @return RETURN | |
130 | * | |
131 | * @todo METHOD_DESCRIPTION | |
132 | */ | |
133 | public int getStatus() | |
134 | { | |
135 | 0 | return MapScriptJNI.get_queryMapObj_status(swigCPtr); |
136 | } | |
137 | ||
138 | /** | |
139 | * DOCUMENT ME! | |
140 | * | |
141 | * @param style PARAMETER | |
142 | * | |
143 | * @todo METHOD_DESCRIPTION | |
144 | */ | |
145 | public void setStyle(int style) | |
146 | { | |
147 | 0 | MapScriptJNI.set_queryMapObj_style(swigCPtr, style); |
148 | 0 | } |
149 | ||
150 | /** | |
151 | * DOCUMENT ME! | |
152 | * | |
153 | * @return RETURN | |
154 | * | |
155 | * @todo METHOD_DESCRIPTION | |
156 | */ | |
157 | public int getStyle() | |
158 | { | |
159 | 0 | return MapScriptJNI.get_queryMapObj_style(swigCPtr); |
160 | } | |
161 | ||
162 | /** | |
163 | * DOCUMENT ME! | |
164 | * | |
165 | * @param width PARAMETER | |
166 | * | |
167 | * @todo METHOD_DESCRIPTION | |
168 | */ | |
169 | public void setWidth(int width) | |
170 | { | |
171 | 0 | MapScriptJNI.set_queryMapObj_width(swigCPtr, width); |
172 | 0 | } |
173 | ||
174 | /** | |
175 | * DOCUMENT ME! | |
176 | * | |
177 | * @return RETURN | |
178 | * | |
179 | * @todo METHOD_DESCRIPTION | |
180 | */ | |
181 | public int getWidth() | |
182 | { | |
183 | 0 | return MapScriptJNI.get_queryMapObj_width(swigCPtr); |
184 | } | |
185 | ||
186 | /** | |
187 | * DOCUMENT ME! | |
188 | * | |
189 | * @todo METHOD_DESCRIPTION | |
190 | */ | |
191 | public void delete() | |
192 | { | |
193 | 0 | if ((swigCPtr != 0) && swigCMemOwn) |
194 | { | |
195 | 0 | MapScriptJNI.delete_queryMapObj(swigCPtr); |
196 | 0 | swigCMemOwn = false; |
197 | } | |
198 | ||
199 | 0 | swigCPtr = 0; |
200 | 0 | } |
201 | ||
202 | /** | |
203 | * DOCUMENT ME! | |
204 | * | |
205 | * @param obj PARAMETER | |
206 | * | |
207 | * @return RETURN | |
208 | * | |
209 | * @todo METHOD_DESCRIPTION | |
210 | */ | |
211 | public boolean equals(Object obj) | |
212 | { | |
213 | 0 | boolean equal = false; |
214 | ||
215 | 0 | if (obj instanceof queryMapObj) |
216 | { | |
217 | 0 | equal = (((queryMapObj) obj).swigCPtr == this.swigCPtr); |
218 | } | |
219 | ||
220 | 0 | return equal; |
221 | } | |
222 | ||
223 | /** | |
224 | * DOCUMENT ME! | |
225 | * | |
226 | * @param obj PARAMETER | |
227 | * | |
228 | * @return RETURN | |
229 | * | |
230 | * @todo METHOD_DESCRIPTION | |
231 | */ | |
232 | protected static long getCPtr(queryMapObj obj) | |
233 | { | |
234 | 0 | return obj.swigCPtr; |
235 | } | |
236 | ||
237 | /** | |
238 | * DOCUMENT ME! | |
239 | * | |
240 | * @todo METHOD_DESCRIPTION | |
241 | */ | |
242 | protected void finalize() | |
243 | { | |
244 | 0 | delete(); |
245 | 0 | } |
246 | } |
this report was generated by version 1.0.2 of jcoverage. |
copyright © 2003, jcoverage ltd. all rights reserved. |