- Timestamp:
- 07/11/08 21:11:12 (4 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/org/openmicroscopy/shoola/agents/dataBrowser/view/WellsModel.java
r5539 r5540 77 77 private int columns; 78 78 79 /** The dimension of a well. */ 80 private Dimension wellDimension; 81 79 82 /** 80 83 * Creates a new instance. … … 88 91 if (wells == null) 89 92 throw new IllegalArgumentException("No wells."); 93 wellDimension = null; 90 94 this.wells = wells; 91 95 this.parent = parent; … … 107 111 node.setRowDisplay(EditorUtil.LETTERS.get(row+1)); 108 112 node.setColumnDisplay(""+(column+1)); 113 if (((ImageData) node.getHierarchyObject()).getId() >= 0 && 114 wellDimension == null) 115 wellDimension = node.getThumbnail().getOriginalSize(); 109 116 } 110 117 columns++; … … 137 144 if (node instanceof WellImageNode) { 138 145 img = (ImageData) node.getHierarchyObject(); 139 if (img.getId() < 0 )146 if (img.getId() < 0 && !refresh) { 140 147 node.getThumbnail().setFullScaleThumb( 141 Factory.createDefaultThumbnail("N/A")); 142 else 148 Factory.createDefaultThumbnail(wellDimension.width, 149 wellDimension.height, "N/A")); 150 } else 143 151 images.add(img); 144 152 }
