Changeset 2400


Ignore:
Timestamp:
03/07/07 15:01:36 (13 years ago)
Author:
curtis
Message:

No need to use separate ImageReader.

File:
1 edited

Legend:

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

    r2397 r2400  
    431431 
    432432        Panel[] p = new Panel[seriesCount]; 
    433         ImageReader reader = new ImageReader();  
    434433        for (int i=0; i<seriesCount; i++) { 
    435434          gd.addCheckbox(seriesStrings[i], series[i]); 
    436           reader.setSeries(id, i); 
    437           int sx = reader.getThumbSizeX(id) + 10; 
    438           int sy = reader.getThumbSizeY(id); 
     435          r.setSeries(id, i); 
     436          int sx = r.getThumbSizeX(id) + 10; 
     437          int sy = r.getThumbSizeY(id); 
    439438          p[i] = new Panel(); 
    440439          p[i].add(Box.createRigidArea(new Dimension(sx, sy))); 
     
    444443        } 
    445444        addScrollBars(gd); 
    446         ThumbLoader loader = new ThumbLoader(reader, id, p, gd); 
     445        ThumbLoader loader = new ThumbLoader(r, id, p, gd); 
    447446        gd.showDialog(); 
    448447        loader.stop(); 
    449         reader.close(); 
    450448        if (gd.wasCanceled()) { 
    451449          plugin.canceled = true; 
Note: See TracChangeset for help on using the changeset viewer.