public class ColorDescriptor extends SettingDescriptor
| Constructor and Description |
|---|
ColorDescriptor(java.lang.String name,
java.lang.String label,
java.awt.Color defaultValue)
Constructor.
|
ColorDescriptor(java.lang.String name,
java.lang.String label,
java.awt.Color defaultValue,
boolean enabled,
boolean supportsDisable)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
javax.swing.JComponent |
createInput(Settings settings,
boolean readOnly)
Creates the color input selector
|
ColorInfo |
getDefaultValue()
Gets the default value as a color.
|
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, setSupportsDisablepublic ColorDescriptor(java.lang.String name,
java.lang.String label,
java.awt.Color defaultValue)
name - name of this setting (key)label - label displayed to the userdefaultValue - default color valuepublic ColorDescriptor(java.lang.String name,
java.lang.String label,
java.awt.Color defaultValue,
boolean enabled,
boolean supportsDisable)
name - name of this setting (key)label - label displayed to the userdefaultValue - default color valueenabled - default enabled statesupportsDisable - indicates if the user can disable this settingpublic ColorInfo getDefaultValue()
getDefaultValue in class SettingDescriptorpublic boolean isDisplaySetting()
SettingDescriptorisDisplaySetting in class SettingDescriptorpublic javax.swing.JComponent createInput(Settings settings, boolean readOnly)
createInput in class SettingDescriptorsettings - settings for the studyreadOnly - true if the component should not accept user input