()
| 600 | } |
| 601 | |
| 602 | static void loadOptions() { |
| 603 | int defaultOptions = ANTIALIASING+AVOID_RESLICE_INTERPOLATION+ANTIALIASED_TOOLS+MULTI_POINT_MODE |
| 604 | +(!IJ.isMacOSX()?RUN_SOCKET_LISTENER:0)+BLACK_BACKGROUND; |
| 605 | int options = getInt(OPTIONS, defaultOptions); |
| 606 | usePointerCursor = (options&USE_POINTER)!=0; |
| 607 | //antialiasedText = (options&ANTIALIASING)!=0; |
| 608 | antialiasedText = false; |
| 609 | interpolateScaledImages = (options&INTERPOLATE)!=0; |
| 610 | open100Percent = (options&ONE_HUNDRED_PERCENT)!=0; |
| 611 | blackBackground = (options&BLACK_BACKGROUND)!=0; |
| 612 | useJFileChooser = (options&JFILE_CHOOSER)!=0; |
| 613 | weightedColor = (options&WEIGHTED)!=0; |
| 614 | if (weightedColor) |
| 615 | ColorProcessor.setWeightingFactors(0.299, 0.587, 0.114); |
| 616 | blackCanvas = (options&BLACK_CANVAS)!=0; |
| 617 | requireControlKey = (options&REQUIRE_CONTROL)!=0; |
| 618 | useInvertingLut = (options&USE_INVERTING_LUT)!=0; |
| 619 | intelByteOrder = (options&INTEL_BYTE_ORDER)!=0; |
| 620 | noBorder = (options&NO_BORDER)!=0; |
| 621 | //showAllSliceOnly = (options&SHOW_ALL_SLICE_ONLY)!=0; |
| 622 | copyColumnHeaders = (options©_HEADERS)!=0; |
| 623 | noRowNumbers = (options&NO_ROW_NUMBERS)!=0; |
| 624 | moveToMisc = (options&MOVE_TO_MISC)!=0; |
| 625 | runSocketListener = (options&RUN_SOCKET_LISTENER)!=0; |
| 626 | multiPointMode = (options&MULTI_POINT_MODE)!=0; |
| 627 | rotateYZ = (options&ROTATE_YZ)!=0; |
| 628 | flipXZ = (options&FLIP_XZ)!=0; |
| 629 | //dontSaveHeaders = (options&DONT_SAVE_HEADERS)!=0; |
| 630 | //dontSaveRowNumbers = (options&DONT_SAVE_ROW_NUMBERS)!=0; |
| 631 | noClickToGC = (options&NO_CLICK_TO_GC)!=0; |
| 632 | avoidResliceInterpolation = (options&AVOID_RESLICE_INTERPOLATION)!=0; |
| 633 | keepUndoBuffers = (options&KEEP_UNDO_BUFFERS)!=0; |
| 634 | |
| 635 | defaultOptions = (!IJ.isMacOSX()?USE_FILE_CHOOSER:0); |
| 636 | int options2 = getInt(OPTIONS2, defaultOptions); |
| 637 | useSystemProxies = (options2&USE_SYSTEM_PROXIES)!=0; |
| 638 | useFileChooser = (options2&USE_FILE_CHOOSER)!=0; |
| 639 | subPixelResolution = (options2&SUBPIXEL_RESOLUTION)!=0; |
| 640 | enhancedLineTool = (options2&ENHANCED_LINE_TOOL)!=0; |
| 641 | skipRawDialog = (options2&SKIP_RAW_DIALOG)!=0; |
| 642 | reverseNextPreviousOrder = (options2&REVERSE_NEXT_PREVIOUS_ORDER)!=0; |
| 643 | autoRunExamples = (options2&AUTO_RUN_EXAMPLES)!=0; |
| 644 | showAllPoints = (options2&SHOW_ALL_POINTS)!=0; |
| 645 | doNotSaveWindowLocations = (options2&DO_NOT_SAVE_WINDOW_LOCS)!=0; |
| 646 | jFileChooserSettingChanged = (options2&JFILE_CHOOSER_CHANGED)!=0; |
| 647 | dialogCancelButtonOnRight = (options2&CANCEL_BUTTON_ON_RIGHT)!=0; |
| 648 | ignoreRescaleSlope = (options2&IGNORE_RESCALE_SLOPE)!=0; |
| 649 | nonBlockingFilterDialogs = (options2&NON_BLOCKING_DIALOGS)!=0; |
| 650 | fixedDicomScaling = (options2&FIXED_DICOM_SCALING)!=0; |
| 651 | //calibrateConversions = (options2&CALIBRATE_CONVERSIONS)!=0; |
| 652 | } |
| 653 | |
| 654 | static void saveOptions(Properties prefs) { |
| 655 | int options = (usePointerCursor?USE_POINTER:0) + (antialiasedText?ANTIALIASING:0) |
no test coverage detected