xyseries.html
来自「JFreeChart的帮助文档」· HTML 代码 · 共 914 行 · 第 1/3 页
HTML
914 行
<HR><A NAME="add(double, java.lang.Number, boolean)"><!-- --></A><H3>add</H3><PRE>public void <B>add</B>(double x, java.lang.Number y, boolean notify) throws <A HREF="../../../org/jfree/data/SeriesException.html">SeriesException</A></PRE><DL><DD>Adds a data item to the series. <P> The unusual pairing of parameter types is to make it easier to add null y-values.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the x value.<DD><CODE>y</CODE> - the y value.<DD><CODE>notify</CODE> - a flag that controls whether or not a <A HREF="../../../org/jfree/data/SeriesChangeEvent.html"><CODE>SeriesChangeEvent</CODE></A> is sent to all registered listeners.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/jfree/data/SeriesException.html">SeriesException</A></CODE> - if there is a problem adding the data.</DL></DD></DL><HR><A NAME="add(java.lang.Number, java.lang.Number)"><!-- --></A><H3>add</H3><PRE>public void <B>add</B>(java.lang.Number x, java.lang.Number y) throws <A HREF="../../../org/jfree/data/SeriesException.html">SeriesException</A></PRE><DL><DD>Adds new data to the series. <P> Throws an exception if the x-value is a duplicate AND the allowDuplicateXValues flag is false.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the x-value.<DD><CODE>y</CODE> - the y-value.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/jfree/data/SeriesException.html">SeriesException</A></CODE> - if there is a problem adding the data.</DL></DD></DL><HR><A NAME="add(java.lang.Number, java.lang.Number, boolean)"><!-- --></A><H3>add</H3><PRE>public void <B>add</B>(java.lang.Number x, java.lang.Number y, boolean notify) throws <A HREF="../../../org/jfree/data/SeriesException.html">SeriesException</A></PRE><DL><DD>Adds new data to the series. <P> Throws an exception if the x-value is a duplicate AND the allowDuplicateXValues flag is false.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the x-value.<DD><CODE>y</CODE> - the y-value.<DD><CODE>notify</CODE> - a flag the controls whether or not a <A HREF="../../../org/jfree/data/SeriesChangeEvent.html"><CODE>SeriesChangeEvent</CODE></A> is sent to all registered listeners.<DT><B>Throws:</B><DD><CODE><A HREF="../../../org/jfree/data/SeriesException.html">SeriesException</A></CODE> - if there is a problem adding the data.</DL></DD></DL><HR><A NAME="delete(int, int)"><!-- --></A><H3>delete</H3><PRE>public void <B>delete</B>(int start, int end)</PRE><DL><DD>Deletes a range of items from the series.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>start</CODE> - the start index (zero-based).<DD><CODE>end</CODE> - the end index (zero-based).</DL></DD></DL><HR><A NAME="clear()"><!-- --></A><H3>clear</H3><PRE>public void <B>clear</B>()</PRE><DL><DD>Removes all data pairs from the series.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getDataPair(int)"><!-- --></A><H3>getDataPair</H3><PRE>public <A HREF="../../../org/jfree/data/XYDataPair.html">XYDataPair</A> <B>getDataPair</B>(int index)</PRE><DL><DD><B>Deprecated.</B> <I>Use getDataItem(index).</I><P><DD>Return the data pair with the specified index.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - The index.<DT><B>Returns:</B><DD>The data pair with the specified index.</DL></DD></DL><HR><A NAME="getDataItem(int)"><!-- --></A><H3>getDataItem</H3><PRE>public <A HREF="../../../org/jfree/data/XYDataItem.html">XYDataItem</A> <B>getDataItem</B>(int index)</PRE><DL><DD>Return the data item with the specified index.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - The index.<DT><B>Returns:</B><DD>The data item with the specified index.</DL></DD></DL><HR><A NAME="getXValue(int)"><!-- --></A><H3>getXValue</H3><PRE>public java.lang.Number <B>getXValue</B>(int index)</PRE><DL><DD>Returns the x-value at the specified index.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - The index.<DT><B>Returns:</B><DD>The x-value.</DL></DD></DL><HR><A NAME="getYValue(int)"><!-- --></A><H3>getYValue</H3><PRE>public java.lang.Number <B>getYValue</B>(int index)</PRE><DL><DD>Returns the y-value at the specified index.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - The index.<DT><B>Returns:</B><DD>The y-value.</DL></DD></DL><HR><A NAME="update(int, java.lang.Number)"><!-- --></A><H3>update</H3><PRE>public void <B>update</B>(int index, java.lang.Number y)</PRE><DL><DD>Updates the value of an item in the series.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - The item (zero based index).<DD><CODE>y</CODE> - The new value.</DL></DD></DL><HR><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>public java.lang.Object <B>clone</B>()</PRE><DL><DD>Returns a clone of the series.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../org/jfree/data/Series.html#clone()">clone</A></CODE> in class <CODE><A HREF="../../../org/jfree/data/Series.html">Series</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a clone of the time series.</DL></DD></DL><HR><A NAME="createCopy(int, int)"><!-- --></A><H3>createCopy</H3><PRE>public <A HREF="../../../org/jfree/data/XYSeries.html">XYSeries</A> <B>createCopy</B>(int start, int end)</PRE><DL><DD>Creates a new series by copying a subset of the data in this time series.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>start</CODE> - The index of the first item to copy.<DD><CODE>end</CODE> - The index of the last item to copy.<DT><B>Returns:</B><DD>A series containing a copy of this series from start until end.</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(java.lang.Object obj)</PRE><DL><DD>Tests this series for equality with an arbitrary object.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../org/jfree/data/Series.html#equals(java.lang.Object)">equals</A></CODE> in class <CODE><A HREF="../../../org/jfree/data/Series.html">Series</A></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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../org/jfree/data/XYDatasetTableModel.html"><B>PREV CLASS</B></A> <A HREF="../../../org/jfree/data/XYSeriesCollection.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> <A HREF="XYSeries.html" TARGET="_top"><B>NO FRAMES</B></A> <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: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?