public final class StudyConstant extends StudyInteractive
This class is specifically used to control attributes of studies that utilize a ConstantLine object.
| Constructor and Description |
|---|
StudyConstant(StudyType studyType,
int id)
Provides access to the StudyConstant object
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.Color |
getColor()
Gets or sets the color for a selected StudyConstant object.
|
java.util.Collection<CustomGridLine> |
getCustomGridLines()
Returns the collection of CustomGridLines associated with a StudyConstant object.
|
DashStyle |
getLineStyle()
Gets or sets the line style for a selected StudyConstant object.
|
int |
getLineWidth()
Gets or sets the line width for a selected StudyConstant object.
|
java.lang.String |
getText()
Gets or sets the string used for the selected StudyConstant's title.
|
boolean |
isShowLabel()
Gets or sets a value indicating whether configured text will be displayed for the StudyConstant object.
|
void |
resetColor()
Set the property Color to its default value.
|
void |
resetLineStyle()
Set the property LineStyle to its default value.
|
void |
resetLineWidth()
Set the property LineWidth to its default value.
|
void |
resetShowLabel()
Set the property ShowLabel to its default value.
|
void |
setColor(java.awt.Color value)
Gets or sets the color for a selected StudyConstant object.
|
void |
setLineStyle(DashStyle value)
Gets or sets the line style for a selected StudyConstant object.
|
void |
setLineWidth(int value)
Gets or sets the line width for a selected StudyConstant object.
|
void |
setShowLabel(boolean value)
Gets or sets a value indicating whether configured text will be displayed for the StudyConstant object.
|
void |
setText(java.lang.String value)
Gets or sets the string used for the selected StudyConstant's title.
|
getAxis, isInteractive, isVisible, resetInteractive, resetVisible, setAxis, setInteractive, setVisiblecreateAnalysisMultiStudy, createAnalysisStudy, createDistributionFormulaStudy, createTestMultiStudy, createTestStudy, getDecimals, getID, getValue, getValue, isBold, isIndented, resetBold, resetDecimals, resetIndented, resetText, setBold, setDecimals, setIndented, setValuepublic StudyConstant(StudyType studyType, int id)
studyType - id - public java.awt.Color getColor()
Gets or sets the color for a selected StudyConstant object.
setLineStyle and setLineWidth are used to control the style and width for the StudyConstant object.To set the color to blue for a selected StudyConstant object:
getColor in interface IStudygetColor in class StudyresetColorpublic void setColor(java.awt.Color value)
Gets or sets the color for a selected StudyConstant object.
setLineStyle and setLineWidth are used to control the style and width for the StudyConstant object.To set the color to blue for a selected StudyConstant object:
value - resetColorpublic java.util.Collection<CustomGridLine> getCustomGridLines()
Returns the collection of CustomGridLines associated with a StudyConstant object.
public DashStyle getLineStyle()
Gets or sets the line style for a selected StudyConstant object.
setColor and setLineWidth methods, respectively.To configure the LineStyle for a selected StudyConstant object:
resetLineStylepublic void setLineStyle(DashStyle value)
Gets or sets the line style for a selected StudyConstant object.
setColor and setLineWidth methods, respectively.To configure the LineStyle for a selected StudyConstant object:
value - resetLineStylepublic int getLineWidth()
Gets or sets the line width for a selected StudyConstant object.
You can obtain the StudyConstant object for a selected study when adding the study to the Studies collection as follows:
You can set the color and style for the selected StudyConstant object using the setColor and setLineStyle methods, respectively.
To configure the LineWidth for a selected StudyConstant object:
resetLineWidthpublic void setLineWidth(int value)
Gets or sets the line width for a selected StudyConstant object.
You can obtain the StudyConstant object for a selected study when adding the study to the Studies collection as follows:
You can set the color and style for the selected StudyConstant object using the setColor and setLineStyle methods, respectively.
To configure the LineWidth for a selected StudyConstant object:
value - resetLineWidthpublic boolean isShowLabel()
Gets or sets a value indicating whether configured text will be displayed for the StudyConstant object.
You can obtain the StudyConstant object for a selected study when adding the study to the Studies collection as follows:
The setText method may be used to get or set a text string for a given StudyConstant object.
To configire a StudyConstant object to display configured labels:
resetShowLabelpublic void setShowLabel(boolean value)
Gets or sets a value indicating whether configured text will be displayed for the StudyConstant object.
You can obtain the StudyConstant object for a selected study when adding the study to the Studies collection as follows:
The setText method may be used to get or set a text string for a given StudyConstant object.
To configire a StudyConstant object to display configured labels:
value - resetShowLabelpublic java.lang.String getText()
Gets or sets the string used for the selected StudyConstant's title.
You can obtain the StudyConstant object for a selected study when adding the study to the Studies collection as follows:
The isShowLabel method is used to show or hide the configured constant line label of a selected StudyConstant object.
The Study class exposes other attributes that may be used to customize text for study text displayed in the legend and chart.
To set a label for a StudyConstant object:
public void setText(java.lang.String value)
Gets or sets the string used for the selected StudyConstant's title.
You can obtain the StudyConstant object for a selected study when adding the study to the Studies collection as follows:
The isShowLabel method is used to show or hide the configured constant line label of a selected StudyConstant object.
The Study class exposes other attributes that may be used to customize text for study text displayed in the legend and chart.
To set a label for a StudyConstant object:
public void resetColor()
setColorpublic void resetLineStyle()
setLineStylepublic void resetLineWidth()
setLineWidthpublic void resetShowLabel()
isShowLabel2014 Software FX, Inc. All Rights Reserved. Chart FX is a registered trademark of Software FX, Inc
All other names are trademarks or registered trademarks of their respective owners.