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

Method saveOptions

ij/src/main/java/ij/Prefs.java:654–686  ·  view source on GitHub ↗
(Properties prefs)

Source from the content-addressed store, hash-verified

652 }
653
654 static void saveOptions(Properties prefs) {
655 int options = (usePointerCursor?USE_POINTER:0) + (antialiasedText?ANTIALIASING:0)
656 + (interpolateScaledImages?INTERPOLATE:0) + (open100Percent?ONE_HUNDRED_PERCENT:0)
657 + (blackBackground?BLACK_BACKGROUND:0) + (useJFileChooser?JFILE_CHOOSER:0)
658 + (blackCanvas?BLACK_CANVAS:0) + (weightedColor?WEIGHTED:0)
659 + (requireControlKey?REQUIRE_CONTROL:0)
660 + (useInvertingLut?USE_INVERTING_LUT:0)
661 + (intelByteOrder?INTEL_BYTE_ORDER:0) + (doubleBuffer?DOUBLE_BUFFER:0)
662 + (noPointLabels?NO_POINT_LABELS:0) + (noBorder?NO_BORDER:0)
663 + (showAllSliceOnly?SHOW_ALL_SLICE_ONLY:0) + (copyColumnHeaders?COPY_HEADERS:0)
664 + (noRowNumbers?NO_ROW_NUMBERS:0) + (moveToMisc?MOVE_TO_MISC:0)
665 + (runSocketListener?RUN_SOCKET_LISTENER:0)
666 + (multiPointMode?MULTI_POINT_MODE:0) + (rotateYZ?ROTATE_YZ:0)
667 + (flipXZ?FLIP_XZ:0) + (dontSaveHeaders?DONT_SAVE_HEADERS:0)
668 + (dontSaveRowNumbers?DONT_SAVE_ROW_NUMBERS:0) + (noClickToGC?NO_CLICK_TO_GC:0)
669 + (avoidResliceInterpolation?AVOID_RESLICE_INTERPOLATION:0)
670 + (keepUndoBuffers?KEEP_UNDO_BUFFERS:0);
671 prefs.put(OPTIONS, Integer.toString(options));
672
673 int options2 = (useSystemProxies?USE_SYSTEM_PROXIES:0)
674 + (useFileChooser?USE_FILE_CHOOSER:0) + (subPixelResolution?SUBPIXEL_RESOLUTION:0)
675 + (enhancedLineTool?ENHANCED_LINE_TOOL:0) + (skipRawDialog?SKIP_RAW_DIALOG:0)
676 + (reverseNextPreviousOrder?REVERSE_NEXT_PREVIOUS_ORDER:0)
677 + (autoRunExamples?AUTO_RUN_EXAMPLES:0) + (showAllPoints?SHOW_ALL_POINTS:0)
678 + (doNotSaveWindowLocations?DO_NOT_SAVE_WINDOW_LOCS:0)
679 + (jFileChooserSettingChanged?JFILE_CHOOSER_CHANGED:0)
680 + (dialogCancelButtonOnRight?CANCEL_BUTTON_ON_RIGHT:0)
681 + (ignoreRescaleSlope?IGNORE_RESCALE_SLOPE:0)
682 + (nonBlockingFilterDialogs?NON_BLOCKING_DIALOGS:0)
683 + (fixedDicomScaling?FIXED_DICOM_SCALING:0);
684 //+ (calibrateConversions?CALIBRATE_CONVERSIONS:0);
685 prefs.put(OPTIONS2, Integer.toString(options2));
686 }
687
688 /** Saves the Point <code>loc</code> in the preferences
689 file as a string using the keyword <code>key</code>. */

Callers 1

savePreferencesMethod · 0.95

Calls 2

putMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected