📄 xyseries.html
字号:
<!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.4.2_03) on Mon Jun 07 16:42:23 BST 2004 --><TITLE>XYSeries (JFreeChart Class Library (version 0.9.20))</TITLE><META NAME="keywords" CONTENT="org.jfree.data.XYSeries class"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){ parent.document.title="XYSeries (JFreeChart Class Library (version 0.9.20))";}</SCRIPT></HEAD><BODY BGCOLOR="white" onload="windowTitle();"><!-- ========= 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=3 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> </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" title="class in org.jfree.data"><B>PREV CLASS</B></A> <A HREF="../../../org/jfree/data/XYSeriesCollection.html" title="class in org.jfree.data"><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 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_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">org.jfree.data</FONT><BR>Class XYSeries</H2><PRE>java.lang.Object <IMG SRC="../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../org/jfree/data/Series.html" title="class in org.jfree.data">org.jfree.data.Series</A> <IMG SRC="../../../resources/inherit.gif" ALT="extended by"><B>org.jfree.data.XYSeries</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD>java.lang.Cloneable, java.io.Serializable</DD></DL><HR><DL><DT>public class <B>XYSeries</B><DT>extends <A HREF="../../../org/jfree/data/Series.html" title="class in org.jfree.data">Series</A><DT>implements java.lang.Cloneable, java.io.Serializable</DL><P>Represents a sequence of zero or more data items in the form (x, y). Items in the series will be sorted into ascending order by X-value, and duplicate X-values are permitted. Both the sorting and duplicate defaults can be changed in the constructor. Y-values can be <code>null</code> to represent missing values.<P><P><DL><DT><B>See Also:</B><DD><A HREF="../../../serialized-form.html#org.jfree.data.XYSeries">Serialized Form</A></DL><HR><P><!-- ======== NESTED CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><A NAME="field_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Field Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected java.util.List</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/XYSeries.html#data">data</A></B></CODE><BR> Storage for the data items in the series.</TD></TR></TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/jfree/data/XYSeries.html#XYSeries(java.lang.String)">XYSeries</A></B>(java.lang.String name)</CODE><BR> Creates a new empty series.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/jfree/data/XYSeries.html#XYSeries(java.lang.String, boolean)">XYSeries</A></B>(java.lang.String name, boolean allowDuplicateXValues)</CODE><BR> <B>Deprecated.</B> <I>Use a XYSeries(String, boolean, boolean) instead.</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/jfree/data/XYSeries.html#XYSeries(java.lang.String, boolean, boolean)">XYSeries</A></B>(java.lang.String name, boolean autoSort, boolean allowDuplicateXValues)</CODE><BR> Constructs a new xy-series that contains no data.</TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><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> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/XYSeries.html#add(double, double)">add</A></B>(double x, double y)</CODE><BR> Adds a data item to the series and sends a <A HREF="../../../org/jfree/data/SeriesChangeEvent.html" title="class in org.jfree.data"><CODE>SeriesChangeEvent</CODE></A> to all registered listeners.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/XYSeries.html#add(double, double, boolean)">add</A></B>(double x, double y, boolean notify)</CODE><BR> Adds a data item to the series and, if requested, sends a <A HREF="../../../org/jfree/data/SeriesChangeEvent.html" title="class in org.jfree.data"><CODE>SeriesChangeEvent</CODE></A> to all registered listeners.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/XYSeries.html#add(double, java.lang.Number)">add</A></B>(double x, java.lang.Number y)</CODE><BR> Adds a data item to the series and sends a <A HREF="../../../org/jfree/data/SeriesChangeEvent.html" title="class in org.jfree.data"><CODE>SeriesChangeEvent</CODE></A> to all registered listeners.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/XYSeries.html#add(double, java.lang.Number, boolean)">add</A></B>(double x, java.lang.Number y, boolean notify)</CODE><BR> Adds a data item to the series and, if requested, sends a <A HREF="../../../org/jfree/data/SeriesChangeEvent.html" title="class in org.jfree.data"><CODE>SeriesChangeEvent</CODE></A> to all registered listeners.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/XYSeries.html#add(java.lang.Number, java.lang.Number)">add</A></B>(java.lang.Number x, java.lang.Number y)</CODE><BR> Adds new data to the series and sends a <A HREF="../../../org/jfree/data/SeriesChangeEvent.html" title="class in org.jfree.data"><CODE>SeriesChangeEvent</CODE></A> to all registered listeners.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/XYSeries.html#add(java.lang.Number, java.lang.Number, boolean)">add</A></B>(java.lang.Number x, java.lang.Number y, boolean notify)</CODE><BR> Adds new data to the series and, if requested, sends a <A HREF="../../../org/jfree/data/SeriesChangeEvent.html" title="class in org.jfree.data"><CODE>SeriesChangeEvent</CODE></A> to all registered listeners.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/XYSeries.html#add(org.jfree.data.XYDataItem)">add</A></B>(<A HREF="../../../org/jfree/data/XYDataItem.html" title="class in org.jfree.data">XYDataItem</A> item)</CODE><BR> Adds a data item to the series and sends a <A HREF="../../../org/jfree/data/SeriesChangeEvent.html" title="class in org.jfree.data"><CODE>SeriesChangeEvent</CODE></A> to all registered listeners.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/XYSeries.html#add(org.jfree.data.XYDataItem, boolean)">add</A></B>(<A HREF="../../../org/jfree/data/XYDataItem.html" title="class in org.jfree.data">XYDataItem</A> item, boolean notify)</CODE><BR> Adds a data item to the series and, if requested, sends a <A HREF="../../../org/jfree/data/SeriesChangeEvent.html" title="class in org.jfree.data"><CODE>SeriesChangeEvent</CODE></A> to all registered listeners.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/XYSeries.html#clear()">clear</A></B>()</CODE><BR> Removes all data items from the series.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.Object</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/XYSeries.html#clone()">clone</A></B>()</CODE><BR> Returns a clone of the series.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/jfree/data/XYSeries.html" title="class in org.jfree.data">XYSeries</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/XYSeries.html#createCopy(int, int)">createCopy</A></B>(int start, int end)</CODE><BR> Creates a new series by copying a subset of the data in this time series.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/XYSeries.html#delete(int, int)">delete</A></B>(int start, int end)</CODE><BR> Deletes a range of items from the series and sends a <A HREF="../../../org/jfree/data/SeriesChangeEvent.html" title="class in org.jfree.data"><CODE>SeriesChangeEvent</CODE></A> to all registered listeners.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/XYSeries.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object object)</CODE><BR> Tests this series for equality with an arbitrary object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/XYSeries.html#getAllowDuplicateXValues()">getAllowDuplicateXValues</A></B>()</CODE><BR> Returns a flag that controls whether duplicate x-values are allowed.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/XYSeries.html#getAutoSort()">getAutoSort</A></B>()</CODE><BR> Returns the flag that controls whether the items in the series are automatically sorted.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/jfree/data/XYDataItem.html" title="class in org.jfree.data">XYDataItem</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/XYSeries.html#getDataItem(int)">getDataItem</A></B>(int index)</CODE><BR> Return the data item with the specified index.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../org/jfree/data/XYDataPair.html" title="class in org.jfree.data">XYDataPair</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/XYSeries.html#getDataPair(int)">getDataPair</A></B>(int index)</CODE><BR> <B>Deprecated.</B> <I>Use getDataItem(index).</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/XYSeries.html#getItemCount()">getItemCount</A></B>()</CODE><BR> Returns the number of items in the series.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.util.List</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/XYSeries.html#getItems()">getItems</A></B>()</CODE><BR> Returns the list of data items for the series (the list contains <A HREF="../../../org/jfree/data/XYDataItem.html" title="class in org.jfree.data"><CODE>XYDataItem</CODE></A> objects and is unmodifiable).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/XYSeries.html#getMaximumItemCount()">getMaximumItemCount</A></B>()</CODE><BR> Returns the maximum number of items that will be retained in the series.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.Number</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/XYSeries.html#getXValue(int)">getXValue</A></B>(int index)</CODE><BR> Returns the x-value at the specified index.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.Number</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/XYSeries.html#getYValue(int)">getYValue</A></B>(int index)</CODE><BR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -