259 |
259 |
private JComboBox jCmbMapUnits;
|
260 |
260 |
private JComboBox jCmbDistanceUnits;
|
261 |
261 |
private JComboBox jCmbDistanceArea;
|
262 |
|
|
|
262 |
|
263 |
263 |
CRSSelectPanel jPanelProj = null;
|
264 |
|
|
265 |
|
|
|
264 |
|
|
265 |
|
266 |
266 |
/*
|
267 |
267 |
* Locator's background color, for when we let it be possible
|
268 |
268 |
* private ColorChooserPanel jccDefaultMapOverViewBackColor;
|
... | ... | |
319 |
319 |
});
|
320 |
320 |
|
321 |
321 |
addComponent(PluginServices.getText(this, "default_projection") + ":", lblDefaultProjection );
|
322 |
|
|
|
322 |
|
323 |
323 |
IProjection proj = CRSFactory.getCRS("EPSG:23030");
|
324 |
324 |
if (PluginServices.getMainFrame() != null) {
|
325 |
325 |
proj = AddLayerDialog.getLastProjection();
|
... | ... | |
336 |
336 |
}
|
337 |
337 |
}
|
338 |
338 |
});
|
339 |
|
|
340 |
|
|
|
339 |
|
|
340 |
|
341 |
341 |
JPanel aux = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 0));
|
342 |
342 |
aux.add(btnChangeProjection);
|
343 |
343 |
addComponent("", aux);
|
... | ... | |
461 |
461 |
String[] distanceNames=MapContext.getDistanceNames();
|
462 |
462 |
// Map units
|
463 |
463 |
if (Project.getDefaultMapUnits()<=distanceNames.length && distanceNames.length != jCmbMapUnits.getItemCount()){
|
|
464 |
((DefaultComboBoxModel)jCmbMapUnits.getModel()).removeAllElements();
|
464 |
465 |
// default map units
|
465 |
466 |
for (int i = 0; i < distanceNames.length; i++) {
|
466 |
467 |
((DefaultComboBoxModel)jCmbMapUnits.getModel()).addElement(PluginServices.getText(this,distanceNames[i]));
|
... | ... | |
470 |
471 |
|
471 |
472 |
// Distance units
|
472 |
473 |
if (Project.getDefaultDistanceUnits()<=distanceNames.length&& distanceNames.length != jCmbDistanceUnits.getItemCount()){
|
|
474 |
((DefaultComboBoxModel)jCmbDistanceUnits.getModel()).removeAllElements();
|
473 |
475 |
// default distance units
|
474 |
476 |
for (int i = 0; i < distanceNames.length; i++) {
|
475 |
477 |
((DefaultComboBoxModel)jCmbDistanceUnits.getModel()).addElement(PluginServices.getText(this,distanceNames[i]));
|
... | ... | |
480 |
482 |
|
481 |
483 |
// Distance area
|
482 |
484 |
if (Project.getDefaultDistanceArea()<=names.length && names.length != jCmbDistanceArea.getItemCount()){
|
|
485 |
((DefaultComboBoxModel)jCmbDistanceArea.getModel()).removeAllElements();
|
483 |
486 |
for (int i = 0; i < names.length; i++) {
|
484 |
|
|
485 |
487 |
((DefaultComboBoxModel)jCmbDistanceArea.getModel()).addElement(PluginServices.getText(this,names[i])+MapContext.getOfLinear(i));
|
486 |
488 |
}
|
487 |
489 |
jCmbDistanceArea.setSelectedIndex(Project.getDefaultDistanceArea());
|