Class PercentSliderDescriptor
java.lang.Object
com.motivewave.platform.sdk.common.desc.SettingDescriptor<Double>
com.motivewave.platform.sdk.common.desc.PercentSliderDescriptor
-
Constructor Summary
ConstructorDescriptionPercentSliderDescriptor
(String name, String label, double defaultValue) Constructor.PercentSliderDescriptor
(String name, String label, double minValue, double defaultValue) Constructor.PercentSliderDescriptor
(String name, String label, double minValue, double defaultValue, IconFactory fact) Constructor.PercentSliderDescriptor
(String name, String label, double defaultValue, IconFactory fact) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.Node
createInputFX
(Settings settings, boolean readOnly) Creates the component that will accept the user input.javafx.scene.Node
createTBInput
(Settings settings) Creates a version of the input that can be displayed in a tool bar.Gets the default value for this setting.double
Methods inherited from class com.motivewave.platform.sdk.common.desc.SettingDescriptor
createInput, getDescription, getGridWidth, getHelpLink, getIconFactory, getId, getLabel, getName, isAllowUserDefaults, isDisplaySetting, isEnabled, isShowLabel, isSupportsDisable, setAllowUserDefaults, setDefaultValue, setDescription, setEnabled, setGridWidth, setHelpLink, setIconFactory, setShowLabel, setSupportsDisable
-
Constructor Details
-
PercentSliderDescriptor
Constructor.- Parameters:
name
- name of this setting (key)label
- label displayed to the userdefaultValue
- default percent value (0d - 1d)
-
PercentSliderDescriptor
Constructor.- Parameters:
name
- name of this setting (key)label
- label displayed to the userminValue
- minimum value (0d - 1d)defaultValue
- default percent value (0d - 1d)
-
PercentSliderDescriptor
Constructor.- Parameters:
name
- name of this setting (key)label
- label displayed to the userdefaultValue
- default percent value (0d - 1d)fact
- icon factory for the tool bar
-
PercentSliderDescriptor
public PercentSliderDescriptor(String name, String label, double minValue, double defaultValue, IconFactory fact) Constructor.- Parameters:
name
- name of this setting (key)label
- label displayed to the userminValue
- minimum value (0d - 1d)defaultValue
- default percent value (0d - 1d)fact
- icon factory for the tool bar
-
-
Method Details
-
getDefaultValue
Gets the default value for this setting.- Overrides:
getDefaultValue
in classSettingDescriptor<Double>
- Returns:
- default value for the setting
-
createInputFX
Description copied from class:SettingDescriptor
Creates the component that will accept the user input. This is called by the study framework.- Specified by:
createInputFX
in classSettingDescriptor<Double>
- Parameters:
settings
- settings for the studyreadOnly
- true if the component should not accept user input- Returns:
- component that will accept user input.
-
createTBInput
Description copied from class:SettingDescriptor
Creates a version of the input that can be displayed in a tool bar.- Overrides:
createTBInput
in classSettingDescriptor<Double>
- Parameters:
settings
- settings for the study- Returns:
- component that will accept user input.
-
getMinValue
public double getMinValue() -
fromJson
- Overrides:
fromJson
in classSettingDescriptor<Double>
-