Class BarDescriptor
java.lang.Object
com.motivewave.platform.sdk.common.desc.SettingDescriptor<BarInfo>
com.motivewave.platform.sdk.common.desc.BarDescriptor
Describes a vertical bar.
- 
Constructor SummaryConstructorsConstructorDescriptionBarDescriptor(String name, String label, Color color, boolean enabled, boolean supportsDisable) Constructor.BarDescriptor(String name, String label, Color color, Integer fixedWidth, boolean enabled, boolean supportsDisable) Constructor.
- 
Method SummaryModifier and TypeMethodDescriptionjavafx.scene.NodecreateControl(SettingsBase settings, boolean readOnly) Creates the component that will accept the user input.getColor()Gets the default color of the bar.Gets the default value for this setting.Gets the fixed width of the bar.booleanIndicates if this setting is used to affect the appearance of the of the study/strategyMethods inherited from class com.motivewave.platform.sdk.common.desc.SettingDescriptorcreateInput, createInputFX, createTBInput, createTBInput, getDescription, getGridWidth, getHelpLink, getIconFactory, getId, getLabel, getName, getPostLabel, isAllowUserDefaults, isEnabled, isReadOnly, isShowLabel, isSupportsDisable, setAllowUserDefaults, setDefaultValue, setDescription, setEnabled, setGridWidth, setHelpLink, setIconFactory, setPostLabel, setReadOnly, setShowLabel, setSupportsDisable
- 
Constructor Details- 
BarDescriptorpublic BarDescriptor(String name, String label, Color color, boolean enabled, boolean supportsDisable) Constructor.- Parameters:
- name- name of this setting (key)
- label- label displayed to the user
- color- default color of the bar
- enabled- default enabled state
- supportsDisable- indicates if the user can disable this setting
 
- 
BarDescriptorpublic BarDescriptor(String name, String label, Color color, Integer fixedWidth, boolean enabled, boolean supportsDisable) Constructor.- Parameters:
- name- name of this setting (key)
- label- label displayed to the user
- color- default color of the bar
- fixedWidth- fixed width of the bar (null for dynamic size)
- enabled- default enabled state
- supportsDisable- indicates if the user can disable this setting
 
 
- 
- 
Method Details- 
getDefaultValueGets the default value for this setting.- Overrides:
- getDefaultValuein class- SettingDescriptor<BarInfo>
- Returns:
- default value for the setting
 
- 
isDisplaySettingpublic boolean isDisplaySetting()Description copied from class:SettingDescriptorIndicates if this setting is used to affect the appearance of the of the study/strategy- Overrides:
- isDisplaySettingin class- SettingDescriptor<BarInfo>
- Returns:
- true if this setting affects the appearance of the study/strategy
 
- 
createControlDescription copied from class:SettingDescriptorCreates the component that will accept the user input. This is called by the study framework.- Overrides:
- createControlin class- SettingDescriptor<BarInfo>
- Parameters:
- settings- settings for the study
- readOnly- true if the component should not accept user input
- Returns:
- component that will accept user input.
 
- 
getColorGets the default color of the bar.
- 
getFixedWidthGets the fixed width of the bar.
- 
fromJson- Overrides:
- fromJsonin class- SettingDescriptor<BarInfo>
 
 
-