()
| 144 | } |
| 145 | |
| 146 | void showDialog() { |
| 147 | GenericDialog gd = new GenericDialog("Gel Analyzer"); |
| 148 | gd.addNumericField("Vertical scale factor:", verticalScaleFactor, 1); |
| 149 | gd.addNumericField("Horizontal scale factor:", horizontalScaleFactor, 1); |
| 150 | gd.addCheckbox("Uncalibrated OD", uncalibratedOD); |
| 151 | gd.addCheckbox("Label with percentages", labelWithPercentages); |
| 152 | gd.addCheckbox("Invert peaks", invertPeaks); |
| 153 | gd.addHelp(IJ.URL2+"/docs/menus/analyze.html#gels"); |
| 154 | gd.showDialog(); |
| 155 | if (gd.wasCanceled()) |
| 156 | return; |
| 157 | verticalScaleFactor = gd.getNextNumber(); |
| 158 | horizontalScaleFactor = gd.getNextNumber(); |
| 159 | uncalibratedOD = gd.getNextBoolean(); |
| 160 | labelWithPercentages = gd.getNextBoolean(); |
| 161 | invertPeaks = gd.getNextBoolean(); |
| 162 | options = 0; |
| 163 | if (uncalibratedOD) options |= OD; |
| 164 | if (labelWithPercentages) options |= PERCENT; |
| 165 | if (invertPeaks) options |= INVERT; |
| 166 | if (verticalScaleFactor==0.0) verticalScaleFactor=1.0; |
| 167 | if (horizontalScaleFactor==0.0) horizontalScaleFactor=1.0; |
| 168 | Prefs.set(OPTIONS, options); |
| 169 | Prefs.set(VSCALE, verticalScaleFactor); |
| 170 | Prefs.set(HSCALE, horizontalScaleFactor); |
| 171 | } |
| 172 | |
| 173 | |
| 174 | void selectFirstLane(Rectangle rect) { |
no test coverage detected