public class DoubleOption extends Option
Modifier and Type | Field and Description |
---|---|
protected double |
defaultValue
The option's default value.
|
protected double |
value
The option's current value.
|
Constructor and Description |
---|
DoubleOption(java.util.HashMap<java.lang.String,java.lang.String> entry)
Constructs a double option with the parameters from the given map.
|
DoubleOption(java.lang.String key,
boolean save,
java.lang.String label,
java.lang.String info,
double defaultValue)
Constructs a double option with the given parameters.
|
Modifier and Type | Method and Description |
---|---|
double |
getDefault()
Gets the default value of the option.
|
double |
getValue()
Gets the current value of the option.
|
void |
loadOption()
Loads the option's value from the ImageJ preferences file.
|
void |
parseOption(java.lang.String arg)
Parses the option's value from the given argument string.
|
void |
saveOption()
Saves the option's value to the ImageJ preferences file.
|
void |
setValue(double value)
Sets the current value of the option.
|
protected double defaultValue
protected double value
public DoubleOption(java.util.HashMap<java.lang.String,java.lang.String> entry)
public DoubleOption(java.lang.String key, boolean save, java.lang.String label, java.lang.String info, double defaultValue)
public double getDefault()
public double getValue()
public void setValue(double value)
public void parseOption(java.lang.String arg)
Option
parseOption
in class Option
public void loadOption()
Option
loadOption
in class Option
public void saveOption()
Option
saveOption
in class Option
Copyright © 2021 Open Microscopy Environment