private void resetOptions() { // Reset plugin parameters Prefs.set(PREFS_KEY, null); currentBooleanPrefs = UNSET_PREFS; Prefs.set(HASHMAP_KEY, null); hashMapString = ""; // Reset Sholl metrics and output options Prefs.set(METRICS_KEY, null); Prefs.set(METRICS_KEY + ".comment", null); Prefs.set(MASK_KEY, null); Prefs.set(MASK_KEY + ".type", null); setPlotOutput(DEFAULT_PLOT_OUTPUT); currentMetrics = UNSET_PREFS; commentString = null; maskBackground = UNSET_PREFS; maskType = UNSET_PREFS; // Reset Analyzer prefs Analyzer.setPrecision(3); Analyzer.setMeasurement(Measurements.SCIENTIFIC_NOTATION, false); // Reset other global IJ prefs Prefs.setThreads(Runtime.getRuntime().availableProcessors()); Prefs.set("options.ext", null); }
Roi.setColor(roiColor); Analyzer.setMeasurements(measurements); Analyzer.setPrecision(decimalPlaces); ColorProcessor.setWeightingFactors(weights[0], weights[1], weights[2]); Prefs.blackBackground = blackBackground;
Roi.setColor(roiColor); Analyzer.setMeasurements(measurements); Analyzer.setPrecision(decimalPlaces); ColorProcessor.setWeightingFactors(weights[0], weights[1], weights[2]); Prefs.blackBackground = blackBackground;
extension = "." + extension; Prefs.set("options.ext", extension); Analyzer.setPrecision(Math.min(Math.max((int) gd.getNextNumber(), 0), 9)); Analyzer.setMeasurement(Measurements.SCIENTIFIC_NOTATION, gd.getNextBoolean());