public class BarDescriptor extends SettingDescriptor
Constructor and Description |
---|
BarDescriptor(java.lang.String name,
java.lang.String label,
java.awt.Color color,
boolean enabled,
boolean supportsDisable)
Constructor.
|
BarDescriptor(java.lang.String name,
java.lang.String label,
java.awt.Color color,
java.lang.Integer fixedWidth,
boolean enabled,
boolean supportsDisable)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
javax.swing.JComponent |
createInput(Settings settings,
boolean readOnly)
Creates the component that will accept the user input.
|
java.awt.Color |
getColor()
Gets the default color of the bar.
|
BarInfo |
getDefaultValue()
Gets the default value as a BarInfo.
|
java.lang.Integer |
getFixedWidth()
Gets the fixed width of the bar.
|
boolean |
isDisplaySetting()
Indicates if this setting is used to affect the appearance of the of the study/strategy
|
getGridWidth, getLabel, getName, isAllowUserDefaults, isEnabled, isShowLabel, isSupportsDisable, setAllowUserDefaults, setDefaultValue, setEnabled, setGridWidth, setShowLabel, setSupportsDisable
public BarDescriptor(java.lang.String name, java.lang.String label, java.awt.Color color, boolean enabled, boolean supportsDisable)
name
- name of this setting (key)label
- label displayed to the usercolor
- default color of the barenabled
- default enabled statesupportsDisable
- indicates if the user can disable this settingpublic BarDescriptor(java.lang.String name, java.lang.String label, java.awt.Color color, java.lang.Integer fixedWidth, boolean enabled, boolean supportsDisable)
name
- name of this setting (key)label
- label displayed to the usercolor
- default color of the barfixedWidth
- fixed width of the bar (null for dynamic size)enabled
- default enabled statesupportsDisable
- indicates if the user can disable this settingpublic BarInfo getDefaultValue()
getDefaultValue
in class SettingDescriptor
public boolean isDisplaySetting()
SettingDescriptor
isDisplaySetting
in class SettingDescriptor
public javax.swing.JComponent createInput(Settings settings, boolean readOnly)
SettingDescriptor
createInput
in class SettingDescriptor
settings
- settings for the studyreadOnly
- true if the component should not accept user inputpublic java.awt.Color getColor()
public java.lang.Integer getFixedWidth()