()
| 3072 | } |
| 3073 | |
| 3074 | void restoreSettings() { |
| 3075 | interp.getParens(); |
| 3076 | if (!saveSettingsCalled) |
| 3077 | interp.error("saveSettings() not called"); |
| 3078 | Prefs.usePointerCursor = usePointerCursor; |
| 3079 | IJ.hideProcessStackDialog = hideProcessStackDialog; |
| 3080 | FloatBlitter.divideByZeroValue = divideByZeroValue; |
| 3081 | FileSaver.setJpegQuality(jpegQuality); |
| 3082 | Line.setWidth(saveLineWidth); |
| 3083 | ImageConverter.setDoScaling(doScaling); |
| 3084 | if (weightedColor!=Prefs.weightedColor) { |
| 3085 | ColorProcessor.setWeightingFactors(weights[0], weights[1], weights[2]); |
| 3086 | Prefs.weightedColor = !(weights[0]==1d/3d && weights[1]==1d/3d && weights[2]==1d/3d); |
| 3087 | } |
| 3088 | Prefs.interpolateScaledImages = interpolateScaledImages; |
| 3089 | Prefs.open100Percent = open100Percent; |
| 3090 | Prefs.blackCanvas = blackCanvas; |
| 3091 | Prefs.useJFileChooser = useJFileChooser; |
| 3092 | Prefs.useInvertingLut = useInvertingLut; |
| 3093 | IJ.setDebugMode(debugMode); |
| 3094 | Toolbar.setForegroundColor(foregroundColor); |
| 3095 | Toolbar.setBackgroundColor(backgroundColor); |
| 3096 | Roi.setColor(roiColor); |
| 3097 | Analyzer.setMeasurements(measurements); |
| 3098 | Analyzer.setPrecision(decimalPlaces); |
| 3099 | ColorProcessor.setWeightingFactors(weights[0], weights[1], weights[2]); |
| 3100 | Prefs.blackBackground = blackBackground; |
| 3101 | Prefs.autoContrast = autoContrast; |
| 3102 | Roi.setPasteMode(pasteMode); |
| 3103 | PlotWindow.plotWidth = plotWidth; |
| 3104 | PlotWindow.plotHeight = plotHeight; |
| 3105 | PlotWindow.setDefaultFontSize(plotFontSize); |
| 3106 | PlotWindow.interpolate = plotInterpolate; |
| 3107 | PlotWindow.noGridLines = plotNoGridLines; |
| 3108 | PlotWindow.noTicks = plotNoTicks; |
| 3109 | Prefs.verticalProfile = profileVerticalProfile; |
| 3110 | Prefs.subPixelResolution = profileSubPixelResolution; |
| 3111 | } |
| 3112 | |
| 3113 | void setKeyDown() { |
| 3114 | String keys = getStringArg(); |
no test coverage detected