Package io.keikai.model.impl.chart
Class GeneralChartDataImpl
- java.lang.Object
-
- io.keikai.model.impl.chart.ChartDataAdv
-
- io.keikai.model.impl.chart.AbstractGeneralChartDataAdv
-
- io.keikai.model.impl.chart.GeneralChartDataImpl
-
- All Implemented Interfaces:
SChartData
,SGeneralChartData
,FormulaContent
,LinkedModelObject
,Serializable
- Direct Known Subclasses:
BubbleChartDataImpl
,DoughnutChartDataImpl
,GroupingChartDataImpl
,PieChartDataImpl
,ScatterChartDataImpl
public abstract class GeneralChartDataImpl extends AbstractGeneralChartDataAdv implements SGeneralChartData
- Since:
- 3.5.0
- Author:
- dennis
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GeneralChartDataImpl(AbstractChartAdv chart, String id)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.keikai.model.chart.SGeneralChartData
getType
-
-
-
-
Constructor Detail
-
GeneralChartDataImpl
public GeneralChartDataImpl(AbstractChartAdv chart, String id)
-
-
Method Detail
-
getChart
public SChart getChart()
- Specified by:
getChart
in interfaceSChartData
- Returns:
- the chart that contains the chart data.
-
getNumOfSeries
public int getNumOfSeries()
- Specified by:
getNumOfSeries
in interfaceSGeneralChartData
-
getSeries
public SSeries getSeries(int i)
- Specified by:
getSeries
in interfaceSGeneralChartData
-
getNumOfCategory
public int getNumOfCategory()
- Specified by:
getNumOfCategory
in interfaceSGeneralChartData
-
getCategory
public Object getCategory(int i)
- Specified by:
getCategory
in interfaceSGeneralChartData
-
addSeries
public SSeries addSeries()
- Specified by:
addSeries
in interfaceSGeneralChartData
-
checkOwnership
protected void checkOwnership(SSeries series)
-
removeSeries
public void removeSeries(SSeries series)
- Specified by:
removeSeries
in interfaceSGeneralChartData
-
setCategoriesFormula
public void setCategoriesFormula(String expr)
- Specified by:
setCategoriesFormula
in interfaceSGeneralChartData
-
getCategoriesFormula
public String getCategoriesFormula()
- Specified by:
getCategoriesFormula
in interfaceSGeneralChartData
-
clearFormulaResultCache
public void clearFormulaResultCache()
Description copied from interface:FormulaContent
Clear the formula result cache if there is evaluation result- Specified by:
clearFormulaResultCache
in interfaceFormulaContent
-
isFormulaParsingError
public boolean isFormulaParsingError()
Description copied from interface:SGeneralChartData
Return formula parsing state.- Specified by:
isFormulaParsingError
in interfaceFormulaContent
- Specified by:
isFormulaParsingError
in interfaceSGeneralChartData
- Returns:
- true if has error, false if no error or no formula
-
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
-
copyFrom
public void copyFrom(GeneralChartDataImpl src)
-
getCategoriesFormulaExpression
public FormulaExpression getCategoriesFormulaExpression()
- Specified by:
getCategoriesFormulaExpression
in classAbstractGeneralChartDataAdv
- Returns:
- Since:
- 3.6.0
-
setCategoriesFormula
public void setCategoriesFormula(FormulaExpression fexpr)
- Specified by:
setCategoriesFormula
in classAbstractGeneralChartDataAdv
- Parameters:
fexpr
-- Since:
- 3.6.0
-
isCategoryHidden
public boolean isCategoryHidden(int index)
- Specified by:
isCategoryHidden
in interfaceSGeneralChartData
-
getCategoryAxis
public SChartAxis getCategoryAxis()
-
setCategoryAxis
public void setCategoryAxis(SChartAxis category)
-
getDateAxis
public SChartAxis getDateAxis()
-
setDateAxis
public void setDateAxis(SChartAxis dateAxis)
-
getValueAxes
public List<SChartAxis> getValueAxes()
-
setValueAxes
public void setValueAxes(List<SChartAxis> values)
-
-