Changeset 1907


Ignore:
Timestamp:
12/06/06 18:56:48 (13 years ago)
Author:
chris
Message:

Browser:
1) fixed bug where channel checkbox wasn't doing anything
2) fixed bug where on multi-channel datasets the cacheIndicator
was looking at the wrong c value and hence did not paint in a
manner correctly reflecting what was cached.

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

Legend:

Unmodified
Added
Removed
  • trunk/loci/plugins/browser

    • Property svn:ignore
      •  

        old new  
        33IndicatorTest.java 
        44IJ_Prefs.txt 
         5TestBlocks.java 
  • trunk/loci/plugins/browser/CacheManager.java

    r1899 r1907  
    19841984        zSel = db.cw.zSliceSel; 
    19851985        tSel = db.cw.tSliceSel; 
    1986         if (sizeC != 0) aC = ((Integer)db.cw.channelSpin.getValue()).intValue(); 
     1986        if (sizeC != 0) aC = (db.cw.getC()); 
    19871987        setIndicators(zSel.getValue(), tSel.getValue(), aC); 
    19881988      } 
  • trunk/loci/plugins/browser/CustomWindow.java

    r1899 r1907  
    177177    channelBox.setBackground(Color.white); 
    178178    channelPanel.add("one", channelBox); 
     179    channelBox.addItemListener(this); 
    179180 
    180181    JPanel subPane = new JPanel(new FlowLayout()); 
     
    265266    repaint(); 
    266267    update = true; 
     268  } 
     269   
     270  public int getC() { 
     271    return c; 
    267272  } 
    268273 
  • trunk/loci/plugins/browser/OptionsWindow.java

    r1906 r1907  
    407407  } 
    408408 
    409   private Color getColor(int i) { 
     409  public static Color getColor(int i) { 
    410410    switch(i) { 
    411411      case 0: 
Note: See TracChangeset for help on using the changeset viewer.