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 projectionObj | |
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 projectionObj object. | |
48 | * | |
49 | * @param string PARAMETER | |
50 | */ | |
51 | public projectionObj(String string) | |
52 | { | |
53 | 0 | this(MapScriptJNI.new_projectionObj(string), true); |
54 | 0 | } |
55 | ||
56 | /** | |
57 | * Creates a new projectionObj object. | |
58 | * | |
59 | * @param cPtr PARAMETER | |
60 | * @param cMemoryOwn PARAMETER | |
61 | */ | |
62 | protected projectionObj(long cPtr, boolean cMemoryOwn) | |
63 | 0 | { |
64 | 0 | swigCMemOwn = cMemoryOwn; |
65 | 0 | swigCPtr = cPtr; |
66 | 0 | } |
67 | ||
68 | /** | |
69 | * Creates a new projectionObj object. | |
70 | */ | |
71 | protected projectionObj() | |
72 | { | |
73 | 0 | this(0, false); |
74 | 0 | } |
75 | ||
76 | /** | |
77 | * DOCUMENT ME! | |
78 | * | |
79 | * @param args PARAMETER | |
80 | * | |
81 | * @todo METHOD_DESCRIPTION | |
82 | */ | |
83 | public void setArgs(SWIGTYPE_p_p_char args) | |
84 | { | |
85 | 0 | MapScriptJNI.set_projectionObj_args(swigCPtr, |
86 | SWIGTYPE_p_p_char.getCPtr(args)); | |
87 | 0 | } |
88 | ||
89 | /** | |
90 | * DOCUMENT ME! | |
91 | * | |
92 | * @return RETURN | |
93 | * | |
94 | * @todo METHOD_DESCRIPTION | |
95 | */ | |
96 | public SWIGTYPE_p_p_char getArgs() | |
97 | { | |
98 | 0 | return new SWIGTYPE_p_p_char(MapScriptJNI.get_projectionObj_args(swigCPtr), |
99 | false); | |
100 | } | |
101 | ||
102 | /** | |
103 | * DOCUMENT ME! | |
104 | * | |
105 | * @param numargs PARAMETER | |
106 | * | |
107 | * @todo METHOD_DESCRIPTION | |
108 | */ | |
109 | public void setNumargs(int numargs) | |
110 | { | |
111 | 0 | MapScriptJNI.set_projectionObj_numargs(swigCPtr, numargs); |
112 | 0 | } |
113 | ||
114 | /** | |
115 | * DOCUMENT ME! | |
116 | * | |
117 | * @return RETURN | |
118 | * | |
119 | * @todo METHOD_DESCRIPTION | |
120 | */ | |
121 | public int getNumargs() | |
122 | { | |
123 | 0 | return MapScriptJNI.get_projectionObj_numargs(swigCPtr); |
124 | } | |
125 | ||
126 | /** | |
127 | * DOCUMENT ME! | |
128 | * | |
129 | * @param proj PARAMETER | |
130 | * | |
131 | * @todo METHOD_DESCRIPTION | |
132 | */ | |
133 | public void setProj(SWIGTYPE_p_void proj) | |
134 | { | |
135 | 0 | MapScriptJNI.set_projectionObj_proj(swigCPtr, SWIGTYPE_p_void.getCPtr(proj)); |
136 | 0 | } |
137 | ||
138 | /** | |
139 | * DOCUMENT ME! | |
140 | * | |
141 | * @return RETURN | |
142 | * | |
143 | * @todo METHOD_DESCRIPTION | |
144 | */ | |
145 | public SWIGTYPE_p_void getProj() | |
146 | { | |
147 | 0 | return new SWIGTYPE_p_void(MapScriptJNI.get_projectionObj_proj(swigCPtr), |
148 | false); | |
149 | } | |
150 | ||
151 | /** | |
152 | * DOCUMENT ME! | |
153 | * | |
154 | * @todo METHOD_DESCRIPTION | |
155 | */ | |
156 | public void delete() | |
157 | { | |
158 | 0 | if ((swigCPtr != 0) && swigCMemOwn) |
159 | { | |
160 | 0 | MapScriptJNI.delete_projectionObj(swigCPtr); |
161 | 0 | swigCMemOwn = false; |
162 | } | |
163 | ||
164 | 0 | swigCPtr = 0; |
165 | 0 | } |
166 | ||
167 | /** | |
168 | * DOCUMENT ME! | |
169 | * | |
170 | * @param obj PARAMETER | |
171 | * | |
172 | * @return RETURN | |
173 | * | |
174 | * @todo METHOD_DESCRIPTION | |
175 | */ | |
176 | public boolean equals(Object obj) | |
177 | { | |
178 | 0 | boolean equal = false; |
179 | ||
180 | 0 | if (obj instanceof projectionObj) |
181 | { | |
182 | 0 | equal = (((projectionObj) obj).swigCPtr == this.swigCPtr); |
183 | } | |
184 | ||
185 | 0 | return equal; |
186 | } | |
187 | ||
188 | /** | |
189 | * DOCUMENT ME! | |
190 | * | |
191 | * @param obj PARAMETER | |
192 | * | |
193 | * @return RETURN | |
194 | * | |
195 | * @todo METHOD_DESCRIPTION | |
196 | */ | |
197 | protected static long getCPtr(projectionObj obj) | |
198 | { | |
199 | 0 | return obj.swigCPtr; |
200 | } | |
201 | ||
202 | /** | |
203 | * DOCUMENT ME! | |
204 | * | |
205 | * @todo METHOD_DESCRIPTION | |
206 | */ | |
207 | protected void finalize() | |
208 | { | |
209 | 0 | delete(); |
210 | 0 | } |
211 | } |
this report was generated by version 1.0.2 of jcoverage. |
copyright © 2003, jcoverage ltd. all rights reserved. |