xyseriescollection.html

来自「JFreeChart的帮助文档」· HTML 代码 · 共 590 行 · 第 1/2 页

HTML
590
字号
<PRE>public <B>XYSeriesCollection</B>()</PRE><DL><DD>Constructs an empty dataset.<P></DL><HR><A NAME="XYSeriesCollection(org.jfree.data.XYSeries)"><!-- --></A><H3>XYSeriesCollection</H3><PRE>public <B>XYSeriesCollection</B>(<A HREF="../../../org/jfree/data/XYSeries.html">XYSeries</A>&nbsp;series)</PRE><DL><DD>Constructs a dataset and populates it with a single time series.<P><DT><B>Parameters:</B><DD><CODE>series</CODE> - the time series.</DL><!-- ============ 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="addSeries(org.jfree.data.XYSeries)"><!-- --></A><H3>addSeries</H3><PRE>public void <B>addSeries</B>(<A HREF="../../../org/jfree/data/XYSeries.html">XYSeries</A>&nbsp;series)</PRE><DL><DD>Adds a series to the collection. <P> Notifies all registered listeners that the dataset has changed.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>series</CODE> - the series.</DL></DD></DL><HR><A NAME="getSeriesCount()"><!-- --></A><H3>getSeriesCount</H3><PRE>public int <B>getSeriesCount</B>()</PRE><DL><DD>Returns the number of series in the collection.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jfree/data/SeriesDataset.html#getSeriesCount()">getSeriesCount</A></CODE> in interface <CODE><A HREF="../../../org/jfree/data/SeriesDataset.html">SeriesDataset</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jfree/data/AbstractSeriesDataset.html#getSeriesCount()">getSeriesCount</A></CODE> in class <CODE><A HREF="../../../org/jfree/data/AbstractSeriesDataset.html">AbstractSeriesDataset</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of series in the collection.</DL></DD></DL><HR><A NAME="getSeries()"><!-- --></A><H3>getSeries</H3><PRE>public java.util.List <B>getSeries</B>()</PRE><DL><DD>Returns a list of all the series in the collection.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The list (which is unmodifiable).</DL></DD></DL><HR><A NAME="getSeries(int)"><!-- --></A><H3>getSeries</H3><PRE>public <A HREF="../../../org/jfree/data/XYSeries.html">XYSeries</A> <B>getSeries</B>(int&nbsp;series)</PRE><DL><DD>Returns a series.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>series</CODE> - the series (zero-based index).<DT><B>Returns:</B><DD>The series.</DL></DD></DL><HR><A NAME="getSeriesName(int)"><!-- --></A><H3>getSeriesName</H3><PRE>public java.lang.String <B>getSeriesName</B>(int&nbsp;series)</PRE><DL><DD>Returns the name of a series.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jfree/data/SeriesDataset.html#getSeriesName(int)">getSeriesName</A></CODE> in interface <CODE><A HREF="../../../org/jfree/data/SeriesDataset.html">SeriesDataset</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jfree/data/AbstractSeriesDataset.html#getSeriesName(int)">getSeriesName</A></CODE> in class <CODE><A HREF="../../../org/jfree/data/AbstractSeriesDataset.html">AbstractSeriesDataset</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>series</CODE> - the series (zero-based index).<DT><B>Returns:</B><DD>the name of a series.</DL></DD></DL><HR><A NAME="getItemCount(int)"><!-- --></A><H3>getItemCount</H3><PRE>public int <B>getItemCount</B>(int&nbsp;series)</PRE><DL><DD>Returns the number of items in the specified series.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jfree/data/XYDataset.html#getItemCount(int)">getItemCount</A></CODE> in interface <CODE><A HREF="../../../org/jfree/data/XYDataset.html">XYDataset</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>series</CODE> - the series (zero-based index).<DT><B>Returns:</B><DD>the number of items in the specified series.</DL></DD></DL><HR><A NAME="getXValue(int, int)"><!-- --></A><H3>getXValue</H3><PRE>public java.lang.Number <B>getXValue</B>(int&nbsp;series,                                  int&nbsp;item)</PRE><DL><DD>Returns the x-value for the specified series and item.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jfree/data/XYDataset.html#getXValue(int, int)">getXValue</A></CODE> in interface <CODE><A HREF="../../../org/jfree/data/XYDataset.html">XYDataset</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>series</CODE> - the series (zero-based index).<DD><CODE>item</CODE> - the item (zero-based index).<DT><B>Returns:</B><DD>the x-value for the specified series and item.</DL></DD></DL><HR><A NAME="getYValue(int, int)"><!-- --></A><H3>getYValue</H3><PRE>public java.lang.Number <B>getYValue</B>(int&nbsp;series,                                  int&nbsp;index)</PRE><DL><DD>Returns the y-value for the specified series and item.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jfree/data/XYDataset.html#getYValue(int, int)">getYValue</A></CODE> in interface <CODE><A HREF="../../../org/jfree/data/XYDataset.html">XYDataset</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>series</CODE> - the series (zero-based index).<DD><CODE>index</CODE> - the index of the item of interest (zero-based).<DT><B>Returns:</B><DD>the y-value for the specified series and item.</DL></DD></DL><HR><A NAME="removeAllSeries()"><!-- --></A><H3>removeAllSeries</H3><PRE>public void <B>removeAllSeries</B>()</PRE><DL><DD>Removes all the series from the collection. <P> Notifies all registered listeners that the dataset has changed.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="removeSeries(org.jfree.data.XYSeries)"><!-- --></A><H3>removeSeries</H3><PRE>public void <B>removeSeries</B>(<A HREF="../../../org/jfree/data/XYSeries.html">XYSeries</A>&nbsp;series)</PRE><DL><DD>Removes a series from the collection. <P> Notifies all registered listeners that the dataset has changed.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>series</CODE> - the series.</DL></DD></DL><HR><A NAME="removeSeries(int)"><!-- --></A><H3>removeSeries</H3><PRE>public void <B>removeSeries</B>(int&nbsp;series)</PRE><DL><DD>Removes a series from the collection. <P> Notifies all registered listeners that the dataset has changed.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>series</CODE> - the series (zero based index).</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(java.lang.Object&nbsp;obj)</PRE><DL><DD>Tests this collection for equality with an arbitrary object.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>equals</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - the object.<DT><B>Returns:</B><DD>A boolean.</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/XYSeries.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="XYSeriesCollection.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;<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><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>

⌨️ 快捷键说明

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