blob: 6af8f1546193a1a68dfb2d183a795154563c8db8 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_45) on Tue Mar 28 22:15:30 CEST 2017 -->
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
DataSet (Simple ODF v0.8.2-incubating - http://odftoolkit)
</TITLE>
<META NAME="date" CONTENT="2017-03-28">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="DataSet (Simple ODF v0.8.2-incubating - http://odftoolkit)";
}
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<HR>
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DataSet.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../org/odftoolkit/simple/chart/ChartType.html" title="enum in org.odftoolkit.simple.chart"><B>PREV CLASS</B></A>&nbsp;
&nbsp;NEXT CLASS</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?org/odftoolkit/simple/chart/DataSet.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="DataSet.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
org.odftoolkit.simple.chart</FONT>
<BR>
Class DataSet</H2>
<PRE>
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.odftoolkit.simple.chart.DataSet</B>
</PRE>
<HR>
<DL>
<DT><PRE>public class <B>DataSet</B><DT>extends <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></DL>
</PRE>
<P>
DataSet is wrapper class for chart data. Generally it is a 2 dimensional data
container, a set of chart data series. Each data series has a key, i.e. chart
label. The data may be a 2 dimensional double array, or a cell range address
of a sheet in Spreadsheet document. DataSet provides some convenient methods
for users to manipulate specific data series in the chart data.
<P>
<P>
<DL>
<DT><B>Since:</B></DT>
<DD>0.6</DD>
</DL>
<HR>
<P>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/chart/DataSet.html#DataSet()">DataSet</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new DataSet without argument.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/chart/DataSet.html#DataSet(org.odftoolkit.odfdom.type.CellRangeAddressList, org.odftoolkit.simple.SpreadsheetDocument, boolean, boolean, boolean)">DataSet</A></B>(<A HREF="http://incubator.apache.org/odftoolkit/odfdom/index.html/apidocs/org/odftoolkit/odfdom/type/CellRangeAddressList.html?is-external=true" title="class or interface in org.odftoolkit.odfdom.type">CellRangeAddressList</A>&nbsp;cellRangeAddress,
<A HREF="../../../../org/odftoolkit/simple/SpreadsheetDocument.html" title="class in org.odftoolkit.simple">SpreadsheetDocument</A>&nbsp;spreadsheet,
boolean&nbsp;bFirstRowAsLabel,
boolean&nbsp;bFirstColumnAsLabel,
boolean&nbsp;rowAsDataSeries)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new DataSet.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/chart/DataSet.html#DataSet(java.lang.String[], java.lang.String[], double[][])">DataSet</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]&nbsp;labels,
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]&nbsp;legends,
double[][]&nbsp;data)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new DataSet.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/chart/DataSet.html#appendDataSeries(java.lang.String, double[])">appendDataSeries</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;legend,
double[]&nbsp;values)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a data series at the end of current data set.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://incubator.apache.org/odftoolkit/odfdom/index.html/apidocs/org/odftoolkit/odfdom/type/CellRangeAddressList.html?is-external=true" title="class or interface in org.odftoolkit.odfdom.type">CellRangeAddressList</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/chart/DataSet.html#getCellRangeAddress()">getCellRangeAddress</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the cell range address list.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;double[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/chart/DataSet.html#getDataSeriesByIndex(int)">getDataSeriesByIndex</A></B>(int&nbsp;index)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the values of a data series by its index in the data set.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;double[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/chart/DataSet.html#getDataSeriesByLegend(java.lang.String, int)">getDataSeriesByLegend</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;legend,
int&nbsp;beginindex)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the values of a data series by its legend, if multiple data series
have duplicated legends, return the values of the first matched data
series.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/chart/DataSet.html#getDataSeriesCount()">getDataSeriesCount</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the count of data series in the data set.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/chart/DataSet.html#getIndexOfDataSeries(java.lang.String, int)">getIndexOfDataSeries</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;legend,
int&nbsp;beginindex)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the index of the data series by its legend.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/chart/DataSet.html#getLabelByIndex(int)">getLabelByIndex</A></B>(int&nbsp;index)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the legend of the data series by its index in the data set.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/chart/DataSet.html#getLabels()">getLabels</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the string array of labels.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/chart/DataSet.html#getLegendByIndex(int)">getLegendByIndex</A></B>(int&nbsp;index)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the legend of the data series by its index in the data set.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/chart/DataSet.html#getLegends()">getLegends</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the string array of legends.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/chart/DataSet.html#getLengthOfDataSeries(int)">getLengthOfDataSeries</A></B>(int&nbsp;index)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the data item count of the data series given by the index.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/chart/DataSet.html#getLengthOfDataSeries(java.lang.String, int)">getLengthOfDataSeries</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;legend,
int&nbsp;beginindex)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the data item count of the data series given by the label.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/chart/DataSet.html#getLocalTableCellRanges(int, int, java.util.Vector, java.util.Vector)">getLocalTableCellRanges</A></B>(int&nbsp;seriesCount,
int&nbsp;labelLength,
<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Vector.html?is-external=true" title="class or interface in java.util">Vector</A>&lt;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&gt;&nbsp;seriesCellRange,
<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Vector.html?is-external=true" title="class or interface in java.util">Vector</A>&lt;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&gt;&nbsp;legendCellAddr)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the local table cell range.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</A>[][]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/chart/DataSet.html#getLocalTableData()">getLocalTableData</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the values of a data set as a double dimension array.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/chart/DataSet.html#getLocalTableFirstColumn()">getLocalTableFirstColumn</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the first column labels of the local table.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/chart/DataSet.html#getLocalTableFirstRow()">getLocalTableFirstRow</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the first row labels of the local table.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/chart/DataSet.html#getMaxLengthOfDataSeries()">getMaxLengthOfDataSeries</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the maximal data item count</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/chart/DataSet.html#insertDataSeries(int, java.lang.String, double[])">insertDataSeries</A></B>(int&nbsp;index,
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;legend,
double[]&nbsp;values)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a data series at the index in current data set.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/chart/DataSet.html#isFirstColumnAsLabel()">isFirstColumnAsLabel</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets whether this data set uses first column as chart label.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/chart/DataSet.html#isFirstRowAsLabel()">isFirstRowAsLabel</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets whether this data set uses first row as chart label.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/chart/DataSet.html#isLocalTable()">isLocalTable</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets whether this data set uses local table.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/chart/DataSet.html#isRowAsDataSeries()">isRowAsDataSeries</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets whether this data set uses row as data series.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/chart/DataSet.html#removeDataSeries(int)">removeDataSeries</A></B>(int&nbsp;index)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes a data series by the index of the data series in the data set.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/chart/DataSet.html#removeDataSeries(java.lang.String, int)">removeDataSeries</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;legend,
int&nbsp;beginindex)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Remove a data series by the legend of the data series.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/chart/DataSet.html#setLabelByIndex(int, java.lang.String)">setLabelByIndex</A></B>(int&nbsp;index,
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;label)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets or change the legend of the data series by its index in the data
set.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/chart/DataSet.html#setLegendByIndex(int, java.lang.String)">setLegendByIndex</A></B>(int&nbsp;index,
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;legend)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets or change the legend of the data series by its index in the data
set.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/chart/DataSet.html#setLocalTable(boolean)">setLocalTable</A></B>(boolean&nbsp;isLocalTable)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets this data set uses local table or not.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/chart/DataSet.html#setValues(org.odftoolkit.odfdom.type.CellRangeAddressList, org.odftoolkit.simple.SpreadsheetDocument, boolean, boolean, boolean)">setValues</A></B>(<A HREF="http://incubator.apache.org/odftoolkit/odfdom/index.html/apidocs/org/odftoolkit/odfdom/type/CellRangeAddressList.html?is-external=true" title="class or interface in org.odftoolkit.odfdom.type">CellRangeAddressList</A>&nbsp;cellRangeAddress,
<A HREF="../../../../org/odftoolkit/simple/SpreadsheetDocument.html" title="class in org.odftoolkit.simple">SpreadsheetDocument</A>&nbsp;spreadsheet,
boolean&nbsp;bFirstRowAsLabel,
boolean&nbsp;bFirstColumnAsLabel,
boolean&nbsp;rowAsDataSeries)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets data for the data set with cell range address of sheet in
spreadsheet document or internal chart table in other chart containers.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/chart/DataSet.html#setValues(java.lang.String[], java.lang.String[], double[][])">setValues</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]&nbsp;labels,
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]&nbsp;legends,
double[][]&nbsp;data)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets or updates data for the data set with 2 dimensional double array,
the first dimension represents the index of data series, the second
dimension represents the index of data item in each data series.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/chart/DataSet.html#updateDataSeries(int, double[])">updateDataSeries</A></B>(int&nbsp;index,
double[]&nbsp;values)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Updates the data series values according to the index of the data series.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/odftoolkit/simple/chart/DataSet.html#updateDataSeries(java.lang.String, int, double[])">updateDataSeries</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;legend,
int&nbsp;beginindex,
double[]&nbsp;values)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Updates the data series values according to the legend of the data
series.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="DataSet()"><!-- --></A><H3>
DataSet</H3>
<PRE>
public <B>DataSet</B>()</PRE>
<DL>
<DD>Creates a new DataSet without argument.
<P>
</DL>
<HR>
<A NAME="DataSet(java.lang.String[], java.lang.String[], double[][])"><!-- --></A><H3>
DataSet</H3>
<PRE>
public <B>DataSet</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]&nbsp;labels,
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]&nbsp;legends,
double[][]&nbsp;data)</PRE>
<DL>
<DD>Creates a new DataSet.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>labels</CODE> - the label strings of this DataSet.<DD><CODE>legends</CODE> - the legend strings of this DataSet.<DD><CODE>data</CODE> - the data of this DataSet, which stores in 2 dimensional double
array.</DL>
</DL>
<HR>
<A NAME="DataSet(org.odftoolkit.odfdom.type.CellRangeAddressList, org.odftoolkit.simple.SpreadsheetDocument, boolean, boolean, boolean)"><!-- --></A><H3>
DataSet</H3>
<PRE>
public <B>DataSet</B>(<A HREF="http://incubator.apache.org/odftoolkit/odfdom/index.html/apidocs/org/odftoolkit/odfdom/type/CellRangeAddressList.html?is-external=true" title="class or interface in org.odftoolkit.odfdom.type">CellRangeAddressList</A>&nbsp;cellRangeAddress,
<A HREF="../../../../org/odftoolkit/simple/SpreadsheetDocument.html" title="class in org.odftoolkit.simple">SpreadsheetDocument</A>&nbsp;spreadsheet,
boolean&nbsp;bFirstRowAsLabel,
boolean&nbsp;bFirstColumnAsLabel,
boolean&nbsp;rowAsDataSeries)</PRE>
<DL>
<DD>Creates a new DataSet.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>cellRangeAddress</CODE> - the cell range address, which is used as the data source.<DD><CODE>spreadsheet</CODE> - the data source SpreadsheetDocument.<DD><CODE>bFirstRowAsLabel</CODE> - whether this data set uses first row as chart label.<DD><CODE>bFirstColumnAsLabel</CODE> - whether this data set uses first column as chart label.<DD><CODE>rowAsDataSeries</CODE> - whether this data set uses row as data series.</DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="getLocalTableCellRanges(int, int, java.util.Vector, java.util.Vector)"><!-- --></A><H3>
getLocalTableCellRanges</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getLocalTableCellRanges</B>(int&nbsp;seriesCount,
int&nbsp;labelLength,
<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Vector.html?is-external=true" title="class or interface in java.util">Vector</A>&lt;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&gt;&nbsp;seriesCellRange,
<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Vector.html?is-external=true" title="class or interface in java.util">Vector</A>&lt;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&gt;&nbsp;legendCellAddr)</PRE>
<DL>
<DD>Gets the local table cell range.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the local table cell range,</DL>
</DD>
</DL>
<HR>
<A NAME="getCellRangeAddress()"><!-- --></A><H3>
getCellRangeAddress</H3>
<PRE>
public <A HREF="http://incubator.apache.org/odftoolkit/odfdom/index.html/apidocs/org/odftoolkit/odfdom/type/CellRangeAddressList.html?is-external=true" title="class or interface in org.odftoolkit.odfdom.type">CellRangeAddressList</A> <B>getCellRangeAddress</B>()</PRE>
<DL>
<DD>Gets the cell range address list.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the cell range address list.</DL>
</DD>
</DL>
<HR>
<A NAME="appendDataSeries(java.lang.String, double[])"><!-- --></A><H3>
appendDataSeries</H3>
<PRE>
public void <B>appendDataSeries</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;legend,
double[]&nbsp;values)</PRE>
<DL>
<DD>Adds a data series at the end of current data set.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>legend</CODE> - legend for the data series.<DD><CODE>values</CODE> - data series values corresponding to the legend.</DL>
</DD>
</DL>
<HR>
<A NAME="insertDataSeries(int, java.lang.String, double[])"><!-- --></A><H3>
insertDataSeries</H3>
<PRE>
public void <B>insertDataSeries</B>(int&nbsp;index,
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;legend,
double[]&nbsp;values)</PRE>
<DL>
<DD>Adds a data series at the index in current data set.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - the index the added data series will be located.<DD><CODE>legend</CODE> - legend for the data series.<DD><CODE>values</CODE> - data series values corresponding to the legend.</DL>
</DD>
</DL>
<HR>
<A NAME="updateDataSeries(int, double[])"><!-- --></A><H3>
updateDataSeries</H3>
<PRE>
public void <B>updateDataSeries</B>(int&nbsp;index,
double[]&nbsp;values)</PRE>
<DL>
<DD>Updates the data series values according to the index of the data series.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the data series in the data set.<DD><CODE>values</CODE> - data series values.</DL>
</DD>
</DL>
<HR>
<A NAME="updateDataSeries(java.lang.String, int, double[])"><!-- --></A><H3>
updateDataSeries</H3>
<PRE>
public void <B>updateDataSeries</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;legend,
int&nbsp;beginindex,
double[]&nbsp;values)</PRE>
<DL>
<DD>Updates the data series values according to the legend of the data
series.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>legend</CODE> - the chart legend of the data series.<DD><CODE>values</CODE> - data series values.</DL>
</DD>
</DL>
<HR>
<A NAME="removeDataSeries(int)"><!-- --></A><H3>
removeDataSeries</H3>
<PRE>
public void <B>removeDataSeries</B>(int&nbsp;index)</PRE>
<DL>
<DD>Removes a data series by the index of the data series in the data set.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - index of the data series in the data set.</DL>
</DD>
</DL>
<HR>
<A NAME="removeDataSeries(java.lang.String, int)"><!-- --></A><H3>
removeDataSeries</H3>
<PRE>
public void <B>removeDataSeries</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;legend,
int&nbsp;beginindex)</PRE>
<DL>
<DD>Remove a data series by the legend of the data series.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>legend</CODE> - the legend of the data series.</DL>
</DD>
</DL>
<HR>
<A NAME="getIndexOfDataSeries(java.lang.String, int)"><!-- --></A><H3>
getIndexOfDataSeries</H3>
<PRE>
public int <B>getIndexOfDataSeries</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;legend,
int&nbsp;beginindex)</PRE>
<DL>
<DD>Gets the index of the data series by its legend.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>legend</CODE> - the legend of the data series.
<DT><B>Returns:</B><DD>index of the data series in the data set.</DL>
</DD>
</DL>
<HR>
<A NAME="getLegendByIndex(int)"><!-- --></A><H3>
getLegendByIndex</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getLegendByIndex</B>(int&nbsp;index)</PRE>
<DL>
<DD>Gets the legend of the data series by its index in the data set.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - index of the data series in the data set.
<DT><B>Returns:</B><DD>the legend of the data series.</DL>
</DD>
</DL>
<HR>
<A NAME="setLegendByIndex(int, java.lang.String)"><!-- --></A><H3>
setLegendByIndex</H3>
<PRE>
public void <B>setLegendByIndex</B>(int&nbsp;index,
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;legend)</PRE>
<DL>
<DD>Sets or change the legend of the data series by its index in the data
set.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - index of the data series in the data set.<DD><CODE>legend</CODE> - the legend of the data series.</DL>
</DD>
</DL>
<HR>
<A NAME="getLabelByIndex(int)"><!-- --></A><H3>
getLabelByIndex</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getLabelByIndex</B>(int&nbsp;index)</PRE>
<DL>
<DD>Gets the legend of the data series by its index in the data set.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - index of the data series in the data set.
<DT><B>Returns:</B><DD>the label of the data series.</DL>
</DD>
</DL>
<HR>
<A NAME="setLabelByIndex(int, java.lang.String)"><!-- --></A><H3>
setLabelByIndex</H3>
<PRE>
public void <B>setLabelByIndex</B>(int&nbsp;index,
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;label)</PRE>
<DL>
<DD>Sets or change the legend of the data series by its index in the data
set.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - index of the data series in the data set.<DD><CODE>label</CODE> - the label of the data series.</DL>
</DD>
</DL>
<HR>
<A NAME="getLabels()"><!-- --></A><H3>
getLabels</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] <B>getLabels</B>()</PRE>
<DL>
<DD>Gets the string array of labels.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the string array of labels.</DL>
</DD>
</DL>
<HR>
<A NAME="getLegends()"><!-- --></A><H3>
getLegends</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] <B>getLegends</B>()</PRE>
<DL>
<DD>Gets the string array of legends.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the string array of legends.</DL>
</DD>
</DL>
<HR>
<A NAME="isFirstRowAsLabel()"><!-- --></A><H3>
isFirstRowAsLabel</H3>
<PRE>
public boolean <B>isFirstRowAsLabel</B>()</PRE>
<DL>
<DD>Gets whether this data set uses first row as chart label.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>if return <code>true</code>, this data set uses first row as
chart label.</DL>
</DD>
</DL>
<HR>
<A NAME="isFirstColumnAsLabel()"><!-- --></A><H3>
isFirstColumnAsLabel</H3>
<PRE>
public boolean <B>isFirstColumnAsLabel</B>()</PRE>
<DL>
<DD>Gets whether this data set uses first column as chart label.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>if return <code>true</code>, this data set uses first row as
chart label.</DL>
</DD>
</DL>
<HR>
<A NAME="isRowAsDataSeries()"><!-- --></A><H3>
isRowAsDataSeries</H3>
<PRE>
public boolean <B>isRowAsDataSeries</B>()</PRE>
<DL>
<DD>Gets whether this data set uses row as data series.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>if return <code>true</code>, this data set uses row as data
series.</DL>
</DD>
</DL>
<HR>
<A NAME="isLocalTable()"><!-- --></A><H3>
isLocalTable</H3>
<PRE>
public boolean <B>isLocalTable</B>()</PRE>
<DL>
<DD>Gets whether this data set uses local table.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>if return <code>true</code>, this data set uses uses local table.</DL>
</DD>
</DL>
<HR>
<A NAME="setLocalTable(boolean)"><!-- --></A><H3>
setLocalTable</H3>
<PRE>
public void <B>setLocalTable</B>(boolean&nbsp;isLocalTable)</PRE>
<DL>
<DD>Sets this data set uses local table or not.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>isLocalTable</CODE> - if the value is <code>true</code>, this data set uses uses
local table.</DL>
</DD>
</DL>
<HR>
<A NAME="getDataSeriesByIndex(int)"><!-- --></A><H3>
getDataSeriesByIndex</H3>
<PRE>
public double[] <B>getDataSeriesByIndex</B>(int&nbsp;index)</PRE>
<DL>
<DD>Gets the values of a data series by its index in the data set.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - index of the data series in the data set.
<DT><B>Returns:</B><DD>the values of the data series.</DL>
</DD>
</DL>
<HR>
<A NAME="getDataSeriesByLegend(java.lang.String, int)"><!-- --></A><H3>
getDataSeriesByLegend</H3>
<PRE>
public double[] <B>getDataSeriesByLegend</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;legend,
int&nbsp;beginindex)</PRE>
<DL>
<DD>Gets the values of a data series by its legend, if multiple data series
have duplicated legends, return the values of the first matched data
series. we do not recommend the duplicated legends, but practically, some
ODF editors allow users to do that.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>legend</CODE> - the legend of the data series
<DT><B>Returns:</B><DD>the values of the data series</DL>
</DD>
</DL>
<HR>
<A NAME="getLocalTableData()"><!-- --></A><H3>
getLocalTableData</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</A>[][] <B>getLocalTableData</B>()</PRE>
<DL>
<DD>Gets the values of a data set as a double dimension array.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the values of the whole data set.</DL>
</DD>
</DL>
<HR>
<A NAME="getLocalTableFirstRow()"><!-- --></A><H3>
getLocalTableFirstRow</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] <B>getLocalTableFirstRow</B>()</PRE>
<DL>
<DD>Gets the first row labels of the local table.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the first row labels of the local table.</DL>
</DD>
</DL>
<HR>
<A NAME="getLocalTableFirstColumn()"><!-- --></A><H3>
getLocalTableFirstColumn</H3>
<PRE>
public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[] <B>getLocalTableFirstColumn</B>()</PRE>
<DL>
<DD>Gets the first column labels of the local table.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the first column labels of the local table.</DL>
</DD>
</DL>
<HR>
<A NAME="getLengthOfDataSeries(int)"><!-- --></A><H3>
getLengthOfDataSeries</H3>
<PRE>
public int <B>getLengthOfDataSeries</B>(int&nbsp;index)</PRE>
<DL>
<DD>Gets the data item count of the data series given by the index.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - index of the data series in the data set
<DT><B>Returns:</B><DD>the data item count of the data series</DL>
</DD>
</DL>
<HR>
<A NAME="getLengthOfDataSeries(java.lang.String, int)"><!-- --></A><H3>
getLengthOfDataSeries</H3>
<PRE>
public int <B>getLengthOfDataSeries</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;legend,
int&nbsp;beginindex)</PRE>
<DL>
<DD>Gets the data item count of the data series given by the label.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>legend</CODE> - the legend of the data series
<DT><B>Returns:</B><DD>the data item count of the data series</DL>
</DD>
</DL>
<HR>
<A NAME="getMaxLengthOfDataSeries()"><!-- --></A><H3>
getMaxLengthOfDataSeries</H3>
<PRE>
public int <B>getMaxLengthOfDataSeries</B>()</PRE>
<DL>
<DD>Gets the maximal data item count
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the maximal data item count</DL>
</DD>
</DL>
<HR>
<A NAME="getDataSeriesCount()"><!-- --></A><H3>
getDataSeriesCount</H3>
<PRE>
public int <B>getDataSeriesCount</B>()</PRE>
<DL>
<DD>Gets the count of data series in the data set.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the count of data series</DL>
</DD>
</DL>
<HR>
<A NAME="setValues(java.lang.String[], java.lang.String[], double[][])"><!-- --></A><H3>
setValues</H3>
<PRE>
public void <B>setValues</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]&nbsp;labels,
<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[]&nbsp;legends,
double[][]&nbsp;data)</PRE>
<DL>
<DD>Sets or updates data for the data set with 2 dimensional double array,
the first dimension represents the index of data series, the second
dimension represents the index of data item in each data series.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>labels</CODE> - the chart labels, which is corresponding to the first
dimension of data array.<DD><CODE>data</CODE> - a 2 dimensional double array.</DL>
</DD>
</DL>
<HR>
<A NAME="setValues(org.odftoolkit.odfdom.type.CellRangeAddressList, org.odftoolkit.simple.SpreadsheetDocument, boolean, boolean, boolean)"><!-- --></A><H3>
setValues</H3>
<PRE>
public void <B>setValues</B>(<A HREF="http://incubator.apache.org/odftoolkit/odfdom/index.html/apidocs/org/odftoolkit/odfdom/type/CellRangeAddressList.html?is-external=true" title="class or interface in org.odftoolkit.odfdom.type">CellRangeAddressList</A>&nbsp;cellRangeAddress,
<A HREF="../../../../org/odftoolkit/simple/SpreadsheetDocument.html" title="class in org.odftoolkit.simple">SpreadsheetDocument</A>&nbsp;spreadsheet,
boolean&nbsp;bFirstRowAsLabel,
boolean&nbsp;bFirstColumnAsLabel,
boolean&nbsp;rowAsDataSeries)</PRE>
<DL>
<DD>Sets data for the data set with cell range address of sheet in
spreadsheet document or internal chart table in other chart containers.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>cellRangeAddress</CODE> - cell range address of sheet or table.<DD><CODE>spreadsheet</CODE> - the spreadsheet document instance, the cell address is
relative to the spreadsheet document.<DD><CODE>bFirstRowAsLabel</CODE> - whether this data set uses first row as chart label.<DD><CODE>bFirstColumnAsLabel</CODE> - whether this data set uses first column as chart label.<DD><CODE>rowAsDataSeries</CODE> - whether this data set uses row as data series.</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DataSet.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../org/odftoolkit/simple/chart/ChartType.html" title="enum in org.odftoolkit.simple.chart"><B>PREV CLASS</B></A>&nbsp;
&nbsp;NEXT CLASS</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?org/odftoolkit/simple/chart/DataSet.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="DataSet.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
Copyright &#169; 2010-2017 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.
</BODY>
</HTML>