Changeset 2397


Ignore:
Timestamp:
03/07/07 12:33:51 (13 years ago)
Author:
melissa
Message:

Use a separate ImageReader to load the thumbnails.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/plugins/Importer.java

    r2396 r2397  
    431431 
    432432        Panel[] p = new Panel[seriesCount]; 
     433        ImageReader reader = new ImageReader();  
    433434        for (int i=0; i<seriesCount; i++) { 
    434435          gd.addCheckbox(seriesStrings[i], series[i]); 
    435           r.setSeries(id, i); 
    436           int sx = r.getThumbSizeX(id) + 10; 
    437           int sy = r.getThumbSizeY(id); 
     436          reader.setSeries(id, i); 
     437          int sx = reader.getThumbSizeX(id) + 10; 
     438          int sy = reader.getThumbSizeY(id); 
    438439          p[i] = new Panel(); 
    439440          p[i].add(Box.createRigidArea(new Dimension(sx, sy))); 
     
    443444        } 
    444445        addScrollBars(gd); 
    445         ThumbLoader loader = new ThumbLoader(r, id, p, gd); 
     446        ThumbLoader loader = new ThumbLoader(reader, id, p, gd); 
    446447        gd.showDialog(); 
    447448        loader.stop(); 
     449        reader.close(); 
    448450        if (gd.wasCanceled()) { 
    449451          plugin.canceled = true; 
Note: See TracChangeset for help on using the changeset viewer.