Package loci.plugins.prefs
Class Option
java.lang.Object
loci.plugins.prefs.Option
- Direct Known Subclasses:
BooleanOption,DoubleOption,StringOption
Base class for an option for one of the plugins.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringDocumentation about the option, in HTML.static final StringINI key indicating option's default value.static final StringINI key indicating option's info.static final StringINI key indicating option's key.static final StringINI key indicating option's label.static final StringINI key indicating whether option should be saved to prefs file.protected StringKey name for ImageJ preferences file.static final StringPrefix to use for all plugins preferences.protected StringLabel describing the option, for use with ImageJ dialogs.protected booleanWhether option state should be saved to ImageJ preferences file. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInfo()Gets documentation about the option.getKey()Gets the option's key name.getLabel()Gets label describing the option.booleanisSaved()Gets whether option should be saved to ImageJ preferences file.abstract voidLoads the option's value from the ImageJ preferences file.abstract voidparseOption(String arg) Parses the option's value from the given argument string.abstract voidSaves the option's value to the ImageJ preferences file.
-
Field Details
-
KEY_PREFIX
Prefix to use for all plugins preferences.- See Also:
-
INI_KEY
INI key indicating option's key.- See Also:
-
INI_SAVE
INI key indicating whether option should be saved to prefs file.- See Also:
-
INI_LABEL
INI key indicating option's label.- See Also:
-
INI_INFO
INI key indicating option's info.- See Also:
-
INI_DEFAULT
INI key indicating option's default value.- See Also:
-
key
Key name for ImageJ preferences file. -
save
protected boolean saveWhether option state should be saved to ImageJ preferences file. -
label
Label describing the option, for use with ImageJ dialogs. May contain underscores to produce a better macro variable name. -
info
Documentation about the option, in HTML.
-
-
Constructor Details
-
Option
Constructs an option with the given parameters.
-
-
Method Details
-
getKey
Gets the option's key name. -
isSaved
public boolean isSaved()Gets whether option should be saved to ImageJ preferences file. -
getLabel
Gets label describing the option. -
getInfo
Gets documentation about the option. -
parseOption
Parses the option's value from the given argument string. -
loadOption
public abstract void loadOption()Loads the option's value from the ImageJ preferences file. -
saveOption
public abstract void saveOption()Saves the option's value to the ImageJ preferences file.
-