Package io.keikai.model
Interface SChart
- All Known Implementing Classes:
AbstractChartAdv,ChartImpl
public interface SChart
Represents a chart in a sheet.
- Since:
- 3.5.0
- Author:
- dennis
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumstatic enumstatic enumstatic enum -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCategoryAxis(SChartAxis axis) voidaddDateAxis(SChartAxis axis) voidaddValueAxis(SChartAxis axis) intReturns the chart-area (chart frame) fill colour, ornullwhen the source uses the application default.Returns the chart-area (chart frame) border/line colour, ornullwhen the source uses the application default.getData()intintgetId()getName()Returns the name.intintgetRotX()intgetRotY()getSheet()getTitle()default StringReturns the formula (a cell reference such asSheet1!$A$1) backing the chart title, ornullwhen the title is a plain literal.getType()default StringReturns the formula backing the category (X) axis title, ornull.default StringReturns the formula backing the value (Y) axis title, ornull.booleanReturnstruewhen the chart-area frame border is explicitly suppressed (OOXML<a:ln><a:noFill/></a:ln>).booleanbooleanbooleanbooleanbooleanisThreeD()booleanvoidsetAnchor(ViewAnchor anchor) voidsetBarOverlap(int overlap) voidsetChartAreaFill(SColor color) Sets the chart-area (chart frame) fill colour.voidsetChartAreaLineColor(SColor color) Sets the chart-area (chart frame) border/line colour.voidsetChartAreaNoLine(boolean noLine) Sets whether the chart-area frame border is explicitly suppressed.voidsetDepthPercent(int percent) voidsetEmptyAsGaps(boolean emptyAsGaps) voidsetGrouping(SChart.ChartGrouping grouping) voidsetHPercent(int percent) voidvoidSets the name.voidsetPerspective(int perspective) voidsetPlotOnlyVisibleCells(boolean plotOnlyVisibleCells) voidsetRightAngleAxes(boolean b) voidsetRotX(int rotX) voidsetRotY(int rotY) voidsetSparkline(boolean sparkline) voidsetThreeD(boolean threeD) voiddefault voidsetTitleFormula(String formula) Binds the chart title to a worksheet cell.voidsetWinloseSpark(boolean winlose) voidsetXAxisTitle(String xAxisTitle) default voidsetXAxisTitleFormula(String formula) Binds the category (X) axis title to a worksheet cell.voidsetYAxisTitle(String yAxisTitle) default voidsetYAxisTitleFormula(String formula) Binds the value (Y) axis title to a worksheet cell.
-
Method Details
-
getId
String getId() -
getSheet
SSheet getSheet() -
getType
SChart.ChartType getType() -
getData
SChartData getData() -
getAnchor
ViewAnchor getAnchor() -
setAnchor
-
getTitle
String getTitle() -
getXAxisTitle
String getXAxisTitle() -
getYAxisTitle
String getYAxisTitle() -
setTitle
-
setXAxisTitle
-
setYAxisTitle
-
getTitleFormula
Returns the formula (a cell reference such asSheet1!$A$1) backing the chart title, ornullwhen the title is a plain literal.Declared
defaultfor backward compatibility: existingSChartimplementations that predate KEIKAI-787 keep compiling and report "no formula".- Since:
- 7.0.0
-
setTitleFormula
Binds the chart title to a worksheet cell. When set,getTitle()returns the evaluated value offormula. Passnullto clear the binding and fall back to the literal title. (KEIKAI-787)The
defaultimplementation throwsUnsupportedOperationException; implementations that support formula-backed titles (e.g.ChartImpl) override it.- Since:
- 7.0.0
-
getXAxisTitleFormula
Returns the formula backing the category (X) axis title, ornull.- Since:
- 7.0.0
-
setXAxisTitleFormula
Binds the category (X) axis title to a worksheet cell. (KEIKAI-787)- Since:
- 7.0.0
-
getYAxisTitleFormula
Returns the formula backing the value (Y) axis title, ornull.- Since:
- 7.0.0
-
setYAxisTitleFormula
Binds the value (Y) axis title to a worksheet cell. (KEIKAI-787)- Since:
- 7.0.0
-
setLegendPosition
-
getLegendPosition
SChart.ChartLegendPosition getLegendPosition() -
setGrouping
-
getGrouping
SChart.ChartGrouping getGrouping() -
getBarDirection
SChart.BarDirection getBarDirection() -
isThreeD
boolean isThreeD() -
setThreeD
void setThreeD(boolean threeD) -
getValueAxises
List<SChartAxis> getValueAxises() -
getCategoryAxises
List<SChartAxis> getCategoryAxises() -
getDateAxises
List<SChartAxis> getDateAxises() -
addValueAxis
-
addCategoryAxis
-
addDateAxis
-
getRotX
int getRotX() -
setRotX
void setRotX(int rotX) -
getRotY
int getRotY() -
setRotY
void setRotY(int rotY) -
getPerspective
int getPerspective() -
setPerspective
void setPerspective(int perspective) -
getHPercent
int getHPercent() -
setHPercent
void setHPercent(int percent) -
getDepthPercent
int getDepthPercent() -
setDepthPercent
void setDepthPercent(int percent) -
isRightAngleAxes
boolean isRightAngleAxes() -
setRightAngleAxes
void setRightAngleAxes(boolean b) -
getBarOverlap
int getBarOverlap() -
setBarOverlap
void setBarOverlap(int overlap) -
setPlotOnlyVisibleCells
void setPlotOnlyVisibleCells(boolean plotOnlyVisibleCells) -
isPlotOnlyVisibleCells
boolean isPlotOnlyVisibleCells() -
setEmptyAsGaps
void setEmptyAsGaps(boolean emptyAsGaps) -
isEmptyAsGaps
boolean isEmptyAsGaps() -
setSparkline
void setSparkline(boolean sparkline) -
isSparkline
boolean isSparkline() -
setWinloseSpark
void setWinloseSpark(boolean winlose) -
isWinloseSpark
boolean isWinloseSpark() -
getName
String getName()Returns the name.- Returns:
- name
- Since:
- 6.2.0
-
setName
Sets the name.- Since:
- 6.2.0
-
getChartAreaFill
SColor getChartAreaFill()Returns the chart-area (chart frame) fill colour, ornullwhen the source uses the application default. KEIKAI-520.- Since:
- 7.0.0
-
setChartAreaFill
Sets the chart-area (chart frame) fill colour. KEIKAI-520.- Since:
- 7.0.0
-
getChartAreaLineColor
SColor getChartAreaLineColor()Returns the chart-area (chart frame) border/line colour, ornullwhen the source uses the application default. KEIKAI-520.- Since:
- 7.0.0
-
setChartAreaLineColor
Sets the chart-area (chart frame) border/line colour. KEIKAI-520.- Since:
- 7.0.0
-
isChartAreaNoLine
boolean isChartAreaNoLine()Returnstruewhen the chart-area frame border is explicitly suppressed (OOXML<a:ln><a:noFill/></a:ln>). KEIKAI-520.- Since:
- 7.0.0
-
setChartAreaNoLine
void setChartAreaNoLine(boolean noLine) Sets whether the chart-area frame border is explicitly suppressed. KEIKAI-520.- Since:
- 7.0.0
-