Revision 13777 trunk/extensions/extRasterTools-SE/src/org/gvsig/rastertools/colortable/panels/TabInterpolated.java
TabInterpolated.java | ||
---|---|---|
340 | 340 |
double max2 = max; |
341 | 341 |
|
342 | 342 |
if (getJCheckBoxLimits().isSelected()) { |
343 |
min2 = Double.parseDouble(getJTextFieldMinimum().getText()); |
|
344 |
max2 = Double.parseDouble(getJTextFieldMaximum().getText()); |
|
343 |
try { |
|
344 |
min2 = Double.parseDouble(getJTextFieldMinimum().getText()); |
|
345 |
} catch (NumberFormatException exception) { |
|
346 |
getJTextFieldMinimum().setText(Double.toString(min)); |
|
347 |
} |
|
348 |
try { |
|
349 |
max2 = Double.parseDouble(getJTextFieldMaximum().getText()); |
|
350 |
} catch (NumberFormatException exception) { |
|
351 |
getJTextFieldMaximum().setText(Double.toString(max)); |
|
352 |
} |
|
345 | 353 |
} |
354 |
|
|
355 |
if (min2 > max2) { |
|
356 |
double aux = min2; |
|
357 |
min2 = max2; |
|
358 |
max2 = aux; |
|
359 |
} |
|
346 | 360 |
|
347 |
|
|
348 | 361 |
ArrayList arrayList = new ArrayList(); |
349 | 362 |
ArrayList items = getColorSliderEdition().getItemsShowed(); |
350 | 363 |
|
... | ... | |
417 | 430 |
refreshItems(); |
418 | 431 |
} |
419 | 432 |
|
420 |
/* |
|
421 |
* (non-Javadoc) |
|
422 |
* @see org.gvsig.gui.beans.colorslideredition.ColorSliderListener#actionValueDragged(org.gvsig.gui.beans.colorslideredition.ColorSliderEvent) |
|
423 |
*/ |
|
424 |
public void actionValueDragged(ColorSliderEvent e) { |
|
425 |
// refreshItems(); |
|
426 |
} |
|
427 |
|
|
428 | 433 |
public void initialState() { |
429 | 434 |
getColorSliderEdition().repaint(); |
430 | 435 |
setControlsEnabled(false); |
... | ... | |
504 | 509 |
callValueColorChanged(); |
505 | 510 |
refreshItems(); |
506 | 511 |
} |
507 |
|
|
508 |
public void focusGained(FocusEvent e) {} |
|
509 | 512 |
|
510 |
public void keyPressed(KeyEvent e) { |
|
511 |
} |
|
512 |
|
|
513 |
/* |
|
514 |
* (non-Javadoc) |
|
515 |
* @see java.awt.event.KeyListener#keyReleased(java.awt.event.KeyEvent) |
|
516 |
*/ |
|
513 | 517 |
public void keyReleased(KeyEvent e) { |
514 | 518 |
if (e.getSource() == getJTextClassName()) { |
515 | 519 |
callValueColorChanged(); |
... | ... | |
517 | 521 |
} |
518 | 522 |
} |
519 | 523 |
|
520 |
public void keyTyped(KeyEvent e) {
|
|
521 |
// TODO Auto-generated method stub
|
|
522 |
|
|
523 |
}
|
|
524 |
public void actionValueDragged(ColorSliderEvent e) {}
|
|
525 |
public void focusGained(FocusEvent e) {}
|
|
526 |
public void keyPressed(KeyEvent e) {} |
|
527 |
public void keyTyped(KeyEvent e) {}
|
|
524 | 528 |
} |
Also available in: Unified diff