Package loci.plugins.prefs
Class DoubleOption
java.lang.Object
loci.plugins.prefs.Option
loci.plugins.prefs.DoubleOption
A double option for one of the plugins.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doubleThe option's default value.protected doubleThe option's current value. -
Constructor Summary
ConstructorsConstructorDescriptionDoubleOption(String key, boolean save, String label, String info, double defaultValue) Constructs a double option with the given parameters.DoubleOption(HashMap<String, String> entry) Constructs a double option with the parameters from the given map. -
Method Summary
Modifier and TypeMethodDescriptiondoubleGets the default value of the option.doublegetValue()Gets the current value of the option.voidLoads the option's value from the ImageJ preferences file.voidparseOption(String arg) Parses the option's value from the given argument string.voidSaves the option's value to the ImageJ preferences file.voidsetValue(double value) Sets the current value of the option.
-
Field Details
-
defaultValue
protected double defaultValueThe option's default value. -
value
protected double valueThe option's current value.
-
-
Constructor Details
-
DoubleOption
Constructs a double option with the parameters from the given map. -
DoubleOption
Constructs a double option with the given parameters.
-
-
Method Details
-
getDefault
public double getDefault()Gets the default value of the option. -
getValue
public double getValue()Gets the current value of the option. -
setValue
public void setValue(double value) Sets the current value of the option. -
parseOption
Description copied from class:OptionParses the option's value from the given argument string.- Specified by:
parseOptionin classOption
-
loadOption
public void loadOption()Description copied from class:OptionLoads the option's value from the ImageJ preferences file.- Specified by:
loadOptionin classOption
-
saveOption
public void saveOption()Description copied from class:OptionSaves the option's value to the ImageJ preferences file.- Specified by:
saveOptionin classOption
-