Changeset 5609
- Timestamp:
- 09/12/08 13:33:44 (2 months ago)
- Location:
- trunk/SRC/org/openmicroscopy/shoola
- Files:
-
- 30 modified
-
agents/dataBrowser/DataBrowserAgent.java (modified) (1 diff)
-
agents/dataBrowser/ThumbnailsManager.java (modified) (1 diff)
-
agents/dataBrowser/browser/BrowserModel.java (modified) (2 diffs)
-
agents/dataBrowser/layout/LayoutFactory.java (modified) (3 diffs)
-
agents/dataBrowser/layout/LayoutUtils.java (modified) (2 diffs)
-
agents/dataBrowser/layout/SquaryLayout.java (modified) (1 diff)
-
agents/dataBrowser/util/FilteringDialog.java (modified) (3 diffs)
-
agents/dataBrowser/view/DataBrowser.java (modified) (1 diff)
-
agents/dataBrowser/view/DataBrowserModel.java (modified) (2 diffs)
-
agents/dataBrowser/view/ProjectsModel.java (modified) (1 diff)
-
agents/imviewer/browser/Browser.java (modified) (2 diffs)
-
agents/imviewer/browser/BrowserComponent.java (modified) (2 diffs)
-
agents/imviewer/browser/BrowserModel.java (modified) (1 diff)
-
agents/imviewer/util/proj/ProjectionDialog.java (modified) (11 diffs)
-
agents/imviewer/util/proj/ProjectionRef.java (modified) (3 diffs)
-
agents/imviewer/view/ControlPane.java (modified) (5 diffs)
-
agents/imviewer/view/ImViewerComponent.java (modified) (4 diffs)
-
agents/imviewer/view/ImViewerModel.java (modified) (2 diffs)
-
agents/imviewer/view/ToolBar.java (modified) (1 diff)
-
agents/treeviewer/TimeIntervalsLoader.java (modified) (1 diff)
-
agents/treeviewer/actions/CreateTopContainerAction.java (modified) (5 diffs)
-
agents/treeviewer/view/ToolBar.java (modified) (1 diff)
-
env/data/OMEROGateway.java (modified) (1 diff)
-
env/data/OmeroImageServiceImpl.java (modified) (5 diffs)
-
env/data/model/ProjectionParam.java (modified) (4 diffs)
-
util/image/geom/Factory.java (modified) (2 diffs)
-
util/ui/UIUtilities.java (modified) (5 diffs)
-
util/ui/login/ScreenLogin.java (modified) (5 diffs)
-
util/ui/search/QuickSearch.java (modified) (1 diff)
-
util/ui/search/SearchPanel.java (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/org/openmicroscopy/shoola/agents/dataBrowser/DataBrowserAgent.java
r5472 r5609 37 37 import org.openmicroscopy.shoola.agents.dataBrowser.view.DataBrowserFactory; 38 38 import org.openmicroscopy.shoola.agents.events.iviewer.RndSettingsCopied; 39 import org.openmicroscopy.shoola.agents.treeviewer.view.TreeViewer;40 import org.openmicroscopy.shoola.agents.treeviewer.view.TreeViewerFactory;41 39 import org.openmicroscopy.shoola.env.Agent; 42 40 import org.openmicroscopy.shoola.env.LookupNames; 43 41 import org.openmicroscopy.shoola.env.config.Registry; 44 import org.openmicroscopy.shoola.env.data.events.SaveEventRequest;45 42 import org.openmicroscopy.shoola.env.event.AgentEvent; 46 43 import org.openmicroscopy.shoola.env.event.AgentEventListener; 47 44 import org.openmicroscopy.shoola.env.event.EventBus; 48 49 45 import pojos.ExperimenterData; 50 46 -
trunk/SRC/org/openmicroscopy/shoola/agents/dataBrowser/ThumbnailsManager.java
r5606 r5609 82 82 private Map<Long, Set> thumbProviders; 83 83 84 /** 85 * Creates a new instance. 86 * 87 * @param wells The nodes hosting the wells to display. 88 */ 84 89 public ThumbnailsManager(Collection<ImageDisplay> wells) 85 90 { -
trunk/SRC/org/openmicroscopy/shoola/agents/dataBrowser/browser/BrowserModel.java
r5606 r5609 126 126 Set children = node.getChildrenDisplay(); 127 127 if (children == null) return; 128 //desktop.removeAll(); 128 129 Iterator i = children.iterator(); 129 130 ImageDisplay child; … … 152 153 Set nodes = rootDisplay.getChildrenDisplay(); 153 154 Iterator i = nodes.iterator(); 154 while (i.hasNext()) {155 while (i.hasNext()) 155 156 originalNodes.add((ImageDisplay) i.next()); 156 }157 157 } 158 158 -
trunk/SRC/org/openmicroscopy/shoola/agents/dataBrowser/layout/LayoutFactory.java
r5595 r5609 79 79 case PLATE_LAYOUT: 80 80 return new PlateLayout(); 81 82 81 default: 83 82 throw new IllegalArgumentException("Unsupported layout type: "+ … … 91 90 * @return See above. 92 91 */ 93 public static Layout createPlateLayout() 94 { 95 return new PlateLayout(); 96 } 92 public static Layout createPlateLayout() { return new PlateLayout(); } 97 93 98 94 /** … … 107 103 { 108 104 return createLayout(getDefaultLayoutIndex(), sorter, itemsPerRow); 105 } 106 107 /** 108 * Returns the default layout. 109 * 110 * @param sorter Class used to sort the nodes by date or 111 * alphabetically. 112 * @param itemsPerRow The number of images per row. 113 * @return See above. 114 */ 115 public static Layout getDefaultLayout(ViewerSorter sorter) 116 { 117 return createLayout(getDefaultLayoutIndex(), sorter, 118 LayoutUtils.DEFAULT_PER_ROW); 109 119 } 110 120 -
trunk/SRC/org/openmicroscopy/shoola/agents/dataBrowser/layout/LayoutUtils.java
r5538 r5609 63 63 64 64 /** The default number of items per row. */ 65 p rivatestatic final int DEFAULT_PER_ROW = 10;65 public static final int DEFAULT_PER_ROW = 10; 66 66 67 67 /** … … 218 218 219 219 l = sorter.sort(l); 220 if (itemsPerRow > 1) n = itemsPerRow; 221 220 if (itemsPerRow >= 1) n = itemsPerRow; 222 221 else { 223 222 n = l.size(); -
trunk/SRC/org/openmicroscopy/shoola/agents/dataBrowser/layout/SquaryLayout.java
r5467 r5609 209 209 } 210 210 Object object = n.getHierarchyObject(); 211 212 211 DataObject ho = (DataObject) object; 213 212 Class klass = object.getClass(); -
trunk/SRC/org/openmicroscopy/shoola/agents/dataBrowser/util/FilteringDialog.java
r5457 r5609 43 43 import java.util.List; 44 44 import javax.swing.Box; 45 import javax.swing.BoxLayout; 45 46 import javax.swing.JButton; 46 47 import javax.swing.JCheckBox; … … 270 271 ratingOptions = new JComboBox(RATING); 271 272 rating = new RatingComponent(5, RatingComponent.HIGH_SIZE); 272 fromDate = UIUtilities.createDatePicker( );273 toDate = UIUtilities.createDatePicker( );273 fromDate = UIUtilities.createDatePicker(false); 274 toDate = UIUtilities.createDatePicker(false); 274 275 tagsArea = new JTextField(); 275 276 tagsArea.setColumns(15); … … 383 384 private JPanel buildCalendarPane() 384 385 { 386 JPanel date = new JPanel(); 387 date.add(UIUtilities.setTextFont("From: ")); 388 date.add(fromDate); 389 date.add(UIUtilities.setTextFont("To: ")); 390 date.add(toDate); 385 391 JPanel p = new JPanel(); 392 p.setLayout(new BoxLayout(p, BoxLayout.X_AXIS)); 386 393 p.add(calendarBox); 387 p.add(UIUtilities.setTextFont("From: ")); 388 p.add(fromDate); 389 p.add(UIUtilities.setTextFont("To: ")); 390 p.add(toDate); 394 p.add(date); 391 395 return UIUtilities.buildComponentPanel(p, 0, 0); 392 396 } -
trunk/SRC/org/openmicroscopy/shoola/agents/dataBrowser/view/DataBrowser.java
r5606 r5609 449 449 public void setComponentTitle(String title); 450 450 451 public void viewField(int selectedIndex); 451 /** 452 * Views the selected well sample field while browsing a plate. 453 * 454 * @param field The index of the field. 455 */ 456 public void viewField(int field); 452 457 453 458 } -
trunk/SRC/org/openmicroscopy/shoola/agents/dataBrowser/view/DataBrowserModel.java
r5606 r5609 52 52 import org.openmicroscopy.shoola.agents.dataBrowser.layout.Layout; 53 53 import org.openmicroscopy.shoola.agents.dataBrowser.layout.LayoutFactory; 54 import org.openmicroscopy.shoola.agents.dataBrowser.layout.LayoutUtils; 54 55 import org.openmicroscopy.shoola.agents.dataBrowser.visitor.ResetThumbnailVisitor; 55 56 import org.openmicroscopy.shoola.agents.util.ViewerSorter; … … 185 186 //Do initial layout and set the icons. 186 187 if (browser.getSelectedLayout() == null) { 187 Layout layout = LayoutFactory.createLayout(type, sorter, 1); 188 Layout layout = LayoutFactory.createLayout(type, sorter, 189 LayoutUtils.DEFAULT_PER_ROW); 188 190 browser.setSelectedLayout(layout); 189 191 } -
trunk/SRC/org/openmicroscopy/shoola/agents/dataBrowser/view/ProjectsModel.java
r5606 r5609 25 25 26 26 //Java imports 27 import java.util.ArrayList;28 27 import java.util.Collection; 29 import java.util.Iterator;30 import java.util.List;31 28 import java.util.Set; 32 29 33 import org.openmicroscopy.shoola.agents.dataBrowser.DataBrowserLoader; 34 import org.openmicroscopy.shoola.agents.dataBrowser.ThumbnailLoader; 35 import org.openmicroscopy.shoola.agents.dataBrowser.browser.ImageDisplay; 36 import org.openmicroscopy.shoola.agents.dataBrowser.browser.ImageNode; 30 37 31 38 32 //Third-party libraries 39 33 40 34 //Application-internal dependencies 41 import pojos.ImageData; 35 import org.openmicroscopy.shoola.agents.dataBrowser.DataBrowserLoader; 36 import org.openmicroscopy.shoola.agents.dataBrowser.browser.ImageDisplay; 42 37 import pojos.ProjectData; 43 38 -
trunk/SRC/org/openmicroscopy/shoola/agents/imviewer/browser/Browser.java
r5528 r5609 59 59 extends ObservableComponent 60 60 { 61 /**62 * Factor use to determine the size of the annotate image63 * w.r.t the rendered image.64 */65 //public static final int MAX_RATIO = 10;66 61 67 62 /** … … 118 113 * Sets the zoom factor. 119 114 * 120 * @param factor The zoom factor to set. 121 */ 122 public void setZoomFactor(double factor); 115 * @param factor The zoom factor to set. 116 * @param reset Pass <code>true</code> to reset the magnification factor. 117 * <code>false</code> to set it. 118 */ 119 public void setZoomFactor(double factor, boolean reset); 123 120 124 121 /** -
trunk/SRC/org/openmicroscopy/shoola/agents/imviewer/browser/BrowserComponent.java
r5528 r5609 198 198 /** 199 199 * Implemented as specified by the {@link Browser} interface. 200 * @see Browser#setZoomFactor(double )201 */ 202 public void setZoomFactor(double factor )200 * @see Browser#setZoomFactor(double, boolean) 201 */ 202 public void setZoomFactor(double factor, boolean reset) 203 203 { 204 204 if (factor != -1) { … … 222 222 } 223 223 model.setZoomFactor(factor); 224 view.zoomImage();224 if (!reset) view.zoomImage(); 225 225 } 226 226 -
trunk/SRC/org/openmicroscopy/shoola/agents/imviewer/browser/BrowserModel.java
r5499 r5609 527 527 if (renderedImage == null) return; 528 528 if (zoomFactor != ZoomAction.DEFAULT_ZOOM_FACTOR) 529 displayedImage = Factory.magnifyImage(renderedImage, zoomFactor, 0); 529 displayedImage = Factory.magnifyImage(renderedImage, zoomFactor, 0);//Factory.magnifyImage(zoomFactor, renderedImage); 530 //Factory.magnifyImage(renderedImage, zoomFactor, 0); 530 531 else displayedImage = renderedImage; 531 532 } -
trunk/SRC/org/openmicroscopy/shoola/agents/imviewer/util/proj/ProjectionDialog.java
r5592 r5609 34 34 import java.util.HashMap; 35 35 import java.util.Iterator; 36 import java.util.LinkedHashMap; 36 37 import java.util.List; 37 38 import java.util.Map; … … 54 55 //Application-internal dependencies 55 56 import org.openmicroscopy.shoola.agents.imviewer.IconManager; 57 import org.openmicroscopy.shoola.agents.imviewer.view.ImViewer; 56 58 import org.openmicroscopy.shoola.util.ui.TitlePanel; 57 59 import org.openmicroscopy.shoola.util.ui.UIUtilities; … … 87 89 public static final String LOAD_DATASETS_PROPERTY = "loadDatasets"; 88 90 91 private static final Map<Integer, String> PROJECTIONS; 92 89 93 /** The maximum number of z-sections. */ 90 private int maxZ;94 private int maxZ; 91 95 92 96 /** The maximum number of timepoints. */ 93 private int maxT;97 private int maxT; 94 98 95 99 /** The pixels type of the original image. */ 96 private String pixelsType;100 private String pixelsType; 97 101 98 102 /** Component hosting a two knobs slider and text field. */ 99 private TextualTwoKnobsSlider textualSlider;103 private TextualTwoKnobsSlider textualSlider; 100 104 101 105 /** The type of projection. */ 102 private Map<Integer, Integer> projectionType;106 private Map<Integer, Integer> projectionType; 103 107 104 108 /** Project the selected z-sections for the currently selected timepoint. */ 105 private JButton previewButton;109 private JButton previewButton; 106 110 107 111 /** Project the selected z-sections of the whole image. */ 108 private JButton projectionButton;112 private JButton projectionButton; 109 113 110 114 /** The bar notifying the user for the data retrieval progress. */ 111 private JProgressBar progressBar;115 private JProgressBar progressBar; 112 116 113 117 /** The reference object hosting the parameters used to project. */ 114 private ProjectionRef ref;118 private ProjectionRef ref; 115 119 116 120 /** The label displaying the status. */ 117 private JLabel statusLabel;121 private JLabel statusLabel; 118 122 119 123 /** The type of supported projections. */ 120 private JComboBox types;124 private JComboBox types; 121 125 122 126 /** The UI delegate. */ 123 private ProjectionUI uiDelegate;127 private ProjectionUI uiDelegate; 124 128 125 129 /** Sets the stepping for the mapping. */ 126 private JSpinner frequency;130 private JSpinner frequency; 127 131 128 132 /** The name of the image. */ … … 138 142 private ProjectionDialogControl controller; 139 143 144 static { 145 PROJECTIONS = new LinkedHashMap<Integer, String>(); 146 PROJECTIONS.put(ImViewer.MAX_INTENSITY, "Maximum Intensity"); 147 PROJECTIONS.put(ImViewer.MEAN_INTENSITY, "Mean Intensity"); 148 PROJECTIONS.put(ImViewer.SUM_INTENSITY, "Sum Intensity"); 149 } 150 140 151 /** Collects and stores the parameters used for projection. */ 141 152 private void fillProjectionRef() … … 153 164 * Initializes the components composing the display. 154 165 * 155 * @param projections The projection supported.156 166 * @param background The background color. 157 167 */ 158 private void initComponents(Map<Integer, String> projections, 159 Color background) 168 private void initComponents(Color background) 160 169 { 161 170 frequency = new JSpinner(new SpinnerNumberModel(1, 1, maxZ, 1)); … … 181 190 statusLabel = new JLabel(); 182 191 183 String[] names = new String[ projections.size()];192 String[] names = new String[PROJECTIONS.size()]; 184 193 int index = 0; 185 Iterator<Integer> i = projections.keySet().iterator();194 Iterator<Integer> i = PROJECTIONS.keySet().iterator(); 186 195 projectionType = new HashMap<Integer, Integer>(); 187 196 int j; … … 189 198 j = i.next(); 190 199 projectionType.put(index, j); 191 names[index] = projections.get(j);200 names[index] = PROJECTIONS.get(j); 192 201 index++; 193 202 } … … 296 305 * 297 306 * @param owner The owner of the dialog. 298 * @param projections The type of projection.299 307 * @param maxZ The number of optical sections. 300 308 * @param maxT The number of timepoints. … … 305 313 * @param imageHeight The width of the original image. 306 314 */ 307 public ProjectionDialog(JFrame owner, Map<Integer, String> projections, 308 int maxZ, int maxT, String pixelsType, 315 public ProjectionDialog(JFrame owner, int maxZ, int maxT, String pixelsType, 309 316 Color background, String imageName, 310 317 int imageWidth, int imageHeight) … … 316 323 this.pixelsType = pixelsType; 317 324 this.imageName = imageName; 318 initComponents( projections,background);325 initComponents(background); 319 326 buildGUI(); 320 327 Dimension d = new Dimension(imageWidth, imageHeight); … … 405 412 { 406 413 fillProjectionRef(); 414 ref.setImageDescription("Projection type: "+ 415 PROJECTIONS.get(ref.getType())); 407 416 ref.setAllChannels(allChannels); 408 417 ref.setDatasets(datasets); -
trunk/SRC/org/openmicroscopy/shoola/agents/imviewer/util/proj/ProjectionRef.java
r5592 r5609 76 76 private String name; 77 77 78 /** The description of the projected image. */ 79 private String description; 80 78 81 /** 79 82 * Project all channels if <code>true</code>, project the active channels … … 181 184 182 185 /** 186 * Sets the description of the projected image. 187 * 188 * @param description The value to set. 189 */ 190 void setImageDescription(String description) 191 { 192 this.description = description; 193 } 194 195 /** 183 196 * Sets the collection of datasets to add the image to. 184 197 * … … 205 218 206 219 /** 220 * Returns the description of the projected image. 221 * 222 * @return See above. 223 */ 224 public String getImageDescription() { return description; } 225 226 /** 207 227 * Returns the collection of datasets to add the image to. 208 228 * -
trunk/SRC/org/openmicroscopy/shoola/agents/imviewer/view/ControlPane.java
r5386 r5609 413 413 414 414 /** 415 * Builds a tool bar hosting the passed button. 416 * 417 * @param button The button to add. 418 * @return See above 419 */ 420 private JToolBar createMovieButtonBar(JButton button) 421 { 422 JToolBar bar = new JToolBar(); 423 bar.setFloatable(false); 424 bar.setRollover(true); 425 bar.setBorder(null); 426 bar.add(button); 427 return bar; 428 } 429 430 /** 415 431 * Helper method to create a panel hosting the passed slider. 416 432 * … … 424 440 pane.setLayout(new TableLayout(tl));
