org.apache.poi.ss.usermodel.charts
Interface ChartDataSource<T>
-
- Type Parameters:
T- type of points the data source contents
@Beta public interface ChartDataSource<T>
Represents data model of the charts.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description java.lang.StringgetFormulaString()Returns formula representation of the data source.TgetPointAt(int index)Returns point value at specified index.intgetPointCount()Return number of points contained by data source.booleanisNumeric()Returnstrueif data source points should be treated as numbers.booleanisReference()Returnstrueif charts data source is valid cell range.
-
-
-
Method Detail
-
getPointCount
int getPointCount()
Return number of points contained by data source.- Returns:
- number of points contained by data source
-
getPointAt
T getPointAt(int index)
Returns point value at specified index.- Parameters:
index- index to value from- Returns:
- point value at specified index.
- Throws:
{@code- IndexOutOfBoundsException} if index parameter not in range0 <= index <= pointCount
-
isReference
boolean isReference()
Returnstrueif charts data source is valid cell range.- Returns:
trueif charts data source is valid cell range
-
isNumeric
boolean isNumeric()
Returnstrueif data source points should be treated as numbers.- Returns:
trueif data source points should be treated as numbers
-
getFormulaString
java.lang.String getFormulaString()
Returns formula representation of the data source. It is only applicable for data source that is valid cell range.- Returns:
- formula representation of the data source
- Throws:
{@code- UnsupportedOperationException} if the data source is not a reference.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG