|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ij.Prefs
public class Prefs
This class contains the ImageJ preferences, which are loaded from the "IJ_Props.txt" and "IJ_Prefs.txt" files.
ImageJ
Field Summary | |
---|---|
static boolean |
antialiasedText
Display antialiased text |
static java.lang.String |
BCOLOR
|
static boolean |
blackBackground
Backgound is black in binary images |
static boolean |
blackCanvas
Use black image border. |
static java.lang.String |
DIR_IMAGE
|
static java.lang.String |
DIV_BY_ZERO_VALUE
|
static java.lang.String |
FCOLOR
|
static java.lang.String |
FPS
|
static boolean |
interpolateScaledImages
Display images scaled <100% using bilinear interpolation |
static java.lang.String |
JPEG
|
static java.lang.String |
KEY_PREFIX
|
static java.lang.String |
NOISE_SD
|
static boolean |
open100Percent
Open images at 100% magnification |
static java.lang.String |
OPTIONS
|
static boolean |
pointAutoMeasure
Point tool auto-measure mode. |
static boolean |
pointAutoNextSlice
Point tool auto-next slice mode (not saved in IJ_Prefs). |
static java.lang.String |
PREFS_NAME
|
static java.lang.String |
PROPS_NAME
|
static boolean |
requireControlKey
Require control or command key for keybaord shortcuts. |
static java.lang.String |
ROICOLOR
|
static java.lang.String |
separator
file.separator system property |
static boolean |
useInvertingLut
Open 8-bit images with inverting LUT so 0 is white and 255 is black. |
static boolean |
useJFileChooser
Use JFileChooser instead of FileDialog to open and save files. |
static boolean |
usePointerCursor
Use pointer cursor instead of cross |
static boolean |
weightedColor
Color to grayscale conversion is weighted (0.299, 0.587, 0.114) if the variable is true. |
Constructor Summary | |
---|---|
Prefs()
|
Method Summary | |
---|---|
static boolean |
get(java.lang.String key,
boolean defaultValue)
Uses the keyword key to retrieve a boolean from
the preferences file. |
static double |
get(java.lang.String key,
double defaultValue)
Uses the keyword key to retrieve a number from the
preferences file. |
static java.lang.String |
get(java.lang.String key,
java.lang.String defaultValue)
Uses the keyword key to retrieve a string from the
preferences file. |
static boolean |
getBoolean(java.lang.String key,
boolean defaultValue)
Finds a boolean in IJ_Props or IJ_Prefs.txt. |
static java.awt.Color |
getColor(java.lang.String key,
java.awt.Color defaultColor)
Finds a color in IJ_Props or IJ_Prefs.txt. |
static double |
getDouble(java.lang.String key,
double defaultValue)
Looks up a real number in IJ_Props or IJ_Prefs.txt. |
static java.lang.String |
getFileSeparator()
Returns the file.separator system property. |
static java.lang.String |
getHomeDir()
Returns the path to the ImageJ directory. |
static java.lang.String |
getImagesURL()
Returns the URL for the ImageJ sample images. |
static int |
getInt(java.lang.String key,
int defaultValue)
Finds an int in IJ_Props or IJ_Prefs.txt. |
static java.lang.String |
getString(java.lang.String key)
Finds an string in IJ_Props or IJ_Prefs.txt. |
static java.lang.String |
getString(java.lang.String key,
java.lang.String defaultString)
Finds an string in IJ_Props or IJ_Prefs.txt. |
static java.lang.String |
load(java.lang.Object ij,
java.applet.Applet applet)
Finds and loads the ImageJ configuration file, "IJ_Props.txt". |
static void |
savePrefs(java.util.Properties prefs,
java.lang.String path)
|
static void |
set(java.lang.String key,
boolean value)
Saves the boolean variable value in the preferences
file using the keyword key . |
static void |
set(java.lang.String key,
double value)
Saves value in the preferences file using
the keyword key . |
static void |
set(java.lang.String key,
java.lang.String text)
Saves the value of the string text in the preferences
file using the keyword key . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROPS_NAME
public static final java.lang.String PREFS_NAME
public static final java.lang.String DIR_IMAGE
public static final java.lang.String FCOLOR
public static final java.lang.String BCOLOR
public static final java.lang.String ROICOLOR
public static final java.lang.String JPEG
public static final java.lang.String FPS
public static final java.lang.String DIV_BY_ZERO_VALUE
public static final java.lang.String NOISE_SD
public static final java.lang.String KEY_PREFIX
public static final java.lang.String OPTIONS
public static java.lang.String separator
public static boolean usePointerCursor
public static boolean antialiasedText
public static boolean interpolateScaledImages
public static boolean open100Percent
public static boolean blackBackground
public static boolean useJFileChooser
public static boolean weightedColor
public static boolean blackCanvas
public static boolean pointAutoMeasure
public static boolean pointAutoNextSlice
public static boolean requireControlKey
public static boolean useInvertingLut
Constructor Detail |
---|
public Prefs()
Method Detail |
---|
public static java.lang.String load(java.lang.Object ij, java.applet.Applet applet)
public static java.lang.String getImagesURL()
public static java.lang.String getHomeDir()
public static java.lang.String getString(java.lang.String key)
public static java.lang.String getString(java.lang.String key, java.lang.String defaultString)
public static boolean getBoolean(java.lang.String key, boolean defaultValue)
public static int getInt(java.lang.String key, int defaultValue)
public static double getDouble(java.lang.String key, double defaultValue)
public static java.awt.Color getColor(java.lang.String key, java.awt.Color defaultColor)
public static java.lang.String getFileSeparator()
public static void set(java.lang.String key, java.lang.String text)
text
in the preferences
file using the keyword key
. This string can be
retrieved using the appropriate get()
method.
public static void set(java.lang.String key, double value)
value
in the preferences file using
the keyword key
. This value can be retrieved
using the appropriate getPref()
method.
public static void set(java.lang.String key, boolean value)
value
in the preferences
file using the keyword key
. This value can be retrieved
using the appropriate getPref()
method.
public static java.lang.String get(java.lang.String key, java.lang.String defaultValue)
key
to retrieve a string from the
preferences file. Returns defaultValue
if the key
is not found.
public static double get(java.lang.String key, double defaultValue)
key
to retrieve a number from the
preferences file. Returns defaultValue
if the key
is not found.
public static boolean get(java.lang.String key, boolean defaultValue)
key
to retrieve a boolean from
the preferences file. Returns defaultValue
if
the key is not found.
public static void savePrefs(java.util.Properties prefs, java.lang.String path) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |