|
Chart FX 7 for Java Server | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.softwarefx.chartfx.server.statistical.Study
com.softwarefx.chartfx.server.statistical.StudyInteractive
com.softwarefx.chartfx.server.statistical.StudyConstant
public 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(StudyType studyType,
int id)
|
Method Summary | |
---|---|
Color |
getColor()
Gets the Color. |
DashStyle |
getLineStyle()
Gets the LineStyle. |
int |
getLineWidth()
Gets the LineWidth. |
String |
getText()
Gets the Text. |
boolean |
isShowLabel()
Gets the ShowLabel. |
void |
setColor(Color value)
Sets the color for a selected StudyConstant object. |
void |
setLineStyle(DashStyle value)
Sets the line style for a selected StudyConstant object. |
void |
setLineWidth(int value)
Sets the line width for a selected StudyConstant object. |
void |
setShowLabel(boolean value)
Sets a value indicating whether configured text will be displayed for the StudyConstant object. |
void |
setText(String value)
Sets the string used for the selected StudyConstant's title. |
Methods inherited from class com.softwarefx.chartfx.server.statistical.StudyInteractive |
---|
getAxis, isInteractive, isVisible, setAxis, setInteractive, setVisible |
Methods inherited from class com.softwarefx.chartfx.server.statistical.Study |
---|
createStudy, createStudy, createStudy, createStudy, createStudy, getDecimals, getID, getValue, getValue, isBold, isIndented, setBold, setDecimals, setIndented, setValue |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.softwarefx.chartfx.server.statistical.IStudy |
---|
getValue, isBold, isIndented, isInteractive, isVisible, setBold, setIndented, setVisible |
Constructor Detail |
---|
public StudyConstant(StudyType studyType, int id)
Method Detail |
---|
public Color getColor()
Gets the Color. For more detail see setColor(java.awt.Color)
.
getColor
in interface IStudy
getColor
in class Study
public DashStyle getLineStyle()
Gets the LineStyle. For more detail see setLineStyle(com.softwarefx.DashStyle)
.
public int getLineWidth()
Gets the LineWidth. For more detail see setLineWidth(int)
.
public String getText()
Gets the Text. For more detail see setText(java.lang.String)
.
getText
in interface IStudy
getText
in class Study
public boolean isShowLabel()
Gets the ShowLabel. For more detail see setShowLabel(boolean)
.
public void setColor(Color value)
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:
The setLineStyle(com.softwarefx.DashStyle)
and setLineWidth(int)
are used to control the style and width for the StudyConstant object.
setLineStyle(com.softwarefx.DashStyle)
,
setLineWidth(int)
,
Statistics.getStudies()
,
StudiesCollection.add(com.softwarefx.chartfx.server.statistical.Analysis)
,
StudiesCollection
,
Statistics
public void setLineStyle(DashStyle value)
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:
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(com.softwarefx.chartfx.server.statistical.Analysis)
,
StudiesCollection
,
Statistics
public void setLineWidth(int value)
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(java.awt.Color)
and setLineStyle(com.softwarefx.DashStyle)
properties, respectively.
setColor(java.awt.Color)
,
setLineStyle(com.softwarefx.DashStyle)
,
Statistics.getStudies()
,
StudiesCollection.add(com.softwarefx.chartfx.server.statistical.Analysis)
,
StudiesCollection
,
Statistics
public void setShowLabel(boolean value)
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(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(String value)
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 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 |