public class IndicatorDescriptor extends SettingDescriptor
| Constructor and Description |
|---|
IndicatorDescriptor(java.lang.String name,
java.lang.String label,
java.awt.Color bgColor,
java.awt.Color txtColor,
boolean showLine,
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 |
getBackgroundColor()
Gets the default background color.
|
IndicatorInfo |
getDefaultValue()
Gets the default value as an Indicator Info
|
java.awt.Color |
getTextColor()
Gets the default text color.
|
boolean |
isDisplaySetting()
Indicates if this setting is used to affect the appearance of the of the study/strategy
|
boolean |
isShowLine()
Gets the default show line attribute.
|
getGridWidth, getLabel, getName, isAllowUserDefaults, isEnabled, isShowLabel, isSupportsDisable, setAllowUserDefaults, setDefaultValue, setEnabled, setGridWidth, setShowLabel, setSupportsDisablepublic IndicatorDescriptor(java.lang.String name,
java.lang.String label,
java.awt.Color bgColor,
java.awt.Color txtColor,
boolean showLine,
boolean enabled,
boolean supportsDisable)
name - name of this settinglabel - label displayed to the userbgColor - default background color for the indicatortxtColor - default text color of the indicatorshowLine - indicates if the line is shown by defaultenabled - indicates if the indicator is enabled by defaultsupportsDisable - indicates if the user can disable the indicatorpublic IndicatorInfo getDefaultValue()
getDefaultValue in class SettingDescriptorpublic javax.swing.JComponent createInput(Settings settings, boolean readOnly)
SettingDescriptorcreateInput in class SettingDescriptorsettings - settings for the studyreadOnly - true if the component should not accept user inputpublic boolean isDisplaySetting()
SettingDescriptorisDisplaySetting in class SettingDescriptorpublic java.awt.Color getBackgroundColor()
public java.awt.Color getTextColor()
public boolean isShowLine()