public interface ChartContainer
Chart,
TextDocument,
SpreadsheetDocument,
PresentationDocument,
Slide| Modifier and Type | Method and Description |
|---|---|
Chart |
createChart(String title,
DataSet dataset,
Rectangle rect)
Creates a new Chart for this container.
|
Chart |
createChart(String title,
SpreadsheetDocument document,
CellRangeAddressList cellRangeAddr,
boolean firstRowAsLabel,
boolean firstColumnAsLabel,
boolean rowAsDataSeries,
Rectangle rect)
Creates a new Chart for this container.
|
Chart |
createChart(String title,
String[] labels,
String[] legends,
double[][] data,
Rectangle rect)
Creates a new Chart for this container.
|
void |
deleteChartById(String chartId)
Deletes chart by chart id.
|
void |
deleteChartByTitle(String title)
Deletes chart(s) by chart title.
|
Chart |
getChartById(String chartId)
Gets chart with specified id.
|
List<Chart> |
getChartByTitle(String title)
Gets chart list with specified title.
|
int |
getChartCount()
Returns the chart count of this container
|
Chart createChart(String title, DataSet dataset, Rectangle rect)
title - chart title.dataset - chart data set.rect - chart rectangle.Chart createChart(String title, SpreadsheetDocument document, CellRangeAddressList cellRangeAddr, boolean firstRowAsLabel, boolean firstColumnAsLabel, boolean rowAsDataSeries, Rectangle rect)
title - chart title.document - the data source spreadsheet document.cellRangeAddr - the cell range address list which is used as chart data set.firstRowAsLabel - whether uses first row as label.firstColumnAsLabel - whether uses first column as label.rowAsDataSeries - whether uses data as series.rect - chart rectangle.Chart createChart(String title, String[] labels, String[] legends, double[][] data, Rectangle rect)
title - chart rectangle.labels - label stringslegends - legend stringsdata - chart data set.rect - chart rectangle.void deleteChartById(String chartId)
chartId - the id of specified chart.void deleteChartByTitle(String title)
title - the title of specified chart(s).Chart getChartById(String chartId)
chartId - the id of this chart.List<Chart> getChartByTitle(String title)
title - the title of specified chart(s).int getChartCount()
Copyright © 2010–2018 Apache Software Foundation; Copyright © 2018–2020 The Document Foundation. All rights reserved.