|
Chart FX for Java 6.5 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SoftwareFX.ChartFX.Statistical.Study SoftwareFX.ChartFX.Statistical.StudyInteractive SoftwareFX.ChartFX.Statistical.StudyConstant
public final class StudyConstant
Provides access to the StudyConstant object.
This class is specifically used to control attributes of studies that utilize a ConstantLine object.
Constructor Summary | |
---|---|
StudyConstant(int studyType,
int id)
|
Method Summary | |
---|---|
java.awt.Color |
getColor()
Gets the Color. |
java.lang.Object[] |
getConstantLines()
Returns the collection of ConstantLines associated with a StudyConstant object. |
int |
getLineStyle()
Gets the LineStyle. |
int |
getLineWidth()
Gets the LineWidth. |
java.lang.String |
getText()
Gets the Text. |
boolean |
isShowLabel()
Gets the ShowLabel. |
void |
setColor(java.awt.Color value)
Gets or sets the color for a selected StudyConstant object. |
void |
setLineStyle(int 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. |
Methods inherited from class SoftwareFX.ChartFX.Statistical.StudyInteractive |
---|
getAxis, isInteractive, isVisible, setAxis, setInteractive, setVisible |
Methods inherited from class SoftwareFX.ChartFX.Statistical.Study |
---|
createStudyAnalysis, createStudyAnalysisMulti, createStudyDistributionFormula, createStudyTest, createStudyTestMulti, getDecimals, getID, getValue, isBold, isIndented, setBold, setDecimals, setIndented, setValue |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StudyConstant(int studyType, int id)
Method Detail |
---|
public java.awt.Color getColor()
Gets the Color. For more detail see setColor(java.awt.Color)
.
public java.lang.Object[] getConstantLines()
Returns the collection of ConstantLines associated with a StudyConstant object.
All the useful visual attributes have been exposed in the Study
class. However, this could be useful for quickly assigning attributes to the entire collection of stripes at one time.
Study
public int getLineStyle()
Gets the LineStyle. For more detail see setLineStyle(int)
.
public int getLineWidth()
Gets the LineWidth. For more detail see setLineWidth(int)
.
public java.lang.String getText()
Gets the Text. For more detail see setText(java.lang.String)
.
getText
in class Study
public boolean isShowLabel()
Gets the ShowLabel. For more detail see setShowLabel(boolean)
.
public void setColor(java.awt.Color value)
Gets or sets the color 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:
StudyConstant sc1 = (StudyConstant) statistics1.getStudies().addAnalysis(Analysis.MEAN);
The setLineStyle(int)
and setLineWidth(int)
are used to control the style and width for the StudyConstant object.
setLineStyle(int)
,
setLineWidth(int)
,
Statistics.getStudies()
,
StudiesCollection.add(java.lang.Object)
,
StudiesCollection
,
Statistics
public void setLineStyle(int value)
Gets or sets the line style 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:
StudyConstant sc1 = (StudyConstant) statistics1.getStudies().addAnalysis(Analysis.MEAN);
You can set the color and width for the selected StudyConstant object using the setColor(java.awt.Color)
and setLineWidth(int)
properties, respectively.
setColor(java.awt.Color)
,
setLineWidth(int)
,
Statistics.getStudies()
,
StudiesCollection.add(java.lang.Object)
,
StudiesCollection
,
Statistics
public 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:
StudyConstant sc1 = (StudyConstant) statistics1.getStudies().addAnalysis(Analysis.MEAN);
You can set the color and style for the selected StudyConstant object using the setColor(java.awt.Color)
and setLineStyle(int)
properties, respectively.
setColor(java.awt.Color)
,
setLineStyle(int)
,
Statistics.getStudies()
,
StudiesCollection.add(java.lang.Object)
,
StudiesCollection
,
Statistics
public 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:
StudyConstant sc1 = (StudyConstant) statistics1.getStudies().AddAnalysis(Analysis.MEAN);
The setText(java.lang.String)
property may be used to get or set a text string for a given StudyConstant object.
setText(java.lang.String)
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:
StudyConstant sc1 = (StudyConstant) statistics1.getStudies().addAnalysis(Analysis.MEAN);
The setShowLabel(boolean)
property 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.
setText
in class Study
setShowLabel(boolean)
,
Study
|
http://www.softwarefx.com | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |