Changeset 1894


Ignore:
Timestamp:
12/04/06 18:26:41 (13 years ago)
Author:
chris
Message:

browser:
1) fixed transmitted checkbox bug when it was enabled
when sizeC was only 1.
2) tried to make CacheManager work with the new system
of switching axes with FileStitcher, but so far
unsuccessfully. Really I would have designed the sucker
differently in the first place, but I'm sure I can fix
this with time.

Location:
trunk/loci/plugins/browser
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/plugins/browser/CacheIndicator.java

    r1893 r1894  
    3131 
    3232  private static final int COMPONENT_HEIGHT = 5; 
     33  private static final boolean DEBUG = false; 
    3334 
    3435  protected int [] cache,loadList; 
     
    7475      double dPerPixel = ratio * integers;   
    7576       
    76 //      System.out.println("Ratio: " + ratio); 
     77      if(DEBUG) System.out.println("Ratio: " + ratio); 
    7778      while(dPerPixel < 1) { 
    7879        integers++; 
     
    8384      perPixel = temp.intValue(); 
    8485       
    85 //      System.out.println("PerPixel: " + perPixel); 
     86      if(DEBUG) System.out.println("PerPixel: " + perPixel); 
    8687       
    8788      int colorAmount = 255 / perPixel; 
    88 //      System.out.println("ColorAmount: " + colorAmount); 
     89      if(DEBUG) System.out.println("ColorAmount: " + colorAmount); 
    8990       
    9091      for(int i = 0;i<loadList.length;i++) { 
     
    9394        loadColor[index] = loadColor[index] + colorAmount; 
    9495        if (loadColor[index] > 255) { 
    95 //          System.out.println("RED: " + loadColor[index]); 
     96        if(DEBUG) System.out.println("RED: " + loadColor[index]); 
    9697          loadColor[index] = 255; 
    9798        } 
     
    102103        cacheColor[index] = cacheColor[index] + colorAmount; 
    103104        if (cacheColor[index] > 255) { 
    104 //          System.out.println("BLUE: " + cacheColor[index]); 
     105        if(DEBUG) System.out.println("BLUE: " + cacheColor[index]); 
    105106          cacheColor[index] = 255; 
    106107        } 
  • trunk/loci/plugins/browser/CustomWindow.java

    r1857 r1894  
    194194    } 
    195195    else c = 1; 
     196     
     197    setC(); 
    196198 
    197199    JPanel zPanel = new JPanel(new BorderLayout()); 
Note: See TracChangeset for help on using the changeset viewer.