public class GuideDescriptor extends SettingDescriptor
Constructor and Description |
---|
GuideDescriptor(java.lang.String name,
java.lang.String label,
double value,
double minValue,
double maxValue,
double step,
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.
|
float[] |
getDash()
Gets the default dash settings for the guide (null for solid line).
|
GuideInfo |
getDefaultValue()
Gets the default value for this setting.
|
java.awt.Color |
getLabelColor()
Gets the default label color for the guide indicator.
|
java.awt.Color |
getLineColor()
Gets the default line color for the guide.
|
double |
getMaxValue()
Gets the maximum value for the guide.
|
double |
getMinValue()
Gets the minimum value for the guide.
|
double |
getStep()
Gets the step increment.
|
java.awt.Color |
getTextColor()
Gets the default text color for the guide indicator.
|
float |
getWidth()
Gets the default line width for the guide.
|
void |
setDash(float[] d)
Sets the default dash settings for the guide (null for solid line).
|
void |
setEnabled(boolean b)
Sets the default enabled state for this guide.
|
void |
setLabelColor(java.awt.Color c)
Sets the default label color for the guide indicator.
|
void |
setLineColor(java.awt.Color c)
Sets the default line color for the guide.
|
void |
setTextColor(java.awt.Color c)
Sets the default text color for the guide indicator.
|
void |
setWidth(float w)
Sets the default line width for the guide.
|
getGridWidth, getLabel, getName, isAllowUserDefaults, isDisplaySetting, isEnabled, isShowLabel, isSupportsDisable, setAllowUserDefaults, setDefaultValue, setGridWidth, setShowLabel, setSupportsDisable
public GuideDescriptor(java.lang.String name, java.lang.String label, double value, double minValue, double maxValue, double step, boolean supportsDisable)
name
- name of this setting (key)label
- label displayed to the uservalue
- default y value for displaying this guideminValue
- minimum y value for the guidemaxValue
- maximum y value for the guidestep
- incremental stepsupportsDisable
- indicates if the user can disable this setting.public GuideInfo getDefaultValue()
SettingDescriptor
getDefaultValue
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 double getMinValue()
public double getMaxValue()
public double getStep()
public java.awt.Color getLineColor()
public void setLineColor(java.awt.Color c)
public java.awt.Color getLabelColor()
public void setLabelColor(java.awt.Color c)
public java.awt.Color getTextColor()
public void setTextColor(java.awt.Color c)
public float getWidth()
public void setWidth(float w)
public float[] getDash()
public void setDash(float[] d)
public void setEnabled(boolean b)
setEnabled
in class SettingDescriptor
b
- true if this setting is enabled