Class QuantityDescriptor
java.lang.Object
com.motivewave.platform.sdk.common.desc.SettingDescriptor<Double>
com.motivewave.platform.sdk.common.desc.QuantityDescriptor
Describes a double value that is part of the study/strategy settings.
These values may be given a minimum, maximum and step value.
-
Constructor Summary
ConstructorsConstructorDescriptionQuantityDescriptor(String name, String label, double defaultValue) Constructor -
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.NodecreateControl(SettingsBase settings, boolean readOnly) Creates the component that will accept the user input.Gets the default value for this setting.doubleGets the maximum allowable value.doubleGets the minimum allowable value.doublegetStep()Gets the incremental step.voidsetMaxValue(double max) Sets the maximum allowable value.voidsetMinValue(double min) Sets the minimum allowable value.voidsetStep(double step) Sets the incremental step.Methods inherited from class com.motivewave.platform.sdk.common.desc.SettingDescriptor
createInput, createInputFX, createTBInput, createTBInput, getDescription, getGridWidth, getHelpLink, getIconFactory, getId, getLabel, getName, getPostLabel, isAllowUserDefaults, isDisplaySetting, isEnabled, isReadOnly, isShowLabel, isSupportsDisable, setAllowUserDefaults, setDefaultValue, setDescription, setEnabled, setGridWidth, setHelpLink, setIconFactory, setPostLabel, setReadOnly, setShowLabel, setSupportsDisable
-
Constructor Details
-
QuantityDescriptor
-
-
Method Details
-
getDefaultValue
Gets the default value for this setting.- Overrides:
getDefaultValuein classSettingDescriptor<Double>- Returns:
- default value for the setting
-
createControl
Description copied from class:SettingDescriptorCreates the component that will accept the user input. This is called by the study framework.- Overrides:
createControlin classSettingDescriptor<Double>- Parameters:
settings- settings for the studyreadOnly- true if the component should not accept user input- Returns:
- component that will accept user input.
-
getMinValue
public double getMinValue()Gets the minimum allowable value. -
setMinValue
public void setMinValue(double min) Sets the minimum allowable value. This should be called by the underlying framework only. -
getMaxValue
public double getMaxValue()Gets the maximum allowable value. -
setMaxValue
public void setMaxValue(double max) Sets the maximum allowable value. This should be called by the underlying framework only. -
getStep
public double getStep()Gets the incremental step. -
setStep
public void setStep(double step) Sets the incremental step. This should be called by the underlying framework only. -
fromJson
- Overrides:
fromJsonin classSettingDescriptor<Double>
-