Revision 7799
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/preferencespage/ViewPage.java | ||
---|---|---|
43 | 43 |
* |
44 | 44 |
* $Id$ |
45 | 45 |
* $Log$ |
46 |
* Revision 1.17 2006-10-03 09:19:12 jaume |
|
46 |
* Revision 1.18 2006-10-03 09:52:38 jaume |
|
47 |
* restores to meters |
|
48 |
* |
|
49 |
* Revision 1.17 2006/10/03 09:19:12 jaume |
|
47 | 50 |
* *** empty log message *** |
48 | 51 |
* |
49 | 52 |
* Revision 1.16 2006/10/03 07:26:08 jaume |
... | ... | |
175 | 178 |
* <b><b> |
176 | 179 |
* Here the user can establish what settings wants to use by default regarding to |
177 | 180 |
* the document View. |
178 |
*
|
|
179 |
*
|
|
181 |
* |
|
182 |
* |
|
180 | 183 |
* @author jaume dominguez faus - jaume.dominguez@iver.es |
181 | 184 |
*/ |
182 | 185 |
public class ViewPage extends AbstractPreferencePage { |
183 |
private static int iUnits; |
|
184 |
{ |
|
185 |
String[] unitNames = Attributes.NAMES; |
|
186 |
for (int i = 0; i < unitNames.length; i++) { |
|
187 |
if (unitNames[i].equals(PluginServices.getText(this, "Metros"))) { |
|
188 |
iUnits = i; |
|
189 |
break; |
|
190 |
} |
|
191 |
} |
|
192 |
} |
|
186 |
|
|
193 | 187 |
private static final String DEFAULT_PROJECTION_KEY_NAME = "DefaultProjection"; |
194 | 188 |
private static final String FACTORY_DEFAULT_PROJECTION = "EPSG:23030"; |
195 | 189 |
private static final String ZOOM_IN_FACTOR_KEY_NAME = "ZoomInFactor"; |
... | ... | |
212 | 206 |
* Locator's background color, for when we let it be possible |
213 | 207 |
* private static final Color FACTORY_DEFAULT_MAP_OVERVIEW_BACK_COLOR = Color.WHITE; |
214 | 208 |
*/ |
215 |
private static final int FACTORY_DEFAULT_MAP_UNITS = iUnits;
|
|
216 |
private static final int FACTORY_DEFAULT_DISTANCE_UNITS = iUnits;
|
|
209 |
private static int FACTORY_DEFAULT_MAP_UNITS;
|
|
210 |
private static int FACTORY_DEFAULT_DISTANCE_UNITS;
|
|
217 | 211 |
|
218 | 212 |
private JTextField txtZoomInFactor; |
219 | 213 |
private JTextField txtZoomOutFactor; |
... | ... | |
244 | 238 |
|
245 | 239 |
} |
246 | 240 |
} |
241 |
|
|
242 |
String[] unitNames = Attributes.NAMES; |
|
243 |
for (int i = 0; i < unitNames.length; i++) { |
|
244 |
if (unitNames[i].equals(PluginServices.getText(this, "Metros"))) { |
|
245 |
FACTORY_DEFAULT_DISTANCE_UNITS = i; |
|
246 |
FACTORY_DEFAULT_MAP_UNITS = i; |
|
247 |
break; |
|
248 |
} |
|
249 |
} |
|
250 |
|
|
247 | 251 |
} |
248 | 252 |
|
253 |
/** |
|
254 |
* Creates a new panel containing View preferences settings. |
|
255 |
* |
|
256 |
*/ |
|
249 | 257 |
public ViewPage() { |
250 | 258 |
super(); |
251 | 259 |
id = this.getClass().getName(); |
Also available in: Unified diff