dataset.html

来自「JFreeChart的帮助文档」· HTML 代码 · 共 287 行

HTML
287
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Thu Sep 11 11:26:53 BST 2003 --><TITLE>Dataset (JFreeChart Class Library (version 0.9.12))</TITLE><META NAME="keywords" CONTENT="org.jfree.data.Dataset,Dataset interface"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"></HEAD><SCRIPT>function asd(){parent.document.title="Dataset (JFreeChart Class Library (version 0.9.12))";}</SCRIPT><BODY BGCOLOR="white" onload="asd();"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <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="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-all.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/jfree/data/ContourDataset.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../org/jfree/data/DatasetChangeListener.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="Dataset.html" TARGET="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT>  <!--  if(window==top) {    document.writeln('<A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT><A HREF="../../../allclasses-noframe.html" TARGET=""><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;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">org.jfree.data</FONT><BR>Interface Dataset</H2><DL><DT><B>All Known Subinterfaces:</B> <DD><A HREF="../../../org/jfree/data/statistics/BoxAndWhiskerCategoryDataset.html">BoxAndWhiskerCategoryDataset</A>, <A HREF="../../../org/jfree/data/statistics/BoxAndWhiskerXYDataset.html">BoxAndWhiskerXYDataset</A>, <A HREF="../../../org/jfree/data/CategoryDataset.html">CategoryDataset</A>, <A HREF="../../../org/jfree/data/ContourDataset.html">ContourDataset</A>, <A HREF="../../../org/jfree/data/HighLowDataset.html">HighLowDataset</A>, <A HREF="../../../org/jfree/data/IntervalCategoryDataset.html">IntervalCategoryDataset</A>, <A HREF="../../../org/jfree/data/IntervalXYDataset.html">IntervalXYDataset</A>, <A HREF="../../../org/jfree/data/IntervalXYZDataset.html">IntervalXYZDataset</A>, <A HREF="../../../org/jfree/data/KeyedValueDataset.html">KeyedValueDataset</A>, <A HREF="../../../org/jfree/data/KeyedValues2DDataset.html">KeyedValues2DDataset</A>, <A HREF="../../../org/jfree/data/KeyedValuesDataset.html">KeyedValuesDataset</A>, <A HREF="../../../org/jfree/data/MeterDataset.html">MeterDataset</A>, <A HREF="../../../org/jfree/data/MultiIntervalCategoryDataset.html">MultiIntervalCategoryDataset</A>, <A HREF="../../../org/jfree/data/PieDataset.html">PieDataset</A>, <A HREF="../../../org/jfree/data/SeriesDataset.html">SeriesDataset</A>, <A HREF="../../../org/jfree/data/SignalsDataset.html">SignalsDataset</A>, <A HREF="../../../org/jfree/data/StatisticalCategoryDataset.html">StatisticalCategoryDataset</A>, <A HREF="../../../org/jfree/data/statistics/StatisticalCategoryDataset.html">StatisticalCategoryDataset</A>, <A HREF="../../../org/jfree/data/ValueDataset.html">ValueDataset</A>, <A HREF="../../../org/jfree/data/WindDataset.html">WindDataset</A>, <A HREF="../../../org/jfree/data/XYDataset.html">XYDataset</A>, <A HREF="../../../org/jfree/data/XYZDataset.html">XYZDataset</A></DD></DL><DL><DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../org/jfree/data/AbstractDataset.html">AbstractDataset</A>, <A HREF="../../../org/jfree/data/AbstractSeriesDataset.html">AbstractSeriesDataset</A>, <A HREF="../../../org/jfree/data/CategoryToPieDataset.html">CategoryToPieDataset</A>, <A HREF="../../../org/jfree/data/CombinedDataset.html">CombinedDataset</A>, <A HREF="../../../org/jfree/data/statistics/DefaultBoxAndWhiskerCategoryDataset.html">DefaultBoxAndWhiskerCategoryDataset</A>, <A HREF="../../../org/jfree/data/statistics/DefaultBoxAndWhiskerXYDataset.html">DefaultBoxAndWhiskerXYDataset</A>, <A HREF="../../../org/jfree/data/DefaultCategoryDataset.html">DefaultCategoryDataset</A>, <A HREF="../../../org/jfree/data/DefaultContourDataset.html">DefaultContourDataset</A>, <A HREF="../../../org/jfree/data/DefaultHighLowDataset.html">DefaultHighLowDataset</A>, <A HREF="../../../org/jfree/data/DefaultIntervalCategoryDataset.html">DefaultIntervalCategoryDataset</A>, <A HREF="../../../org/jfree/data/DefaultKeyedValueDataset.html">DefaultKeyedValueDataset</A>, <A HREF="../../../org/jfree/data/DefaultKeyedValues2DDataset.html">DefaultKeyedValues2DDataset</A>, <A HREF="../../../org/jfree/data/DefaultKeyedValuesDataset.html">DefaultKeyedValuesDataset</A>, <A HREF="../../../org/jfree/data/DefaultMeterDataset.html">DefaultMeterDataset</A>, <A HREF="../../../org/jfree/data/DefaultPieDataset.html">DefaultPieDataset</A>, <A HREF="../../../org/jfree/data/DefaultStatisticalCategoryDataset.html">DefaultStatisticalCategoryDataset</A>, <A HREF="../../../org/jfree/data/statistics/DefaultStatisticalCategoryDataset.html">DefaultStatisticalCategoryDataset</A>, <A HREF="../../../org/jfree/data/DefaultValueDataset.html">DefaultValueDataset</A>, <A HREF="../../../org/jfree/data/DefaultWindDataset.html">DefaultWindDataset</A>, <A HREF="../../../org/jfree/data/time/DynamicTimeSeriesCollection.html">DynamicTimeSeriesCollection</A>, <A HREF="../../../org/jfree/data/HistogramDataset.html">HistogramDataset</A>, <A HREF="../../../org/jfree/data/JDBCXYDataset.html">JDBCXYDataset</A>, <A HREF="../../../org/jfree/data/MatrixSeriesCollection.html">MatrixSeriesCollection</A>, <A HREF="../../../org/jfree/data/SubSeriesDataset.html">SubSeriesDataset</A>, <A HREF="../../../org/jfree/data/TableXYDataset.html">TableXYDataset</A>, <A HREF="../../../org/jfree/data/TaskSeriesCollection.html">TaskSeriesCollection</A>, <A HREF="../../../org/jfree/data/time/TimePeriodValuesCollection.html">TimePeriodValuesCollection</A>, <A HREF="../../../org/jfree/data/time/TimeSeriesCollection.html">TimeSeriesCollection</A>, <A HREF="../../../org/jfree/data/XYSeriesCollection.html">XYSeriesCollection</A></DD></DL><HR><DL><DT>public interface <B>Dataset</B></DL><P>The base interface for data sets. <P> All datasets are required to support the <A HREF="../../../org/jfree/data/DatasetChangeEvent.html"><CODE>DatasetChangeEvent</CODE></A> mechanism by allowing listeners to register and receive notification of any changes to the dataset. <P> In addition, all datasets must belong to one (and only one) <A HREF="../../../org/jfree/data/DatasetGroup.html"><CODE>DatasetGroup</CODE></A>.  The group object maintains a reader-writer lock which provides synchronised access to the datasets in multi-threaded code.<P><P><DL><DT><B>Author:</B></DT>  <DD>David Gilbert</DD></DL><HR><P><!-- ======== NESTED CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><!-- ======== CONSTRUCTOR SUMMARY ======== --><!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></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/jfree/data/Dataset.html#addChangeListener(org.jfree.data.DatasetChangeListener)">addChangeListener</A></B>(<A HREF="../../../org/jfree/data/DatasetChangeListener.html">DatasetChangeListener</A>&nbsp;listener)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Registers an object for notification of changes to the dataset.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../org/jfree/data/DatasetGroup.html">DatasetGroup</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/Dataset.html#getGroup()">getGroup</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the dataset group.</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/jfree/data/Dataset.html#removeChangeListener(org.jfree.data.DatasetChangeListener)">removeChangeListener</A></B>(<A HREF="../../../org/jfree/data/DatasetChangeListener.html">DatasetChangeListener</A>&nbsp;listener)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Deregisters an object for notification of changes to the dataset.</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/jfree/data/Dataset.html#setGroup(org.jfree.data.DatasetGroup)">setGroup</A></B>(<A HREF="../../../org/jfree/data/DatasetGroup.html">DatasetGroup</A>&nbsp;group)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the dataset group.</TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="addChangeListener(org.jfree.data.DatasetChangeListener)"><!-- --></A><H3>addChangeListener</H3><PRE>public void <B>addChangeListener</B>(<A HREF="../../../org/jfree/data/DatasetChangeListener.html">DatasetChangeListener</A>&nbsp;listener)</PRE><DL><DD>Registers an object for notification of changes to the dataset.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - the object to register.</DL></DD></DL><HR><A NAME="removeChangeListener(org.jfree.data.DatasetChangeListener)"><!-- --></A><H3>removeChangeListener</H3><PRE>public void <B>removeChangeListener</B>(<A HREF="../../../org/jfree/data/DatasetChangeListener.html">DatasetChangeListener</A>&nbsp;listener)</PRE><DL><DD>Deregisters an object for notification of changes to the dataset.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - the object to deregister.</DL></DD></DL><HR><A NAME="getGroup()"><!-- --></A><H3>getGroup</H3><PRE>public <A HREF="../../../org/jfree/data/DatasetGroup.html">DatasetGroup</A> <B>getGroup</B>()</PRE><DL><DD>Returns the dataset group.<P><DD><DL><DT><B>Returns:</B><DD>the dataset group.</DL></DD></DL><HR><A NAME="setGroup(org.jfree.data.DatasetGroup)"><!-- --></A><H3>setGroup</H3><PRE>public void <B>setGroup</B>(<A HREF="../../../org/jfree/data/DatasetGroup.html">DatasetGroup</A>&nbsp;group)</PRE><DL><DD>Sets the dataset group.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>group</CODE> - the dataset group.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <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="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-all.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/jfree/data/ContourDataset.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../org/jfree/data/DatasetChangeListener.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="Dataset.html" TARGET="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT>  <!--  if(window==top) {    document.writeln('<A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT><A HREF="../../../allclasses-noframe.html" TARGET=""><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;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?