Changeset 7217 for branches


Ignore:
Timestamp:
11/16/10 20:50:20 (10 years ago)
Author:
aivar
Message:

Fixed bug. Now each channel can have it's own unique ranges for colorization. (This should be a UI option). More comments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/maven/projects/slim-plugin/src/main/java/loci/slim/analysis/plugins/Display.java

    r7216 r7217  
    9696 
    9797    private Color m_bar[]; 
    98     String m_minText; 
    99     String m_maxText; 
    10098 
    10199    /** 
    102100     * Enum that contains the possible formulas for the values to be displayed. 
     101     * This table is very specifically tied to the order of parameter indices. 
    103102     */ 
    104103    private static enum Formula { 
     
    107106        T2_FORMULA(T2, 4), 
    108107        T3_FORMULA(T3, 6), 
    109         T1_T2_FORMULA(T1_T2, 2, 4), // T1/T2 
     108        T1_T2_FORMULA(T1_T2, 2, 4), // specifies T1/T2, parameter index 2 divided by parameter index 4 
    110109        T2_T1_FORMULA(T2_T1 ,4, 2), 
    111110        T1_T3_FORMULA(T1_T3, 2, 6), 
     
    186185     */ 
    187186    public void analyze(Image<DoubleType> image, FitRegion region, FitFunction function) { 
    188         boolean combineMinMax = true; //false; //TODO needs to be set from UI. 
     187        boolean combineMinMax = false; //TODO needs to be set from UI. 
    189188 
    190189        // is this plugin appropriate for current data? 
     
    400399        private double m_max = 0.0; 
    401400        private double m_min = Double.MAX_VALUE; 
     401        private String m_minText; 
     402        private String m_maxText; 
    402403 
    403404        /** 
     
    509510         */ 
    510511        private void display(ColorProcessor processor, IColorize colorize) { 
    511             // set up color bar one time 
     512            // set up color bar in outer class one time 
    512513            if (null == m_bar) { 
    513                 m_bar = colorize.bar(m_width); //TODO each cell makes it's own bar; that doesn't make sense 
     514                m_bar = colorize.bar(m_width); 
    514515            } 
    515516 
Note: See TracChangeset for help on using the changeset viewer.