public interface ITrendLine extends IDataLine
Modifier and Type | Field and Description |
---|---|
static int |
BSPLINE |
static int |
EXPONENTIAL |
static int |
EXPONENTIAL_AVERAGE |
static int |
HORIZONTAL_LINE |
static int |
LOGARITHMIC |
static int |
NORMAL_CURVE |
static int |
POLYNOMIAL |
static int |
POWER |
static int |
SIMPLE_AVERAGE |
static int |
TRIANGULAR_AVERAGE |
static int |
VERTICAL_LINE |
CLOSE, DASH_STYLE, DOTTED_STYLE, HIGH, LOW, OPEN, SOLID_STYLE
Modifier and Type | Method and Description |
---|---|
void |
drawStandardDevLine(java.awt.Color color,
double mDev,
java.lang.String label)
Draw lines at multiples of deviation value for a NORMAL curve only works for Histogram charts
with setLinearScale & setRounded to true.
|
int |
getCoeff()
Get the degree for POLYNOMIAL or period for SIMPLE_AVERAGE, TRIANGULAR_AVERAGE and
EXPONENTIAL_AVERAGE.
|
double[] |
getInterpolateCoeffs()
The function returns the interpolated constant values for Polynomial, Exponential,
Logarithmic, and Power.
|
double |
getInverseNorm(double prob)
Get the INVERSE NORMAL value by specifying the probability of a NORMAL distribution curve.
|
int |
getLineType()
Get the line type
|
double |
getLineValue()
Get the line value used by horizontal/vertical line type
|
double |
getMax()
Get the maximum value for a NORMAL curve
|
double |
getMean()
Get the mean value for a NORMAL curve
|
double |
getMin()
Get the minimum value for a NORMAL curve
|
double |
getProbability(double mDev)
Get the probability to the left by specifying multiple of deviation of a NORMAL distribution
curve.
|
boolean |
getStackChartLine()
Get the stack direction that this trend line used.
|
double |
getStandardDev()
Get the standard deviation value for a NORMAL curve
|
void |
setCoeff(int coeff)
Set the degree (for POLYNOMIAL) or period (for SIMPLE_AVERAGE, TRIANGULAR_AVERAGE and
EXPONENTIAL_AVERAGE).
If you want to change line type also you should call setLineType() first, followed by setCoeff(). |
void |
setLineType(int lineType)
Sets the line type.
|
void |
setLineValue(double line_value)
Set the value for the horizontal line or vertical line.
|
void |
setStackChartLine(boolean positive)
This is used for stack column chart and stack area chart only.
|
getColor, getLineStyle, getSeries, getShowHintValue, getThickness, getTitle, getValueColumn, getValueHint, isSecondaryValueUsed, isTitleVisibleInLegend, setColor, setLineStyle, setSeries, setShowHintValue, setThickness, setTitle, setTitleVisibleInLegend, setValueColumn, setValueHint, useSecondaryValue
addAnnotation, getAnnotations, getReferencePosition, isVisible, removeAnnotation
static final int POLYNOMIAL
static final int EXPONENTIAL
static final int LOGARITHMIC
static final int POWER
static final int SIMPLE_AVERAGE
static final int EXPONENTIAL_AVERAGE
static final int TRIANGULAR_AVERAGE
static final int HORIZONTAL_LINE
static final int VERTICAL_LINE
static final int BSPLINE
static final int NORMAL_CURVE
void setCoeff(int coeff)
int getCoeff()
void setLineType(int lineType)
setLineType
in interface IDataLine
lineType
- the type of this trend line.int getLineType()
getLineType
in interface IDataLine
void setLineValue(double line_value)
For vertical line if the X-axis is of numeric value then the line is drawn using line_value, otherwise the value is interpreted as above.
setLineValue
in interface IDataLine
IHorzVertLine
double getLineValue()
getLineValue
in interface IDataLine
IHorzVertLine
void setStackChartLine(boolean positive)
positive
- true if positive direction is usedboolean getStackChartLine()
double[] getInterpolateCoeffs()
For non-scatter chart, the x value used for interpolation is 1, 2,.... m where m is the no.
of category.
For scatter chart, x is the real value used for plotting.
For polynomial of degree N, the return array c[] have N+1 values where y = c[0] + c[1]*x +
c[2]*x^2 + ....
For exponential, logarithmic, and power, the return array is of size 2
y' = c[0] + c[1]*x'
where x' , y' is the transform value.
For logarithmic : x' = log(x), y'=y;
For exponential : x' = x, y' = log(y);
For power : x' = log(x), y' = log(y);
This return value is valid only after the chart is actually draw. For other chart types, it returns null;
double getMean()
double getStandardDev()
void drawStandardDevLine(java.awt.Color color, double mDev, java.lang.String label)
color
- color of the standard deviation linemDev
- line to be drawn at multiples of deviation valuelabel
- label of the line drawndouble getMin()
double getMax()
double getProbability(double mDev)
double getInverseNorm(double prob)