public class ShadeDescriptor extends SettingDescriptor
Constructor and Description |
---|
ShadeDescriptor(java.lang.String name,
java.lang.String label,
java.lang.String lineKey1,
double value,
Enums.ShadeType type,
java.awt.Color color)
Constructor.
|
ShadeDescriptor(java.lang.String name,
java.lang.String label,
java.lang.String lineKey1,
double value,
Enums.ShadeType type,
java.awt.Color color,
boolean enabled,
boolean supportsDisable)
Constructor
|
ShadeDescriptor(java.lang.String name,
java.lang.String label,
java.lang.String lineKey1,
java.lang.String lineKey2,
Enums.ShadeType type,
java.awt.Color color)
Constructor.
|
ShadeDescriptor(java.lang.String name,
java.lang.String label,
java.lang.String lineKey1,
java.lang.String lineKey2,
Enums.ShadeType type,
java.awt.Color color,
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 for the shade.
|
ShadeInfo |
getDefaultValue()
Gets the default value as a ShadeInfo
|
java.lang.String |
getLineKey1()
Gets the setting key for the first line.
|
java.lang.String |
getLineKey2()
Gets the setting key for the first line.
|
Enums.ShadeType |
getShadeType()
Gets the type of shade to apply.
|
double |
getValue()
Gets the absolute value to shade above or below.
|
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 ShadeDescriptor(java.lang.String name, java.lang.String label, java.lang.String lineKey1, java.lang.String lineKey2, Enums.ShadeType type, java.awt.Color color)
name
- label
- lineKey1
- lineKey2
- type
- color
- public ShadeDescriptor(java.lang.String name, java.lang.String label, java.lang.String lineKey1, double value, Enums.ShadeType type, java.awt.Color color)
name
- label
- lineKey1
- value
- type
- color
- public ShadeDescriptor(java.lang.String name, java.lang.String label, java.lang.String lineKey1, java.lang.String lineKey2, Enums.ShadeType type, java.awt.Color color, boolean enabled, boolean supportsDisable)
name
- label
- lineKey1
- lineKey2
- type
- color
- enabled
- supportsDisable
- public ShadeDescriptor(java.lang.String name, java.lang.String label, java.lang.String lineKey1, double value, Enums.ShadeType type, java.awt.Color color, boolean enabled, boolean supportsDisable)
name
- label
- lineKey1
- value
- type
- color
- enabled
- supportsDisable
- public ShadeInfo getDefaultValue()
getDefaultValue
in class SettingDescriptor
public java.awt.Color getColor()
public java.lang.String getLineKey1()
public java.lang.String getLineKey2()
public Enums.ShadeType getShadeType()
public double getValue()
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 input