Class BooleanOption

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

public class BooleanOption extends Option
A boolean option for one of the plugins.
  • Field Details

    • defaultValue

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

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

    • BooleanOption

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

      public BooleanOption(String key, boolean save, String label, String info, boolean defaultValue)
      Constructs a boolean option with the given parameters.
  • Method Details

    • getDefault

      public boolean getDefault()
      Gets the default value of the option.
    • getValue

      public boolean getValue()
      Gets the current value of the option.
    • setValue

      public void setValue(boolean 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