|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jinsight.jetchart.RegressionLine
A regression line is a statistical tool used to predict future values from past values. This
class calculates a linear regression line formula based on a sequence of a series values.
The values of a linear regression line are calculated using a best-fit method
(least squares) to place a straight line in the exact middle of a series data points. Linear
regression lines are largely used in trend analysis.
Regression lines are objects held by instances of subclasses of ScatterSerie and GraphSerie, except
for stacked bar series.
GraphSerie
,
ScatterSerie
,
ScatterSerie.getRegressionLine()
,
GraphSerie.getRegressionLine()
Field Summary | |
static int |
DASHED
Constant used to set the regression line style to dashed. |
static int |
SOLID
Constant used to set the regression line style to solid. |
Method Summary | |
protected void |
finalize()
|
void |
setAutoInterceptEnabled(boolean isAutoInterceptEnabled)
Enables/disables automatic calculation of the intercept value. |
void |
setColor(java.awt.Color color)
Sets the color of the regression line. |
void |
setDashSize(int dashSize)
Sets the size of a dash painted in a dashed regression line. |
void |
setDashSpace(int dashSpace)
Sets the size of the space between consecutive dashes painted in a dashed regression line. |
void |
setEnabled(boolean isEnabled)
Enables/disables the regression line. |
void |
setInterceptValue(double interceptValue)
Sets the value of the intercept point. |
void |
setStyle(int style)
Sets the regression line style. |
void |
setThickness(int thickness)
Sets line thickness. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int SOLID
public static final int DASHED
Method Detail |
public void setEnabled(boolean isEnabled)
isEnabled
- A boolean value(true/false).public void setColor(java.awt.Color color)
color
- A Color object.public void setStyle(int style)
style
- An integer value.SOLID
,
DASHED
public void setDashSize(int dashSize)
dashSize
- An integer value.setStyle(int)
,
setDashSpace(int)
public void setDashSpace(int dashSpace)
dashSpace
- An integer value.setStyle(int)
,
setDashSize(int)
public void setThickness(int thickness)
thickness
- An integer number.public void setAutoInterceptEnabled(boolean isAutoInterceptEnabled)
isAutoInterceptEnabled
- A boolean value(true/false).setInterceptValue(double)
public void setInterceptValue(double interceptValue)
interceptValue
- A double precision number.setAutoInterceptEnabled(boolean)
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |