Ignore:
Timestamp:
12/19/11 18:45:13 (8 years ago)
Author:
aivar
Message:

UI Changes

Location:
trunk/projects/slim-plugin/src/main/java/imagej/slim/fitting
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/projects/slim-plugin/src/main/java/imagej/slim/fitting/FLIMFittedImageFactory.java

    r7830 r7839  
    2626    public IFittedImage createImage(OutputImage outputImage, int[] dimension, int components) { 
    2727        IFittedImage fittedImage = null; 
     28        String title; 
    2829        switch (outputImage) { 
    2930            case A1: 
    30                 fittedImage = new FittedImage("A1", dimension, FLIMImageFitter.A1_INDEX); 
     31                title = (1 == components) ? "A" : "A1"; 
     32                fittedImage = new FittedImage(title, dimension, FLIMImageFitter.A1_INDEX); 
    3133                break; 
    3234            case T1: 
    33                 fittedImage = new FittedImage("T1", dimension, FLIMImageFitter.T1_INDEX); 
     35                title = (1 == components) ? "T" : "T1"; 
     36                fittedImage = new FittedImage(title, dimension, FLIMImageFitter.T1_INDEX); 
    3437                break; 
    3538            case A2: 
  • trunk/projects/slim-plugin/src/main/java/imagej/slim/fitting/FLIMImageFitter.java

    r7833 r7839  
    1717 */ 
    1818public class FLIMImageFitter { 
    19     public enum OutputImage { A1, T1, A2, T2, A3, T3, H, Z, CHISQ, F1, F2, F3, f1, f2, f3 }; 
     19    public enum OutputImage { A1, T1, A2, T2, A3, T3, Z, H, CHISQ, F1, F2, F3, f1, f2, f3 }; 
    2020    public static final int A1_INDEX    = 2; 
    2121    public static final int T1_INDEX    = 3; 
     
    4545        // Show histogram tool for the last image created 
    4646        int lastIndex = images.length - 1; 
    47         HistogramTool.getInstance().setHistogramData(_fittedImages.get(lastIndex).getHistogramData()); 
     47        if (lastIndex >= 0) { 
     48            HistogramTool.getInstance().setHistogramData(_fittedImages.get(lastIndex).getHistogramData()); 
     49        } 
    4850    } 
    4951     
Note: See TracChangeset for help on using the changeset viewer.