Class DoubleOption

java.lang.Object
loci.plugins.prefs.Option
loci.plugins.prefs.DoubleOption

public class DoubleOption extends Option
A double option for one of the plugins.
  • Field Details

    • defaultValue

      protected double defaultValue
      The option's default value.
    • value

      protected double value
      The option's current value.
  • Constructor Details

    • DoubleOption

      public DoubleOption(HashMap<String,String> entry)
      Constructs a double option with the parameters from the given map.
    • DoubleOption

      public DoubleOption(String key, boolean save, String label, String info, double defaultValue)
      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

      public void parseOption(String arg)
      Description copied from class: Option
      Parses the option's value from the given argument string.
      Specified by:
      parseOption in class Option
    • loadOption

      public void loadOption()
      Description copied from class: Option
      Loads the option's value from the ImageJ preferences file.
      Specified by:
      loadOption in class Option
    • saveOption

      public void saveOption()
      Description copied from class: Option
      Saves the option's value to the ImageJ preferences file.
      Specified by:
      saveOption in class Option