Class PercentSliderDescriptor
java.lang.Object
com.motivewave.platform.sdk.common.desc.SettingDescriptor<Double>
com.motivewave.platform.sdk.common.desc.PercentSliderDescriptor
-
Constructor Summary
ConstructorsConstructorDescriptionPercentSliderDescriptor(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.NodecreateControl(SettingsBase settings, boolean readOnly) Creates the component that will accept the user input.javafx.scene.NodecreateTBInput(SettingsBase settings) Creates a version of the input that can be displayed in a tool bar.Gets the default value for this setting.doublesetPrefWidth(int width) Methods inherited from class com.motivewave.platform.sdk.common.desc.SettingDescriptor
createInput, createInputFX, 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
-
PercentSliderDescriptor
-
PercentSliderDescriptor
-
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:
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.
-
createTBInput
Description copied from class:SettingDescriptorCreates a version of the input that can be displayed in a tool bar.- Overrides:
createTBInputin classSettingDescriptor<Double>- Parameters:
settings- settings for the study- Returns:
- component that will accept user input.
-
getMinValue
public double getMinValue() -
setPrefWidth
-
fromJson
- Overrides:
fromJsonin classSettingDescriptor<Double>
-