Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER Copyright 2011 IBM. All rights reserved. Use is subject to license terms. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. You can also obtain a copy of the License at http://odftoolkit.org/docs/license.txt Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. /
 
 package org.odftoolkit.simple.chart;
 
 import java.util.List;
 
ChartContainer is a container which maintains Chart(s) as element(s). Chart(s) can be added, removed and iterated in this container.

 
 public interface ChartContainer {

Creates a new Chart for this container.

Parameters:
title chart title.
dataset chart data set.
rect chart rectangle.
Returns:
the created chart.
Since:
0.6
 
 	public Chart createChart(String titleDataSet datasetRectangle rect);

Creates a new Chart for this container.

Parameters:
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.
Returns:
the created chart.
Since:
0.6
 
 	public Chart createChart(String titleSpreadsheetDocument documentCellRangeAddressList cellRangeAddr,
 			boolean firstRowAsLabelboolean firstColumnAsLabelboolean rowAsDataSeriesRectangle rect);

Creates a new Chart for this container.

Parameters:
title chart rectangle.
labels label strings
legends legend strings
data chart data set.
rect chart rectangle.
Returns:
the created chart.
Since:
0.6
 
 	public Chart createChart(String titleString[] labelsString[] legendsdouble[][] dataRectangle rect);

Deletes chart by chart id.

Parameters:
chartId the id of specified chart.
Since:
0.6
	public void deleteChartById(String chartId);

Deletes chart(s) by chart title.

Parameters:
title the title of specified chart(s).
Since:
0.6
	public void deleteChartByTitle(String title);

Gets chart with specified id.

Parameters:
chartId the id of this chart.
Returns:
the chart with specified id.
Since:
0.6
	public Chart getChartById(String chartId);

Gets chart list with specified title.

Parameters:
title the title of specified chart(s).
Returns:
the chart(s) with specified title.
Since:
0.6
	public List<ChartgetChartByTitle(String title);

Returns the chart count of this container

Returns:
the chart count of this container
Since:
0.6
	public int getChartCount();
New to GrepCode? Check out our FAQ X