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

Class Prefs

ij/src/main/java/ij/Prefs.java:45–888  ·  view source on GitHub ↗

This class contains the ImageJ preferences, which are loaded from the "IJ_Props.txt" and "IJ_Prefs.txt" files. @see ij.ImageJ

Source from the content-addressed store, hash-verified

43@see ij.ImageJ
44*/
45public class Prefs {
46
47 public static final String PROPS_NAME = "IJ_Props.txt";
48 @AstroImageJ(reason = "Rename to AIJ", modified = true)
49 public static final String PREFS_NAME = "AIJ_Prefs.txt";
50 public static final String DIR_IMAGE = "dir.image";
51 public static final String FCOLOR = "fcolor";
52 public static final String BCOLOR = "bcolor";
53 public static final String ROICOLOR = "roicolor";
54 public static final String SHOW_ALL_COLOR = "showcolor";
55 public static final String JPEG = "jpeg";
56 public static final String FPS = "fps";
57 public static final String DIV_BY_ZERO_VALUE = "div-by-zero";
58 public static final String NOISE_SD = "noise.sd";
59 public static final String MENU_SIZE = "menu.size";
60 public static final String GUI_SCALE = "gui.scale";
61 public static final String THREADS = "threads";
62 public static final String KEY_PREFIX = ".";
63
64 private static final int USE_POINTER=1<<0, ANTIALIASING=1<<1, INTERPOLATE=1<<2, ONE_HUNDRED_PERCENT=1<<3,
65 BLACK_BACKGROUND=1<<4, JFILE_CHOOSER=1<<5, UNUSED=1<<6, BLACK_CANVAS=1<<7, WEIGHTED=1<<8,
66 AUTO_MEASURE=1<<9, REQUIRE_CONTROL=1<<10, USE_INVERTING_LUT=1<<11, ANTIALIASED_TOOLS=1<<12,
67 INTEL_BYTE_ORDER=1<<13, DOUBLE_BUFFER=1<<14, NO_POINT_LABELS=1<<15, NO_BORDER=1<<16,
68 SHOW_ALL_SLICE_ONLY=1<<17, COPY_HEADERS=1<<18, NO_ROW_NUMBERS=1<<19,
69 MOVE_TO_MISC=1<<20, ADD_TO_MANAGER=1<<21, RUN_SOCKET_LISTENER=1<<22,
70 MULTI_POINT_MODE=1<<23, ROTATE_YZ=1<<24, FLIP_XZ=1<<25,
71 DONT_SAVE_HEADERS=1<<26, DONT_SAVE_ROW_NUMBERS=1<<27, NO_CLICK_TO_GC=1<<28,
72 AVOID_RESLICE_INTERPOLATION=1<<29, KEEP_UNDO_BUFFERS=1<<30;
73 public static final String OPTIONS = "prefs.options";
74
75 public static final String vistaHint = ""; // no longer used
76
77 private static final int USE_SYSTEM_PROXIES=1<<0, USE_FILE_CHOOSER=1<<1,
78 SUBPIXEL_RESOLUTION=1<<2, ENHANCED_LINE_TOOL=1<<3, SKIP_RAW_DIALOG=1<<4,
79 REVERSE_NEXT_PREVIOUS_ORDER=1<<5, AUTO_RUN_EXAMPLES=1<<6, SHOW_ALL_POINTS=1<<7,
80 DO_NOT_SAVE_WINDOW_LOCS=1<<8, JFILE_CHOOSER_CHANGED=1<<9,
81 CANCEL_BUTTON_ON_RIGHT=1<<10, IGNORE_RESCALE_SLOPE=1<<11,
82 NON_BLOCKING_DIALOGS=1<<12, FIXED_DICOM_SCALING=1<<13,
83 CALIBRATE_CONVERSIONS=1<<14;
84 public static final String OPTIONS2 = "prefs.options2";
85
86 /** file.separator system property */
87 public static String separator = System.getProperty("file.separator");
88 /** Use pointer cursor instead of cross */
89 public static boolean usePointerCursor;
90 /** No longer used */
91 public static boolean antialiasedText;
92 /** Display images scaled <100% using bilinear interpolation */
93 public static boolean interpolateScaledImages;
94 /** Open images at 100% magnification*/
95 public static boolean open100Percent;
96 /** Backgound is black in binary images*/
97 public static boolean blackBackground;
98 /** Use JFileChooser instead of FileDialog to open and save files. */
99 public static boolean useJFileChooser;
100 /** Color to grayscale conversion is weighted (0.299, 0.587, 0.114) if the variable is true. */
101 public static boolean weightedColor;
102 /** Use black image border. */

Callers

nothing calls this directly

Calls 2

isMacOSXMethod · 0.95
getPropertyMethod · 0.45

Tested by

no test coverage detected