Changeset 7597 for trunk/projects
- Timestamp:
- 01/27/11 14:50:08 (9 years ago)
- Location:
- trunk/projects/slim-plugin/src/main/java/loci/slim
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/projects/slim-plugin/src/main/java/loci/slim/SLIMProcessor.java
r7398 r7597 1032 1032 double lifetime = data[i].getParams()[1]; 1033 1033 1034 //TODO quick fix 1035 if (lifetime < 0.0) { 1036 System.out.println("negative lifetime " + lifetime + " at " + pixel.getX() + " " + pixel.getY()); 1037 return; 1038 } 1039 1034 1040 //TODO debugging: 1035 1041 //if (lifetime > 2 * m_param[1]) { -
trunk/projects/slim-plugin/src/main/java/loci/slim/analysis/plugins/Display.java
r7297 r7597 451 451 452 452 private Converter(boolean min, double value) { 453 MathContext context = new MathContext(2, min ? RoundingMode.FLOOR : RoundingMode.CEILING); 454 BigDecimal bigDecimalValue = BigDecimal.valueOf(value).round(context); 455 m_value = bigDecimalValue.doubleValue(); 456 m_text = bigDecimalValue.toEngineeringString(); 453 try { 454 MathContext context = new MathContext(2, min ? RoundingMode.FLOOR : RoundingMode.CEILING); 455 BigDecimal bigDecimalValue = BigDecimal.valueOf(value).round(context); 456 m_value = bigDecimalValue.doubleValue(); 457 m_text = bigDecimalValue.toEngineeringString(); 458 } 459 catch (NumberFormatException e) { 460 System.out.println("NumberFormatException " + e.getMessage()); 461 m_value = 0.0; 462 m_text = "0.0"; 463 } 457 464 } 458 465 -
trunk/projects/slim-plugin/src/main/java/loci/slim/colorizer/DataColorizerUI.java
r7190 r7597 70 70 71 71 m_frame = new JFrame("Colorize"); 72 m_frame.setDefaultCloseOperation(m_frame.EXIT_ON_CLOSE); 72 //TODO closes the entire plugin: 73 //m_frame.setDefaultCloseOperation(m_frame.EXIT_ON_CLOSE); 73 74 m_frame.setResizable(false); 74 75 m_frame.getContentPane().add(m_histogram, BorderLayout.NORTH);
Note: See TracChangeset
for help on using the changeset viewer.