📄 xyseries.html
字号:
</DD><DD><DL></DL></DD></DL><HR><A NAME="getDataItem(int)"><!-- --></A><H3>getDataItem</H3><PRE>public <A HREF="../../../../org/jfree/data/xy/XYDataItem.html" title="class in org.jfree.data.xy">XYDataItem</A> <A HREF="../../../../src-html/org/jfree/data/xy/XYSeries.html#line.443"><B>getDataItem</B></A>(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="getX(int)"><!-- --></A><H3>getX</H3><PRE>public java.lang.Number <A HREF="../../../../src-html/org/jfree/data/xy/XYSeries.html#line.454"><B>getX</B></A>(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 (zero-based).<DT><B>Returns:</B><DD>The x-value (never <code>null</code>).</DL></DD></DL><HR><A NAME="getY(int)"><!-- --></A><H3>getY</H3><PRE>public java.lang.Number <A HREF="../../../../src-html/org/jfree/data/xy/XYSeries.html#line.465"><B>getY</B></A>(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 (zero-based).<DT><B>Returns:</B><DD>The y-value (possibly <code>null</code>).</DL></DD></DL><HR><A NAME="update(int, java.lang.Number)"><!-- --></A><H3>update</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/data/xy/XYSeries.html#line.479"><B>update</B></A>(int index, java.lang.Number y)</PRE><DL><DD><B>Deprecated.</B> <I>Renamed updateByIndex(int, Number) to avoid confusion with the update(Number, Number) method.</I><P><DD>Updates the value of an item in the series and sends a <A HREF="../../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><CODE>SeriesChangeEvent</CODE></A> to all registered listeners.<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 (<code>null</code> permitted).</DL></DD></DL><HR><A NAME="updateByIndex(int, java.lang.Number)"><!-- --></A><H3>updateByIndex</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/data/xy/XYSeries.html#line.494"><B>updateByIndex</B></A>(int index, java.lang.Number y)</PRE><DL><DD>Updates the value of an item in the series and sends a <A HREF="../../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><CODE>SeriesChangeEvent</CODE></A> to all registered listeners.<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 (<code>null</code> permitted).<DT><B>Since:</B></DT> <DD>1.0.1</DD></DL></DD></DL><HR><A NAME="update(java.lang.Number, java.lang.Number)"><!-- --></A><H3>update</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/data/xy/XYSeries.html#line.507"><B>update</B></A>(java.lang.Number x, java.lang.Number y)</PRE><DL><DD>Updates an item in the series.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the x-value (<code>null</code> not permitted).<DD><CODE>y</CODE> - the y-value (<code>null</code> permitted).<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/jfree/data/general/SeriesException.html" title="class in org.jfree.data.general">SeriesException</A></CODE> - if there is no existing item with the specified x-value.</DL></DD></DL><HR><A NAME="addOrUpdate(java.lang.Number, java.lang.Number)"><!-- --></A><H3>addOrUpdate</H3><PRE>public <A HREF="../../../../org/jfree/data/xy/XYDataItem.html" title="class in org.jfree.data.xy">XYDataItem</A> <A HREF="../../../../src-html/org/jfree/data/xy/XYSeries.html#line.530"><B>addOrUpdate</B></A>(java.lang.Number x, java.lang.Number y)</PRE><DL><DD>Adds or updates an item in the series and sends a <A HREF="../../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><CODE>SeriesChangeEvent</CODE></A> to all registered listeners.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the x-value (<code>null</code> not permitted).<DD><CODE>y</CODE> - the y-value (<code>null</code> permitted).<DT><B>Returns:</B><DD>A copy of the overwritten data item, or <code>null</code> if no item was overwritten.</DL></DD></DL><HR><A NAME="indexOf(java.lang.Number)"><!-- --></A><H3>indexOf</H3><PRE>public int <A HREF="../../../../src-html/org/jfree/data/xy/XYSeries.html#line.576"><B>indexOf</B></A>(java.lang.Number x)</PRE><DL><DD>Returns the index of the item with the specified x-value, or a negative index if the series does not contain an item with that x-value. Be aware that for an unsorted series, the index is found by iterating through all items in the series.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the x-value (<code>null</code> not permitted).<DT><B>Returns:</B><DD>The index.</DL></DD></DL><HR><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>public java.lang.Object <A HREF="../../../../src-html/org/jfree/data/xy/XYSeries.html#line.598"><B>clone</B></A>() throws java.lang.CloneNotSupportedException</PRE><DL><DD>Returns a clone of the series.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/jfree/data/general/Series.html#clone()">clone</A></CODE> in class <CODE><A HREF="../../../../org/jfree/data/general/Series.html" title="class in org.jfree.data.general">Series</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>A clone of the time series.<DT><B>Throws:</B><DD><CODE>java.lang.CloneNotSupportedException</CODE> - if there is a cloning problem.</DL></DD></DL><HR><A NAME="createCopy(int, int)"><!-- --></A><H3>createCopy</H3><PRE>public <A HREF="../../../../org/jfree/data/xy/XYSeries.html" title="class in org.jfree.data.xy">XYSeries</A> <A HREF="../../../../src-html/org/jfree/data/xy/XYSeries.html#line.613"><B>createCopy</B></A>(int start, int end) throws java.lang.CloneNotSupportedException</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.<DT><B>Throws:</B><DD><CODE>java.lang.CloneNotSupportedException</CODE> - if there is a cloning problem.</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <A HREF="../../../../src-html/org/jfree/data/xy/XYSeries.html#line.642"><B>equals</B></A>(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/general/Series.html#equals(java.lang.Object)">equals</A></CODE> in class <CODE><A HREF="../../../../org/jfree/data/general/Series.html" title="class in org.jfree.data.general">Series</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - the object to test against for equality (<code>null</code> permitted).<DT><B>Returns:</B><DD>A boolean.</DL></DD></DL><HR><A NAME="hashCode()"><!-- --></A><H3>hashCode</H3><PRE>public int <A HREF="../../../../src-html/org/jfree/data/xy/XYSeries.html#line.673"><B>hashCode</B></A>()</PRE><DL><DD>Returns a hash code.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/jfree/data/general/Series.html#hashCode()">hashCode</A></CODE> in class <CODE><A HREF="../../../../org/jfree/data/general/Series.html" title="class in org.jfree.data.general">Series</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>A hash code.</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> </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="class-use/XYSeries.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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-files/index-1.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/xy/XYDatasetTableModel.html" title="class in org.jfree.data.xy"><B>PREV CLASS</B></A> <A HREF="../../../../org/jfree/data/xy/XYSeriesCollection.html" title="class in org.jfree.data.xy"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?org/jfree/data/xy/XYSeries.html" target="_top"><B>FRAMES</B></A> <A HREF="XYSeries.html" target="_top"><B>NO FRAMES</B></A> <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: 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><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -