Package io.keikai.model.impl.chart
Class SeriesImpl
java.lang.Object
io.keikai.model.impl.AbstractSeriesAdv
io.keikai.model.impl.chart.SeriesImpl
- All Implemented Interfaces:
SSeries,FormulaContent,LinkedModelObject,Serializable
public class SeriesImpl
extends AbstractSeriesAdv
implements SSeries, Serializable, LinkedModelObject
- Since:
- 3.5.0
- Author:
- dennis
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDataPointColors(int index, SColor color) voidaddDataPointExplosion(int index, int explosion) Adds a new trendline of the given type and returns it.voidvoidClear the formula result cache if there is evaluation resultcloneSeriesImpl(AbstractChartAdv chart) voiddestroy()Destroy / release this model object, for example all the dependency, parent linking.The series' declared data-label configuration, or null when the file declared none.KEIKAI-291: per-data-point pie/doughnut slice explosion (in percent, matching OOXML<c:dPt><c:explosion val="..."/>).data point colorsReturns the error bar attached to this series, ornullif none.getId()getName()intintGets the number of x value, the result is same asSSeries.getNumOfValue()intintintgetOrder()Returns an unmodifiable list of trendlines attached to this series.getValue(int index) getXValue(int index) Gets the x value formula, the result is same asSSeries.getValuesFormula()getYValue(int index) getZValue(int index) booleanbooleanbooleanisNameFomulaHidden(int index) detect visibility for indexbooleanisSmooth()booleanisXValueFomulaHidden(int index) booleanisYValueFomulaHidden(int index) booleanisZValueFomulaHidden(int index) voidsetDataLabels(DataLabelsInfo dataLabels) voidsetDataLabelsVisible(boolean dataLabelsVisible) voidsetDefaultColor(SColor defaultColor) voidsetErrorBar(SErrorBar errorBar) Sets the error bar for this series.voidsetFormula(String nameExpression, String valueExpression) voidsetOrder(int order) voidsetSmooth(boolean _smooth) voidsetXYFormula(String nameExpression, String xValueExpression, String yValueExpression) voidsetXYZFormula(FormulaExpression nameExpr, FormulaExpression xValueExpr, FormulaExpression yValueExpr, FormulaExpression zValueExpr) voidsetXYZFormula(String nameExpression, String xValueExpression, String yValueExpression, String zValueExpression)
-
Constructor Details
-
SeriesImpl
-
-
Method Details
-
getId
-
getName
-
getNumOfValue
public int getNumOfValue()- Specified by:
getNumOfValuein interfaceSSeries
-
getValue
-
getNumOfYValue
public int getNumOfYValue()- Specified by:
getNumOfYValuein interfaceSSeries
-
getYValue
-
getNumOfZValue
public int getNumOfZValue()- Specified by:
getNumOfZValuein interfaceSSeries
-
getZValue
-
setFormula
- Specified by:
setFormulain interfaceSSeries
-
setXYFormula
- Specified by:
setXYFormulain interfaceSSeries
-
setXYZFormula
public void setXYZFormula(String nameExpression, String xValueExpression, String yValueExpression, String zValueExpression) - Specified by:
setXYZFormulain interfaceSSeries
-
isFormulaParsingError
public boolean isFormulaParsingError()- Specified by:
isFormulaParsingErrorin interfaceFormulaContent- Returns:
- returns TRUE if it has parsing error, FALSE if no error found or not a formula content
-
getNameFormula
- Specified by:
getNameFormulain interfaceSSeries
-
getValuesFormula
- Specified by:
getValuesFormulain interfaceSSeries
-
getYValuesFormula
- Specified by:
getYValuesFormulain interfaceSSeries
-
getZValuesFormula
- Specified by:
getZValuesFormulain interfaceSSeries
-
clearFormulaResultCache
public void clearFormulaResultCache()Description copied from interface:FormulaContentClear the formula result cache if there is evaluation result- Specified by:
clearFormulaResultCachein interfaceFormulaContent
-
destroy
public void destroy()Description copied from interface:LinkedModelObjectDestroy / release this model object, for example all the dependency, parent linking. this method has to be called before remove this linking from parent object- Specified by:
destroyin interfaceLinkedModelObject
-
checkOrphan
public void checkOrphan()- Specified by:
checkOrphanin interfaceLinkedModelObject
-
getNumOfXValue
public int getNumOfXValue()Description copied from interface:SSeriesGets the number of x value, the result is same asSSeries.getNumOfValue()- Specified by:
getNumOfXValuein interfaceSSeries- Returns:
-
getXValue
- Specified by:
getXValuein interfaceSSeries- Returns:
- returns the x value specifed by the index, the result is same as
SSeries.getValue(int)
-
getXValuesFormula
Description copied from interface:SSeriesGets the x value formula, the result is same asSSeries.getValuesFormula()- Specified by:
getXValuesFormulain interfaceSSeries- Returns:
-
cloneSeriesImpl
-
getNameFormulaExpression
- Specified by:
getNameFormulaExpressionin classAbstractSeriesAdv
-
getValuesFormulaExpression
- Specified by:
getValuesFormulaExpressionin classAbstractSeriesAdv- Returns:
-
getXValuesFormulaExpression
- Specified by:
getXValuesFormulaExpressionin classAbstractSeriesAdv- Returns:
-
getYValuesFormulaExpression
- Specified by:
getYValuesFormulaExpressionin classAbstractSeriesAdv- Returns:
-
getZValuesFormulaExpression
- Specified by:
getZValuesFormulaExpressionin classAbstractSeriesAdv- Returns:
-
setXYZFormula
public void setXYZFormula(FormulaExpression nameExpr, FormulaExpression xValueExpr, FormulaExpression yValueExpr, FormulaExpression zValueExpr) - Specified by:
setXYZFormulain classAbstractSeriesAdv
-
isNameFomulaHidden
public boolean isNameFomulaHidden(int index) Description copied from interface:SSeriesdetect visibility for index- Specified by:
isNameFomulaHiddenin interfaceSSeries- Returns:
-
isXValueFomulaHidden
public boolean isXValueFomulaHidden(int index) - Specified by:
isXValueFomulaHiddenin interfaceSSeries
-
isYValueFomulaHidden
public boolean isYValueFomulaHidden(int index) - Specified by:
isYValueFomulaHiddenin interfaceSSeries
-
isZValueFomulaHidden
public boolean isZValueFomulaHidden(int index) - Specified by:
isZValueFomulaHiddenin interfaceSSeries
-
getDefaultColor
Description copied from class:AbstractSeriesAdvdata point colors- Specified by:
getDefaultColorin classAbstractSeriesAdv
-
setDefaultColor
- Specified by:
setDefaultColorin classAbstractSeriesAdv
-
getDataPointColors
- Specified by:
getDataPointColorsin classAbstractSeriesAdv
-
addDataPointColors
- Specified by:
addDataPointColorsin classAbstractSeriesAdv
-
getDataPointExplosions
Description copied from class:AbstractSeriesAdvKEIKAI-291: per-data-point pie/doughnut slice explosion (in percent, matching OOXML<c:dPt><c:explosion val="..."/>). Keyed by the 0-based point index; absent /0means no explosion.- Specified by:
getDataPointExplosionsin classAbstractSeriesAdv
-
addDataPointExplosion
public void addDataPointExplosion(int index, int explosion) - Specified by:
addDataPointExplosionin classAbstractSeriesAdv
-
getOrder
public int getOrder()- Specified by:
getOrderin classAbstractSeriesAdv
-
setOrder
public void setOrder(int order) - Specified by:
setOrderin classAbstractSeriesAdv
-
isSmooth
public boolean isSmooth()- Specified by:
isSmoothin classAbstractSeriesAdv
-
setSmooth
public void setSmooth(boolean _smooth) - Specified by:
setSmoothin classAbstractSeriesAdv
-
isDataLabelsVisible
public boolean isDataLabelsVisible()- Specified by:
isDataLabelsVisiblein classAbstractSeriesAdv
-
setDataLabelsVisible
public void setDataLabelsVisible(boolean dataLabelsVisible) - Specified by:
setDataLabelsVisiblein classAbstractSeriesAdv
-
getDataLabels
Description copied from class:AbstractSeriesAdvThe series' declared data-label configuration, or null when the file declared none.AbstractSeriesAdv.isDataLabelsVisible()answers only whether labels are drawn; this says what they contain.- Specified by:
getDataLabelsin classAbstractSeriesAdv
-
setDataLabels
- Specified by:
setDataLabelsin classAbstractSeriesAdv
-
getTrendlines
Description copied from interface:SSeriesReturns an unmodifiable list of trendlines attached to this series.- Specified by:
getTrendlinesin interfaceSSeries- Specified by:
getTrendlinesin classAbstractSeriesAdv- Returns:
- the trendlines, never
null
-
addTrendline
Description copied from interface:SSeriesAdds a new trendline of the given type and returns it.- Specified by:
addTrendlinein interfaceSSeries- Specified by:
addTrendlinein classAbstractSeriesAdv- Parameters:
type- the trendline type- Returns:
- the newly created trendline
-
getErrorBar
Description copied from interface:SSeriesReturns the error bar attached to this series, ornullif none.- Specified by:
getErrorBarin interfaceSSeries- Specified by:
getErrorBarin classAbstractSeriesAdv- Returns:
- the error bar, or
null
-
setErrorBar
Description copied from interface:SSeriesSets the error bar for this series.- Specified by:
setErrorBarin interfaceSSeries- Specified by:
setErrorBarin classAbstractSeriesAdv- Parameters:
errorBar- the error bar, ornullto remove
-