Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
Prefs Class Reference

Static Public Member Functions

static String load (Object ij, Applet applet)
 
static String getImagesURL ()
 
static String getHomeDir ()
 
static String getString (String key)
 
static String getString (String key, String defaultString)
 
static boolean getBoolean (String key, boolean defaultValue)
 
static int getInt (String key, int defaultValue)
 
static double getDouble (String key, double defaultValue)
 
static Color getColor (String key, Color defaultColor)
 
static String getFileSeparator ()
 
static void set (String key, String text)
 
static void set (String key, double value)
 
static void set (String key, boolean value)
 
static String get (String key, String defaultValue)
 
static double get (String key, double defaultValue)
 
static boolean get (String key, boolean defaultValue)
 
static void savePrefs (Properties prefs, String path) throws IOException
 

Static Public Attributes

static final String PROPS_NAME = "IJ_Props.txt"
 
static final String PREFS_NAME = "IJ_Prefs.txt"
 
static final String DIR_IMAGE = "dir.image"
 
static final String FCOLOR = "fcolor"
 
static final String BCOLOR = "bcolor"
 
static final String ROICOLOR = "roicolor"
 
static final String JPEG = "jpeg"
 
static final String FPS = "fps"
 
static final String DIV_BY_ZERO_VALUE = "div-by-zero"
 
static final String NOISE_SD = "noise.sd"
 
static final String KEY_PREFIX = "."
 
static final String OPTIONS = "prefs.options"
 
static String separator = System.getProperty("file.separator")
 
static boolean usePointerCursor
 
static boolean antialiasedText
 
static boolean interpolateScaledImages
 
static boolean open100Percent
 
static boolean blackBackground
 
static boolean unweightedColor
 
static boolean blackCanvas
 

Detailed Description

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

See Also
ij.ImageJ

Definition at line 22 of file Prefs.java.

Member Function Documentation

static String get ( String  key,
String  defaultValue 
)
inlinestatic

Uses the keyword key to retrieve a string from the preferences file. Returns defaultValue if the key is not found.

Definition at line 276 of file Prefs.java.

static double get ( String  key,
double  defaultValue 
)
inlinestatic

Uses the keyword key to retrieve a number from the preferences file. Returns defaultValue if the key is not found.

Definition at line 287 of file Prefs.java.

static boolean get ( String  key,
boolean  defaultValue 
)
inlinestatic

Uses the keyword key to retrieve a boolean from the preferences file. Returns defaultValue if the key is not found.

Definition at line 302 of file Prefs.java.

static boolean getBoolean ( String  key,
boolean  defaultValue 
)
inlinestatic

Finds a boolean in IJ_Props or IJ_Prefs.txt.

Definition at line 150 of file Prefs.java.

static Color getColor ( String  key,
Color  defaultColor 
)
inlinestatic

Finds a color in IJ_Props or IJ_Prefs.txt.

Definition at line 188 of file Prefs.java.

static double getDouble ( String  key,
double  defaultValue 
)
inlinestatic

Looks up a real number in IJ_Props or IJ_Prefs.txt.

Definition at line 173 of file Prefs.java.

static String getFileSeparator ( )
inlinestatic

Returns the file.separator system property.

Definition at line 196 of file Prefs.java.

static String getHomeDir ( )
inlinestatic

Returns the path to the ImageJ directory.

Definition at line 129 of file Prefs.java.

static String getImagesURL ( )
inlinestatic

Returns the URL for the ImageJ sample images.

Definition at line 124 of file Prefs.java.

static int getInt ( String  key,
int  defaultValue 
)
inlinestatic

Finds an int in IJ_Props or IJ_Prefs.txt.

Definition at line 160 of file Prefs.java.

static String getString ( String  key)
inlinestatic

Finds an string in IJ_Props or IJ_Prefs.txt.

Definition at line 134 of file Prefs.java.

static String getString ( String  key,
String  defaultString 
)
inlinestatic

Finds an string in IJ_Props or IJ_Prefs.txt.

Definition at line 139 of file Prefs.java.

static String load ( Object  ij,
Applet  applet 
)
inlinestatic

Finds and loads the ImageJ configuration file, "IJ_Props.txt".

Returns
an error message if "IJ_Props.txt" not found.

Definition at line 66 of file Prefs.java.

static void set ( String  key,
String  text 
)
inlinestatic

Saves the value of the string text in the preferences file using the keyword key. This string can be retrieved using the appropriate get() method.

Definition at line 253 of file Prefs.java.

static void set ( String  key,
double  value 
)
inlinestatic

Saves value in the preferences file using the keyword key. This value can be retrieved using the appropriate getPref() method.

Definition at line 262 of file Prefs.java.

static void set ( String  key,
boolean  value 
)
inlinestatic

Saves the boolean variable value in the preferences file using the keyword key. This value can be retrieved using the appropriate getPref() method.

Definition at line 269 of file Prefs.java.

Field Documentation

boolean antialiasedText
static

Display antialiased text

Definition at line 45 of file Prefs.java.

boolean blackBackground
static

Backgound is black in binary images

Definition at line 51 of file Prefs.java.

boolean blackCanvas
static

Use black image border.

Definition at line 55 of file Prefs.java.

boolean interpolateScaledImages
static

Display images scaled <100% using bilinear interpolation

Definition at line 47 of file Prefs.java.

boolean open100Percent
static

Open images at 100% magnification

Definition at line 49 of file Prefs.java.

String separator = System.getProperty("file.separator")
static

file.separator system property

Definition at line 41 of file Prefs.java.

boolean unweightedColor
static

Color to grayscale conversion is not weighted if the variable is true.

Definition at line 53 of file Prefs.java.

boolean usePointerCursor
static

Use pointer cursor instead of cross

Definition at line 43 of file Prefs.java.


The documentation for this class was generated from the following file: