Package io.keikai.model
Interface STrendline
- All Known Implementing Classes:
TrendlineImpl
public interface STrendline
Represents a trendline on a chart series.
Reference: ECMA-376 5th Edition, sect. 21.2.2.234 (trendline).
- Since:
- 7.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe type of regression / trend calculation. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the number of periods to forecast backward.doubleReturns the number of periods to forecast forward.Returns the forced intercept value, ornullif auto.getName()Returns the custom name of this trendline, ornullif using the default.intgetOrder()Returns the polynomial order (valid range 2-6, only meaningful when type is POLYNOMIAL).intReturns the moving-average period (only meaningful when type is MOVING_AVERAGE).getType()Returns the trendline type.booleanReturns whether the equation is displayed on the chart.booleanReturns whether the R-squared value is displayed on the chart.voidsetBackward(double periods) Sets the number of periods to forecast backward.voidsetDisplayEquation(boolean display) Sets whether the equation is displayed on the chart.voidsetDisplayRSquared(boolean display) Sets whether the R-squared value is displayed on the chart.voidsetForward(double periods) Sets the number of periods to forecast forward.voidsetIntercept(Double intercept) Sets the forced intercept value.voidSets the custom name of this trendline.voidsetOrder(int order) Sets the polynomial order (valid range 2-6).voidsetPeriod(int period) Sets the moving-average period.voidSets the trendline type.
-
Method Details
-
getType
STrendline.TrendlineType getType()Returns the trendline type. -
setType
Sets the trendline type. -
getOrder
int getOrder()Returns the polynomial order (valid range 2-6, only meaningful when type is POLYNOMIAL). -
setOrder
void setOrder(int order) Sets the polynomial order (valid range 2-6). -
getPeriod
int getPeriod()Returns the moving-average period (only meaningful when type is MOVING_AVERAGE). -
setPeriod
void setPeriod(int period) Sets the moving-average period. -
getForward
double getForward()Returns the number of periods to forecast forward. -
setForward
void setForward(double periods) Sets the number of periods to forecast forward. -
getBackward
double getBackward()Returns the number of periods to forecast backward. -
setBackward
void setBackward(double periods) Sets the number of periods to forecast backward. -
getIntercept
Double getIntercept()Returns the forced intercept value, ornullif auto. -
setIntercept
Sets the forced intercept value. Passnullfor auto. -
isDisplayRSquared
boolean isDisplayRSquared()Returns whether the R-squared value is displayed on the chart. -
setDisplayRSquared
void setDisplayRSquared(boolean display) Sets whether the R-squared value is displayed on the chart. -
isDisplayEquation
boolean isDisplayEquation()Returns whether the equation is displayed on the chart. -
setDisplayEquation
void setDisplayEquation(boolean display) Sets whether the equation is displayed on the chart. -
getName
String getName()Returns the custom name of this trendline, ornullif using the default. -
setName
Sets the custom name of this trendline.
-