svn-gvsig-desktop / tags / CatalogYNomenclator_v1_1_1005_Build_0 / applications / appCatalogYNomenclatorClient / src / es / gva / cit / catalogClient / querys / Coordinates.java @ 12766
History | View | Annotate | Download (3.53 KB)
1 |
|
---|---|
2 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
3 |
*
|
4 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
|
5 |
*
|
6 |
* This program is free software; you can redistribute it and/or
|
7 |
* modify it under the terms of the GNU General Public License
|
8 |
* as published by the Free Software Foundation; either version 2
|
9 |
* of the License, or (at your option) any later version.
|
10 |
*
|
11 |
* This program is distributed in the hope that it will be useful,
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
* GNU General Public License for more details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License
|
17 |
* along with this program; if not, write to the Free Software
|
18 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
19 |
*
|
20 |
* For more information, contact:
|
21 |
*
|
22 |
* Generalitat Valenciana
|
23 |
* Conselleria d'Infraestructures i Transport
|
24 |
* Av. Blasco Ib??ez, 50
|
25 |
* 46010 VALENCIA
|
26 |
* SPAIN
|
27 |
*
|
28 |
* +34 963862235
|
29 |
* gvsig@gva.es
|
30 |
* www.gvsig.gva.es
|
31 |
*
|
32 |
* or
|
33 |
*
|
34 |
* IVER T.I. S.A
|
35 |
* Salamanca 50
|
36 |
* 46005 Valencia
|
37 |
* Spain
|
38 |
*
|
39 |
* +34 963163400
|
40 |
* dac@iver.es
|
41 |
*/
|
42 |
package es.gva.cit.catalogClient.querys; |
43 |
|
44 |
/**
|
45 |
* This class represents a symple double pair of coordinates
|
46 |
*
|
47 |
*
|
48 |
* @author Jorge Piera Llodra (piera_jor@gva.es)
|
49 |
*/
|
50 |
public class Coordinates { |
51 |
|
52 |
/**
|
53 |
*
|
54 |
*
|
55 |
*/
|
56 |
public String ulx; |
57 |
|
58 |
/**
|
59 |
*
|
60 |
*
|
61 |
*/
|
62 |
public String uly; |
63 |
|
64 |
/**
|
65 |
*
|
66 |
*
|
67 |
*/
|
68 |
public String brx; |
69 |
|
70 |
/**
|
71 |
*
|
72 |
*
|
73 |
*/
|
74 |
public String bry; |
75 |
|
76 |
/**
|
77 |
*
|
78 |
*
|
79 |
*
|
80 |
* @param ulx
|
81 |
* @param uly
|
82 |
* @param brx
|
83 |
* @param bry
|
84 |
*/
|
85 |
public Coordinates(String ulx, String uly, String brx, String bry) { |
86 |
this.ulx = ulx;
|
87 |
this.uly = uly;
|
88 |
this.brx = brx;
|
89 |
this.bry = bry;
|
90 |
} |
91 |
|
92 |
/**
|
93 |
*
|
94 |
*
|
95 |
*
|
96 |
* @param ulx
|
97 |
* @param uly
|
98 |
* @param brx
|
99 |
* @param bry
|
100 |
*/
|
101 |
public Coordinates(double ulx, double uly, double brx, double bry) { |
102 |
this.ulx = String.valueOf(ulx); |
103 |
this.uly = String.valueOf(uly); |
104 |
this.brx = String.valueOf(brx); |
105 |
this.bry = String.valueOf(bry); |
106 |
} |
107 |
|
108 |
/**
|
109 |
*
|
110 |
*
|
111 |
*
|
112 |
* @return Returns the brx.
|
113 |
*/
|
114 |
public String getBrx() { |
115 |
return brx;
|
116 |
} |
117 |
|
118 |
/**
|
119 |
*
|
120 |
*
|
121 |
*
|
122 |
* @return
|
123 |
*/
|
124 |
public double getDoubleBrx() { |
125 |
return Double.valueOf(brx).doubleValue(); |
126 |
} |
127 |
|
128 |
/**
|
129 |
*
|
130 |
*
|
131 |
*
|
132 |
* @param brx The brx to set.
|
133 |
*/
|
134 |
public void setBrx(String brx) { |
135 |
this.brx = brx;
|
136 |
} |
137 |
|
138 |
/**
|
139 |
*
|
140 |
*
|
141 |
*
|
142 |
* @return Returns the bry.
|
143 |
*/
|
144 |
public String getBry() { |
145 |
return bry;
|
146 |
} |
147 |
|
148 |
/**
|
149 |
*
|
150 |
*
|
151 |
*
|
152 |
* @return
|
153 |
*/
|
154 |
public double getDoubleBry() { |
155 |
return Double.valueOf(bry).doubleValue(); |
156 |
} |
157 |
|
158 |
/**
|
159 |
*
|
160 |
*
|
161 |
*
|
162 |
* @param bry The bry to set.
|
163 |
*/
|
164 |
public void setBry(String bry) { |
165 |
this.bry = bry;
|
166 |
} |
167 |
|
168 |
/**
|
169 |
*
|
170 |
*
|
171 |
*
|
172 |
* @return Returns the ulx.
|
173 |
*/
|
174 |
public String getUlx() { |
175 |
return ulx;
|
176 |
} |
177 |
|
178 |
/**
|
179 |
*
|
180 |
*
|
181 |
*
|
182 |
* @return
|
183 |
*/
|
184 |
public double getDoubleUlx() { |
185 |
return Double.valueOf(ulx).doubleValue(); |
186 |
} |
187 |
|
188 |
/**
|
189 |
*
|
190 |
*
|
191 |
*
|
192 |
* @param ulx The ulx to set.
|
193 |
*/
|
194 |
public void setUlx(String ulx) { |
195 |
this.ulx = ulx;
|
196 |
} |
197 |
|
198 |
/**
|
199 |
*
|
200 |
*
|
201 |
*
|
202 |
* @return Returns the uly.
|
203 |
*/
|
204 |
public String getUly() { |
205 |
return uly;
|
206 |
} |
207 |
|
208 |
/**
|
209 |
*
|
210 |
*
|
211 |
*
|
212 |
* @return
|
213 |
*/
|
214 |
public double getDoubleUly() { |
215 |
return Double.valueOf(uly).doubleValue(); |
216 |
} |
217 |
|
218 |
/**
|
219 |
*
|
220 |
*
|
221 |
*
|
222 |
* @param uly The uly to set.
|
223 |
*/
|
224 |
public void setUly(String uly) { |
225 |
this.uly = uly;
|
226 |
} |
227 |
} |