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

Method savePreferences

ij/src/main/java/ij/gui/PlotWindow.java:929–938  ·  view source on GitHub ↗

Called once when ImageJ quits.

(Properties prefs)

Source from the content-addressed store, hash-verified

927
928 /** Called once when ImageJ quits. */
929 public static void savePreferences(Properties prefs) {
930 double min = ProfilePlot.getFixedMin();
931 double max = ProfilePlot.getFixedMax();
932 prefs.put(PREFS_WIDTH, Integer.toString(plotWidth));
933 prefs.put(PREFS_HEIGHT, Integer.toString(plotHeight));
934 prefs.put(PREFS_FONT_SIZE, Integer.toString(defaultFontSize));
935 int options = 0;
936 if (!interpolate) options |= INTERPOLATE; // true=0, false=1
937 prefs.put(OPTIONS, Integer.toString(options));
938 }
939
940 /** Enables or disables live plotting.
941 * Does nothing if the plot has no PlotMaker (then there is no 'live' button). */

Callers 1

savePreferencesMethod · 0.95

Calls 4

getFixedMinMethod · 0.95
getFixedMaxMethod · 0.95
putMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected