MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / showDialog

Method showDialog

ij/src/main/java/ij/plugin/GelAnalyzer.java:146–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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) {

Callers 1

runMethod · 0.95

Calls 8

addNumericFieldMethod · 0.95
addCheckboxMethod · 0.95
addHelpMethod · 0.95
showDialogMethod · 0.95
wasCanceledMethod · 0.95
getNextNumberMethod · 0.95
getNextBooleanMethod · 0.95
setMethod · 0.95

Tested by

no test coverage detected