public class DoubleDescriptor extends SettingDescriptor
| Constructor and Description |
|---|
DoubleDescriptor(java.lang.String name,
java.lang.String label,
double defaultValue,
double minValue,
double maxValue,
double step)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
javax.swing.JComponent |
createInput(Settings settings,
boolean readOnly)
Creates the component that will accept the user input.
|
java.lang.Double |
getDefaultValue()
Gets the default value as a double.
|
double |
getMaxValue()
Gets the maximum allowable value.
|
double |
getMinValue()
Gets the minimum allowable value.
|
double |
getStep()
Gets the incremental step.
|
getGridWidth, getLabel, getName, isAllowUserDefaults, isDisplaySetting, isEnabled, isShowLabel, isSupportsDisable, setAllowUserDefaults, setDefaultValue, setEnabled, setGridWidth, setShowLabel, setSupportsDisablepublic DoubleDescriptor(java.lang.String name,
java.lang.String label,
double defaultValue,
double minValue,
double maxValue,
double step)
name - name of this setting (key)label - label displayed to the userdefaultValue - default double valueminValue - minimum double valuemaxValue - maximum double valuestep - step incrementpublic java.lang.Double getDefaultValue()
getDefaultValue in class SettingDescriptorpublic javax.swing.JComponent createInput(Settings settings, boolean readOnly)
SettingDescriptorcreateInput in class SettingDescriptorsettings - settings for the studyreadOnly - true if the component should not accept user inputpublic double getMinValue()
public double getMaxValue()
public double getStep()