|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.odftoolkit.simple.chart.AbstractChartContainer
public abstract class AbstractChartContainer
AbstractChartContainer is an abstract implementation of the ChartContainer interface, with a default implementation for every method defined in ChartContainer.
| Constructor Summary | |
|---|---|
protected |
AbstractChartContainer(Document doc)
The constructor to create a chart container |
| Method Summary | |
|---|---|
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 |
protected abstract DrawFrameElement |
getChartFrame()
Returns the |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractChartContainer(Document doc)
doc - - the onwer document| Method Detail |
|---|
protected abstract DrawFrameElement getChartFrame()
throws Exception
Exception
public Chart createChart(String title,
DataSet dataset,
Rectangle rect)
ChartContainer
createChart in interface ChartContainertitle - chart title.dataset - chart data set.rect - chart rectangle.
public Chart createChart(String title,
SpreadsheetDocument document,
CellRangeAddressList cellRangeAddr,
boolean firstRowAsLabel,
boolean firstColumnAsLabel,
boolean rowAsDataSeries,
Rectangle rect)
ChartContainer
createChart in interface ChartContainertitle - 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.
public Chart createChart(String title,
String[] labels,
String[] legends,
double[][] data,
Rectangle rect)
ChartContainer
createChart in interface ChartContainertitle - chart rectangle.labels - label stringslegends - legend stringsdata - chart data set.rect - chart rectangle.
public void deleteChartById(String chartId)
ChartContainer
deleteChartById in interface ChartContainerchartId - the id of specified chart.public void deleteChartByTitle(String title)
ChartContainer
deleteChartByTitle in interface ChartContainertitle - the title of specified chart(s).public Chart getChartById(String chartId)
ChartContainer
getChartById in interface ChartContainerchartId - the id of this chart.
public List<Chart> getChartByTitle(String title)
ChartContainer
getChartByTitle in interface ChartContainertitle - the title of specified chart(s).
public int getChartCount()
ChartContainer
getChartCount in interface ChartContainer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||