Package io.keikai.model.impl
Class ChartImpl
- java.lang.Object
-
- io.keikai.model.impl.AbstractChartAdv
-
- io.keikai.model.impl.ChartImpl
-
- All Implemented Interfaces:
LinkedModelObject
,SChart
,Serializable
public class ChartImpl extends AbstractChartAdv
- Since:
- 3.5.0
- Author:
- dennis
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.keikai.model.SChart
SChart.BarDirection, SChart.ChartGrouping, SChart.ChartLegendPosition, SChart.ChartType
-
-
Constructor Summary
Constructors Constructor Description ChartImpl(AbstractSheetAdv sheet, String id, SChart.ChartType type, ViewAnchor anchor)
-
Method Summary
-
-
-
Constructor Detail
-
ChartImpl
public ChartImpl(AbstractSheetAdv sheet, String id, SChart.ChartType type, ViewAnchor anchor)
-
-
Method Detail
-
getSheet
public SSheet getSheet()
-
getId
public String getId()
-
getAnchor
public ViewAnchor getAnchor()
-
setAnchor
public void setAnchor(ViewAnchor anchor)
-
getType
public SChart.ChartType getType()
-
getData
public SChartData getData()
-
getTitle
public String getTitle()
-
setTitle
public void setTitle(String title)
-
getXAxisTitle
public String getXAxisTitle()
-
setXAxisTitle
public void setXAxisTitle(String xAxisTitle)
-
getYAxisTitle
public String getYAxisTitle()
-
setYAxisTitle
public void setYAxisTitle(String yAxisTitle)
-
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
-
checkOrphan
public void checkOrphan()
-
getLegendPosition
public SChart.ChartLegendPosition getLegendPosition()
-
setLegendPosition
public void setLegendPosition(SChart.ChartLegendPosition pos)
-
getGrouping
public SChart.ChartGrouping getGrouping()
-
setGrouping
public void setGrouping(SChart.ChartGrouping grouping)
-
getBarDirection
public SChart.BarDirection getBarDirection()
-
isThreeD
public boolean isThreeD()
-
setThreeD
public void setThreeD(boolean threeD)
-
isEmptyAsGaps
public boolean isEmptyAsGaps()
-
setEmptyAsGaps
public void setEmptyAsGaps(boolean emptyAsGaps)
-
isSparkline
public boolean isSparkline()
-
setSparkline
public void setSparkline(boolean sparkline)
-
isWinloseSpark
public boolean isWinloseSpark()
-
setWinloseSpark
public void setWinloseSpark(boolean winlose)
-
addValueAxis
public void addValueAxis(SChartAxis axis)
-
addCategoryAxis
public void addCategoryAxis(SChartAxis axis)
-
addDateAxis
public void addDateAxis(SChartAxis axis)
-
getValueAxises
public List<SChartAxis> getValueAxises()
-
getCategoryAxises
public List<SChartAxis> getCategoryAxises()
-
getDateAxises
public List<SChartAxis> getDateAxises()
-
getRotX
public int getRotX()
-
setRotX
public void setRotX(int rotX)
-
getRotY
public int getRotY()
-
setRotY
public void setRotY(int rotY)
-
getPerspective
public int getPerspective()
-
setPerspective
public void setPerspective(int perspective)
-
getHPercent
public int getHPercent()
-
setHPercent
public void setHPercent(int percent)
-
getDepthPercent
public int getDepthPercent()
-
setDepthPercent
public void setDepthPercent(int percent)
-
isRightAngleAxes
public boolean isRightAngleAxes()
-
setRightAngleAxes
public void setRightAngleAxes(boolean b)
-
getBarOverlap
public int getBarOverlap()
-
setBarOverlap
public void setBarOverlap(int overlap)
-
isPlotOnlyVisibleCells
public boolean isPlotOnlyVisibleCells()
-
setPlotOnlyVisibleCells
public void setPlotOnlyVisibleCells(boolean plotOnlyVisibleCells)
-
getSeriesColors
public List<SColor> getSeriesColors()
Description copied from class:AbstractChartAdv
Gets the default colors for series- Specified by:
getSeriesColors
in classAbstractChartAdv
-
setSeriesColors
public void setSeriesColors(List<SColor> colors)
Description copied from class:AbstractChartAdv
Sets the default colors for series. When all colors are used, rollback to beginning again.- Specified by:
setSeriesColors
in classAbstractChartAdv
-
getChartData
public List<SChartData> getChartData()
- Specified by:
getChartData
in classAbstractChartAdv
-
createChartData
public SChartData createChartData(SChart.ChartType type)
Description copied from class:AbstractChartAdv
this method will return specified chart data with category and series values- Specified by:
createChartData
in classAbstractChartAdv
- Parameters:
type
- chart type- Returns:
- specified chart data.
-
addChartData
public void addChartData(SChartData chartData)
- Specified by:
addChartData
in classAbstractChartAdv
-
isAutoTitleDeleted
public Boolean isAutoTitleDeleted()
- Specified by:
isAutoTitleDeleted
in classAbstractChartAdv
-
setAutoTitleDeleted
public void setAutoTitleDeleted(Boolean autoTitleDeleted)
- Specified by:
setAutoTitleDeleted
in classAbstractChartAdv
-
isShowTitle
public boolean isShowTitle()
- Specified by:
isShowTitle
in classAbstractChartAdv
-
setShowTitle
public void setShowTitle(boolean showTitle)
- Specified by:
setShowTitle
in classAbstractChartAdv
-
isShowDataLabelsOverMax
public boolean isShowDataLabelsOverMax()
- Specified by:
isShowDataLabelsOverMax
in classAbstractChartAdv
-
setShowDataLabelsOverMax
public void setShowDataLabelsOverMax(boolean showDataLabelsOverMax)
- Specified by:
setShowDataLabelsOverMax
in classAbstractChartAdv
-
setSparklineNegativePointVisible
public void setSparklineNegativePointVisible(boolean visible)
- Specified by:
setSparklineNegativePointVisible
in classAbstractChartAdv
-
isSparklineNegativePointVisible
public boolean isSparklineNegativePointVisible()
- Specified by:
isSparklineNegativePointVisible
in classAbstractChartAdv
-
setSparklineFirstPointVisible
public void setSparklineFirstPointVisible(boolean visible)
- Specified by:
setSparklineFirstPointVisible
in classAbstractChartAdv
-
isSparklineFirstPointVisible
public boolean isSparklineFirstPointVisible()
- Specified by:
isSparklineFirstPointVisible
in classAbstractChartAdv
-
setSparklineLastPointVisible
public void setSparklineLastPointVisible(boolean visible)
- Specified by:
setSparklineLastPointVisible
in classAbstractChartAdv
-
isSparklineLastPointVisible
public boolean isSparklineLastPointVisible()
- Specified by:
isSparklineLastPointVisible
in classAbstractChartAdv
-
setSparklineHighPointVisible
public void setSparklineHighPointVisible(boolean visible)
- Specified by:
setSparklineHighPointVisible
in classAbstractChartAdv
-
isSparklineHighPointVisible
public boolean isSparklineHighPointVisible()
- Specified by:
isSparklineHighPointVisible
in classAbstractChartAdv
-
setSparklineLowPointVisible
public void setSparklineLowPointVisible(boolean visible)
- Specified by:
setSparklineLowPointVisible
in classAbstractChartAdv
-
isSparklineLowPointVisible
public boolean isSparklineLowPointVisible()
- Specified by:
isSparklineLowPointVisible
in classAbstractChartAdv
-
setSparklineMarkerVisible
public void setSparklineMarkerVisible(boolean visible)
- Specified by:
setSparklineMarkerVisible
in classAbstractChartAdv
-
isSparklineMarkerVisible
public boolean isSparklineMarkerVisible()
- Specified by:
isSparklineMarkerVisible
in classAbstractChartAdv
-
setSparklineSeriesColor
public void setSparklineSeriesColor(SColor color)
- Specified by:
setSparklineSeriesColor
in classAbstractChartAdv
-
getSparklineSeriesColor
public SColor getSparklineSeriesColor()
- Specified by:
getSparklineSeriesColor
in classAbstractChartAdv
-
setSparklineNegativePointColor
public void setSparklineNegativePointColor(SColor color)
- Specified by:
setSparklineNegativePointColor
in classAbstractChartAdv
-
getSparklineNegativePointColor
public SColor getSparklineNegativePointColor()
- Specified by:
getSparklineNegativePointColor
in classAbstractChartAdv
-
setSparklineFirstPointColor
public void setSparklineFirstPointColor(SColor color)
- Specified by:
setSparklineFirstPointColor
in classAbstractChartAdv
-
getSparklineFirstPointColor
public SColor getSparklineFirstPointColor()
- Specified by:
getSparklineFirstPointColor
in classAbstractChartAdv
-
setSparklineLastPointColor
public void setSparklineLastPointColor(SColor color)
- Specified by:
setSparklineLastPointColor
in classAbstractChartAdv
-
getSparklineLastPointColor
public SColor getSparklineLastPointColor()
- Specified by:
getSparklineLastPointColor
in classAbstractChartAdv
-
setSparklineHighPointColor
public void setSparklineHighPointColor(SColor color)
- Specified by:
setSparklineHighPointColor
in classAbstractChartAdv
-
getSparklineHighPointColor
public SColor getSparklineHighPointColor()
- Specified by:
getSparklineHighPointColor
in classAbstractChartAdv
-
setSparklineLowPointColor
public void setSparklineLowPointColor(SColor color)
- Specified by:
setSparklineLowPointColor
in classAbstractChartAdv
-
getSparklineLowPointColor
public SColor getSparklineLowPointColor()
- Specified by:
getSparklineLowPointColor
in classAbstractChartAdv
-
setSparklineMarkerColor
public void setSparklineMarkerColor(SColor color)
- Specified by:
setSparklineMarkerColor
in classAbstractChartAdv
-
getSparklineMarkerColor
public SColor getSparklineMarkerColor()
- Specified by:
getSparklineMarkerColor
in classAbstractChartAdv
-
-