|
EspressReport 6.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ITrendLine
| Field Summary | |
|---|---|
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
|
| Fields inherited from interface quadbase.util.IDataLine |
|---|
CLOSE, DASH_STYLE, DOTTED_STYLE, HIGH, LOW, OPEN, SOLID_STYLE |
| Method Summary | |
|---|---|
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. |
| Methods inherited from interface quadbase.util.IDataLine |
|---|
getColor, getLineStyle, getSeries, getShowHintValue, getThickness, getTitle, getValueColumn, getValueHint, isSecondaryValueUsed, isTitleVisibleInLegend, setColor, setLineStyle, setSeries, setShowHintValue, setThickness, setTitle, setTitleVisibleInLegend, setValueColumn, setValueHint, useSecondaryValue |
| Methods inherited from interface quadbase.util.IReferenceObj |
|---|
addAnnotation, getAnnotations, getReferencePosition, isVisible, removeAnnotation |
| Field Detail |
|---|
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
| Method Detail |
|---|
void setCoeff(int coeff)
setCoeff in interface IDataLinecoeff - fitting degree or period of moving averageint getCoeff()
getCoeff in interface IDataLinevoid setLineType(int lineType)
setLineType in interface IDataLinelineType - the type of this trend line.int getLineType()
getLineType in interface IDataLinevoid 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 IDataLineIHorzVertLinedouble getLineValue()
getLineValue in interface IDataLineIHorzVertLinevoid 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)
|
EspressReport 6.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||