Class SliderDescriptor
java.lang.Object
com.motivewave.platform.sdk.common.desc.SettingDescriptor<Integer>
com.motivewave.platform.sdk.common.desc.SliderDescriptor
-
Constructor Summary
ConstructorsConstructorDescriptionSliderDescriptor(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.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.booleanvoidsetAutoMinMax(boolean b) 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
-
SliderDescriptor
-
SliderDescriptor
-
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:
getDefaultValuein classSettingDescriptor<Integer>- Returns:
- default value for the setting
-
isAutoMinMax
public boolean isAutoMinMax() -
setAutoMinMax
public void setAutoMinMax(boolean b) -
createControl
Description copied from class:SettingDescriptorCreates the component that will accept the user input. This is called by the study framework.- Overrides:
createControlin 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:SettingDescriptorCreates a version of the input that can be displayed in a tool bar.- Overrides:
createTBInputin classSettingDescriptor<Integer>- Parameters:
settings- settings for the study- Returns:
- component that will accept user input.
-
fromJson
- Overrides:
fromJsonin classSettingDescriptor<Integer>
-