Package io.keikai.model.impl.chart
Class TrendlineImpl
java.lang.Object
io.keikai.model.impl.chart.TrendlineImpl
- All Implemented Interfaces:
STrendline,Serializable
Default implementation of
STrendline.- Since:
- 7.0.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.keikai.model.STrendline
STrendline.TrendlineType -
Constructor Summary
Constructors -
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.
-
Constructor Details
-
TrendlineImpl
-
-
Method Details
-
getType
Description copied from interface:STrendlineReturns the trendline type.- Specified by:
getTypein interfaceSTrendline
-
setType
Description copied from interface:STrendlineSets the trendline type.- Specified by:
setTypein interfaceSTrendline
-
getOrder
public int getOrder()Description copied from interface:STrendlineReturns the polynomial order (valid range 2-6, only meaningful when type is POLYNOMIAL).- Specified by:
getOrderin interfaceSTrendline
-
setOrder
public void setOrder(int order) Description copied from interface:STrendlineSets the polynomial order (valid range 2-6).- Specified by:
setOrderin interfaceSTrendline
-
getPeriod
public int getPeriod()Description copied from interface:STrendlineReturns the moving-average period (only meaningful when type is MOVING_AVERAGE).- Specified by:
getPeriodin interfaceSTrendline
-
setPeriod
public void setPeriod(int period) Description copied from interface:STrendlineSets the moving-average period.- Specified by:
setPeriodin interfaceSTrendline
-
getForward
public double getForward()Description copied from interface:STrendlineReturns the number of periods to forecast forward.- Specified by:
getForwardin interfaceSTrendline
-
setForward
public void setForward(double periods) Description copied from interface:STrendlineSets the number of periods to forecast forward.- Specified by:
setForwardin interfaceSTrendline
-
getBackward
public double getBackward()Description copied from interface:STrendlineReturns the number of periods to forecast backward.- Specified by:
getBackwardin interfaceSTrendline
-
setBackward
public void setBackward(double periods) Description copied from interface:STrendlineSets the number of periods to forecast backward.- Specified by:
setBackwardin interfaceSTrendline
-
getIntercept
Description copied from interface:STrendlineReturns the forced intercept value, ornullif auto.- Specified by:
getInterceptin interfaceSTrendline
-
setIntercept
Description copied from interface:STrendlineSets the forced intercept value. Passnullfor auto.- Specified by:
setInterceptin interfaceSTrendline
-
isDisplayRSquared
public boolean isDisplayRSquared()Description copied from interface:STrendlineReturns whether the R-squared value is displayed on the chart.- Specified by:
isDisplayRSquaredin interfaceSTrendline
-
setDisplayRSquared
public void setDisplayRSquared(boolean display) Description copied from interface:STrendlineSets whether the R-squared value is displayed on the chart.- Specified by:
setDisplayRSquaredin interfaceSTrendline
-
isDisplayEquation
public boolean isDisplayEquation()Description copied from interface:STrendlineReturns whether the equation is displayed on the chart.- Specified by:
isDisplayEquationin interfaceSTrendline
-
setDisplayEquation
public void setDisplayEquation(boolean display) Description copied from interface:STrendlineSets whether the equation is displayed on the chart.- Specified by:
setDisplayEquationin interfaceSTrendline
-
getName
Description copied from interface:STrendlineReturns the custom name of this trendline, ornullif using the default.- Specified by:
getNamein interfaceSTrendline
-
setName
Description copied from interface:STrendlineSets the custom name of this trendline.- Specified by:
setNamein interfaceSTrendline
-