• Views
  • Iteration Report
  • My Iteration Report
  •  
OMERO.clients
  • Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • ← Previous Change
  • Next Change →

Changeset 5540 for trunk/SRC/org/openmicroscopy/shoola/agents/dataBrowser/view/WellsModel.java

Show
Ignore:
Timestamp:
07/11/08 21:11:12 (4 months ago)
Author:
jburel
Message:

Fixed layout problem

Files:
1 modified

  • trunk/SRC/org/openmicroscopy/shoola/agents/dataBrowser/view/WellsModel.java (modified) (4 diffs)

Legend:

Unmodified
Added
Removed
  • trunk/SRC/org/openmicroscopy/shoola/agents/dataBrowser/view/WellsModel.java

    r5539 r5540  
    7777        private int             columns; 
    7878         
     79        /** The dimension of a well. */ 
     80        private Dimension               wellDimension; 
     81         
    7982        /** 
    8083         * Creates a new instance. 
    … …  
    8891                if (wells  == null)  
    8992                        throw new IllegalArgumentException("No wells."); 
     93                wellDimension = null; 
    9094                this.wells = wells; 
    9195                this.parent = parent; 
    … …  
    107111                        node.setRowDisplay(EditorUtil.LETTERS.get(row+1));  
    108112                        node.setColumnDisplay(""+(column+1)); 
     113                        if (((ImageData) node.getHierarchyObject()).getId() >= 0 && 
     114                                        wellDimension == null) 
     115                                wellDimension = node.getThumbnail().getOriginalSize(); 
    109116                } 
    110117                columns++; 
    … …  
    137144                        if (node instanceof WellImageNode) { 
    138145                                img = (ImageData) node.getHierarchyObject(); 
    139                                 if (img.getId() < 0)  
     146                                if (img.getId() < 0 && !refresh) { 
    140147                                        node.getThumbnail().setFullScaleThumb( 
    141                                                         Factory.createDefaultThumbnail("N/A")); 
    142                                 else  
     148                                                        Factory.createDefaultThumbnail(wellDimension.width,  
     149                                                                        wellDimension.height, "N/A")); 
     150                                } else  
    143151                                        images.add(img); 
    144152                        } 

Download in other formats:

  • Unified Diff
  • Zip Archive

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/