Class SliderDescriptor
java.lang.Object
com.motivewave.platform.sdk.common.desc.SettingDescriptor<Integer>
com.motivewave.platform.sdk.common.desc.SliderDescriptor
-
Constructor Summary
ConstructorDescriptionSliderDescriptor
(String name, String label, int def) Constructor.SliderDescriptor
(String name, String label, int def, int min, int max) Constructor.SliderDescriptor
(String name, String label, int def, int min, int max, boolean autoMinMax) Constructor.SliderDescriptor
(String name, String label, int def, int min, int max, boolean autoMinMax, IconFactory fact) Constructor.SliderDescriptor
(String name, String label, int def, int min, int max, IconFactory fact) Constructor.SliderDescriptor
(String name, String label, int def, 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.boolean
void
setAutoMinMax
(boolean b) 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
-
SliderDescriptor
Constructor.- Parameters:
name
- name of this setting (key)label
- label displayed to the userdef
- default value
-
SliderDescriptor
Constructor.- Parameters:
name
- name of this setting (key)label
- label displayed to the userdef
- default valuemin
- minimum slider valuemax
- maximum slider value
-
SliderDescriptor
Constructor.- Parameters:
name
- name of this setting (key)label
- label displayed to the userdef
- default valuemin
- minimum slider valuemax
- maximum slider valueautoMinMax
- automatically adjust min/max values
-
SliderDescriptor
Constructor.- Parameters:
name
- name of this setting (key)label
- label displayed to the userdef
- default valuefact
- icon factory for the tool bar
-
SliderDescriptor
Constructor.- Parameters:
name
- name of this setting (key)label
- label displayed to the userdef
- default valuemin
- minimum slider valuemax
- maximum slider valuefact
- icon factory for the tool bar
-
SliderDescriptor
public SliderDescriptor(String name, String label, int def, int min, int max, boolean autoMinMax, IconFactory fact) Constructor.- Parameters:
name
- name of this setting (key)label
- label displayed to the userdef
- default valuemin
- minimum slider valuemax
- maximum slider valueautoMinMax
- automatically adjust the min/max values for the sliderfact
- icon factory for the tool bar
-
-
Method Details
-
getDefaultValue
Gets the default value for this setting.- Overrides:
getDefaultValue
in classSettingDescriptor<Integer>
- Returns:
- default value for the setting
-
isAutoMinMax
public boolean isAutoMinMax() -
setAutoMinMax
public void setAutoMinMax(boolean b) -
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<Integer>
- 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<Integer>
- Parameters:
settings
- settings for the study- Returns:
- component that will accept user input.
-
fromJson
- Overrides:
fromJson
in classSettingDescriptor<Integer>
-