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 markerCacheMemberObj | |
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 markerCacheMemberObj object. | |
48 | */ | |
49 | public markerCacheMemberObj() | |
50 | { | |
51 | 0 | this(MapScriptJNI.new_markerCacheMemberObj(), true); |
52 | 0 | } |
53 | ||
54 | /** | |
55 | * Creates a new markerCacheMemberObj object. | |
56 | * | |
57 | * @param cPtr PARAMETER | |
58 | * @param cMemoryOwn PARAMETER | |
59 | */ | |
60 | protected markerCacheMemberObj(long cPtr, boolean cMemoryOwn) | |
61 | 0 | { |
62 | 0 | swigCMemOwn = cMemoryOwn; |
63 | 0 | swigCPtr = cPtr; |
64 | 0 | } |
65 | ||
66 | /** | |
67 | * DOCUMENT ME! | |
68 | * | |
69 | * @return RETURN | |
70 | * | |
71 | * @todo METHOD_DESCRIPTION | |
72 | */ | |
73 | public int getId() | |
74 | { | |
75 | 0 | return MapScriptJNI.get_markerCacheMemberObj_id(swigCPtr); |
76 | } | |
77 | ||
78 | /** | |
79 | * DOCUMENT ME! | |
80 | * | |
81 | * @return RETURN | |
82 | * | |
83 | * @todo METHOD_DESCRIPTION | |
84 | */ | |
85 | public shapeObj getPoly() | |
86 | { | |
87 | 0 | return new shapeObj(MapScriptJNI.get_markerCacheMemberObj_poly(swigCPtr), |
88 | false); | |
89 | } | |
90 | ||
91 | /** | |
92 | * DOCUMENT ME! | |
93 | * | |
94 | * @todo METHOD_DESCRIPTION | |
95 | */ | |
96 | public void delete() | |
97 | { | |
98 | 0 | if ((swigCPtr != 0) && swigCMemOwn) |
99 | { | |
100 | 0 | MapScriptJNI.delete_markerCacheMemberObj(swigCPtr); |
101 | 0 | swigCMemOwn = false; |
102 | } | |
103 | ||
104 | 0 | swigCPtr = 0; |
105 | 0 | } |
106 | ||
107 | /** | |
108 | * DOCUMENT ME! | |
109 | * | |
110 | * @param obj PARAMETER | |
111 | * | |
112 | * @return RETURN | |
113 | * | |
114 | * @todo METHOD_DESCRIPTION | |
115 | */ | |
116 | public boolean equals(Object obj) | |
117 | { | |
118 | 0 | boolean equal = false; |
119 | ||
120 | 0 | if (obj instanceof markerCacheMemberObj) |
121 | { | |
122 | 0 | equal = (((markerCacheMemberObj) obj).swigCPtr == this.swigCPtr); |
123 | } | |
124 | ||
125 | 0 | return equal; |
126 | } | |
127 | ||
128 | /** | |
129 | * DOCUMENT ME! | |
130 | * | |
131 | * @param obj PARAMETER | |
132 | * | |
133 | * @return RETURN | |
134 | * | |
135 | * @todo METHOD_DESCRIPTION | |
136 | */ | |
137 | protected static long getCPtr(markerCacheMemberObj obj) | |
138 | { | |
139 | 0 | return obj.swigCPtr; |
140 | } | |
141 | ||
142 | /** | |
143 | * DOCUMENT ME! | |
144 | * | |
145 | * @todo METHOD_DESCRIPTION | |
146 | */ | |
147 | protected void finalize() | |
148 | { | |
149 | 0 | delete(); |
150 | 0 | } |
151 | } |
this report was generated by version 1.0.2 of jcoverage. |
copyright © 2003, jcoverage ltd. all rights reserved. |