Changeset 7861
- Timestamp:
- 12/30/11 16:12:34 (8 years ago)
- Location:
- trunk/projects/slim-plugin/src/main/java/imagej/slim/histogram
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/projects/slim-plugin/src/main/java/imagej/slim/histogram/HistogramTool.java
r7850 r7861 98 98 IndexColorModel colorModel = null; 99 99 // 'getDirectory("luts")' works in IJ but not during NetBeans development 100 //TODO On Linux with a link to Fiji on the desktop this startup directory is the desktop! 100 101 String startupPath = IJ.getDirectory("startup"); 101 102 String lutPath = startupPath + "luts" + File.separatorChar + LUT; … … 104 105 } 105 106 catch (IOException e) { 107 IJ.log("Problem loading LUT " + lutPath); 106 108 System.out.println("Problem loading LUT " + lutPath); 107 109 } 108 109 110 // IJ converts the FloatProcessor to 8-bits and then uses this palette 110 111 // for display. Unfortunately values less than or greater than the LUT -
trunk/projects/slim-plugin/src/main/java/imagej/slim/histogram/UIPanel.java
r7851 r7861 14 14 import javax.swing.JPanel; 15 15 import javax.swing.JTextField; 16 17 import ij.IJ; 16 18 17 19 /** … … 203 205 DoubleFormatter minFormatter = new DoubleFormatter(true, DIGITS, min); 204 206 _minTextField.setText(minFormatter.getText()); 205 _minLUT = Double.parseDouble(_minTextField.getText()); 207 try { 208 _minLUT = Double.parseDouble(_minTextField.getText()); 209 } 210 catch (NumberFormatException e) { 211 IJ.log("Error parsing min '" + minFormatter.getText() + "' " + e); 212 } 206 213 DoubleFormatter maxFormatter = new DoubleFormatter(false, DIGITS, max); 207 214 _maxTextField.setText(maxFormatter.getText()); 208 _maxLUT = Double.parseDouble(_maxTextField.getText()); 215 try { 216 _maxLUT = Double.parseDouble(_maxTextField.getText()); 217 } 218 catch (NumberFormatException e) { 219 IJ.log("Error parsing max '" + maxFormatter.getText() + "' " + e); 220 } 209 221 } 210 222 }
Note: See TracChangeset
for help on using the changeset viewer.