public class FloatOption extends AbstractOption
| Modifier and Type | Field and Description | 
|---|---|
| protected double | currentVal | 
| protected double | defaultVal | 
| protected double | maxVal | 
| protected double | minVal | 
cliChar, illegalNameCharacters, name, purpose| Constructor and Description | 
|---|
| FloatOption(String name,
           char cliChar,
           String purpose,
           double defaultVal) | 
| FloatOption(String name,
           char cliChar,
           String purpose,
           double defaultVal,
           double minVal,
           double maxVal) | 
| Modifier and Type | Method and Description | 
|---|---|
| static double | cliStringToDouble(String s) | 
| static String | doubleToCLIString(double d) | 
| String | getDefaultCLIString()Gets the Command Line Interface text | 
| JComponent | getEditComponent()Gets the GUI component to edit | 
| double | getMaxValue() | 
| double | getMinValue() | 
| double | getValue() | 
| String | getValueAsCLIString()Gets the value of a Command Line Interface text as a string | 
| void | setValue(double v) | 
| void | setValueViaCLIString(String s)Sets value of this option via the Command Line Interface text | 
copy, getCLIChar, getDescription, getName, getPurpose, getStateString, nameIsLegal, resetToDefaultcopy, measureByteSize, measureByteSize, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitmeasureByteSizeprotected double currentVal
protected double defaultVal
protected double minVal
protected double maxVal
public void setValue(double v)
public double getValue()
public double getMinValue()
public double getMaxValue()
public String getDefaultCLIString()
Optionpublic String getValueAsCLIString()
Optionpublic void setValueViaCLIString(String s)
Options - the Command Line Interface textpublic static double cliStringToDouble(String s)
public static String doubleToCLIString(double d)
public JComponent getEditComponent()
OptiongetEditComponent in interface OptiongetEditComponent in class AbstractOptionCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.