Adds an image to the dialog.
(ImagePlus image)
| 1148 | |
| 1149 | /** Adds an image to the dialog. */ |
| 1150 | public void addImage(ImagePlus image) { |
| 1151 | if (image==null) |
| 1152 | return; |
| 1153 | ImagePanel imagePanel = new ImagePanel(image); |
| 1154 | addPanel(imagePanel); |
| 1155 | if (imagePanels==null) |
| 1156 | imagePanels = new Vector(); |
| 1157 | imagePanels.add(imagePanel); |
| 1158 | } |
| 1159 | |
| 1160 | /** Set the insets (margins), in pixels, that will be |
| 1161 | used for the next component added to the dialog |