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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SeriesImpl(AbstractChartAdv chart, String id)
-
Method Summary
-
-
-
Constructor Detail
-
SeriesImpl
public SeriesImpl(AbstractChartAdv chart, String id)
-
-
Method Detail
-
getNumOfValue
public int getNumOfValue()
- Specified by:
getNumOfValue
in interfaceSSeries
-
getNumOfYValue
public int getNumOfYValue()
- Specified by:
getNumOfYValue
in interfaceSSeries
-
getNumOfZValue
public int getNumOfZValue()
- Specified by:
getNumOfZValue
in interfaceSSeries
-
setFormula
public void setFormula(String nameExpression, String valueExpression)
- Specified by:
setFormula
in interfaceSSeries
-
setXYFormula
public void setXYFormula(String nameExpression, String xValueExpression, String yValueExpression)
- Specified by:
setXYFormula
in interfaceSSeries
-
setXYZFormula
public void setXYZFormula(String nameExpression, String xValueExpression, String yValueExpression, String zValueExpression)
- Specified by:
setXYZFormula
in interfaceSSeries
-
isFormulaParsingError
public boolean isFormulaParsingError()
- Specified by:
isFormulaParsingError
in interfaceFormulaContent
- Returns:
- returns TRUE if it has parsing error, FALSE if no error found or not a formula content
-
getNameFormula
public String getNameFormula()
- Specified by:
getNameFormula
in interfaceSSeries
-
getValuesFormula
public String getValuesFormula()
- Specified by:
getValuesFormula
in interfaceSSeries
-
getYValuesFormula
public String getYValuesFormula()
- Specified by:
getYValuesFormula
in interfaceSSeries
-
getZValuesFormula
public String getZValuesFormula()
- Specified by:
getZValuesFormula
in interfaceSSeries
-
clearFormulaResultCache
public void clearFormulaResultCache()
Description copied from interface:FormulaContent
Clear the formula result cache if there is evaluation result- Specified by:
clearFormulaResultCache
in interfaceFormulaContent
-
destroy
public void destroy()
Description copied from interface:LinkedModelObject
Destroy / 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:
destroy
in interfaceLinkedModelObject
-
checkOrphan
public void checkOrphan()
- Specified by:
checkOrphan
in interfaceLinkedModelObject
-
getNumOfXValue
public int getNumOfXValue()
Description copied from interface:SSeries
Gets the number of x value, the result is same asSSeries.getNumOfValue()
- Specified by:
getNumOfXValue
in interfaceSSeries
- Returns:
-
getXValue
public Object getXValue(int index)
- Specified by:
getXValue
in interfaceSSeries
- Returns:
- returns the x value specifed by the index, the result is same as
SSeries.getValue(int)
-
getXValuesFormula
public String getXValuesFormula()
Description copied from interface:SSeries
Gets the x value formula, the result is same asSSeries.getValuesFormula()
- Specified by:
getXValuesFormula
in interfaceSSeries
- Returns:
-
cloneSeriesImpl
public SeriesImpl cloneSeriesImpl(AbstractChartAdv chart)
-
getNameFormulaExpression
public FormulaExpression getNameFormulaExpression()
- Specified by:
getNameFormulaExpression
in classAbstractSeriesAdv
-
getValuesFormulaExpression
public FormulaExpression getValuesFormulaExpression()
- Specified by:
getValuesFormulaExpression
in classAbstractSeriesAdv
- Returns:
-
getXValuesFormulaExpression
public FormulaExpression getXValuesFormulaExpression()
- Specified by:
getXValuesFormulaExpression
in classAbstractSeriesAdv
- Returns:
-
getYValuesFormulaExpression
public FormulaExpression getYValuesFormulaExpression()
- Specified by:
getYValuesFormulaExpression
in classAbstractSeriesAdv
- Returns:
-
getZValuesFormulaExpression
public FormulaExpression getZValuesFormulaExpression()
- Specified by:
getZValuesFormulaExpression
in classAbstractSeriesAdv
- Returns:
-
setXYZFormula
public void setXYZFormula(FormulaExpression nameExpr, FormulaExpression xValueExpr, FormulaExpression yValueExpr, FormulaExpression zValueExpr)
- Specified by:
setXYZFormula
in classAbstractSeriesAdv
-
isNameFomulaHidden
public boolean isNameFomulaHidden(int index)
Description copied from interface:SSeries
detect visibility for index- Specified by:
isNameFomulaHidden
in interfaceSSeries
- Returns:
-
isXValueFomulaHidden
public boolean isXValueFomulaHidden(int index)
- Specified by:
isXValueFomulaHidden
in interfaceSSeries
-
isYValueFomulaHidden
public boolean isYValueFomulaHidden(int index)
- Specified by:
isYValueFomulaHidden
in interfaceSSeries
-
isZValueFomulaHidden
public boolean isZValueFomulaHidden(int index)
- Specified by:
isZValueFomulaHidden
in interfaceSSeries
-
getDefaultColor
public SColor getDefaultColor()
Description copied from class:AbstractSeriesAdv
data point colors- Specified by:
getDefaultColor
in classAbstractSeriesAdv
-
setDefaultColor
public void setDefaultColor(SColor defaultColor)
- Specified by:
setDefaultColor
in classAbstractSeriesAdv
-
getDataPointColors
public Map<Integer,SColor> getDataPointColors()
- Specified by:
getDataPointColors
in classAbstractSeriesAdv
-
addDataPointColors
public void addDataPointColors(int index, SColor color)
- Specified by:
addDataPointColors
in classAbstractSeriesAdv
-
getOrder
public int getOrder()
- Specified by:
getOrder
in classAbstractSeriesAdv
-
setOrder
public void setOrder(int order)
- Specified by:
setOrder
in classAbstractSeriesAdv
-
isSmooth
public boolean isSmooth()
- Specified by:
isSmooth
in classAbstractSeriesAdv
-
setSmooth
public void setSmooth(boolean _smooth)
- Specified by:
setSmooth
in classAbstractSeriesAdv
-
isDataLabelsVisible
public boolean isDataLabelsVisible()
- Specified by:
isDataLabelsVisible
in classAbstractSeriesAdv
-
setDataLabelsVisible
public void setDataLabelsVisible(boolean dataLabelsVisible)
- Specified by:
setDataLabelsVisible
in classAbstractSeriesAdv
-
-