📄 xyseries.html
字号:
<BR> Deletes a range of items from 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.</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/xy/XYSeries.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object obj)</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/xy/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/xy/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/xy/XYDataItem.html" title="class in org.jfree.data.xy">XYDataItem</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/data/xy/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> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/data/xy/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/xy/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/xy/XYDataItem.html" title="class in org.jfree.data.xy"><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/xy/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/xy/XYSeries.html#getX(int)">getX</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/xy/XYSeries.html#getY(int)">getY</A></B>(int index)</CODE><BR> Returns the y-value at the specified index.</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/xy/XYSeries.html#hashCode()">hashCode</A></B>()</CODE><BR> Returns a hash code.</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/xy/XYSeries.html#indexOf(java.lang.Number)">indexOf</A></B>(java.lang.Number x)</CODE><BR> 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.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../org/jfree/data/xy/XYDataItem.html" title="class in org.jfree.data.xy">XYDataItem</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/data/xy/XYSeries.html#remove(int)">remove</A></B>(int index)</CODE><BR> Removes the item at the specified index 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.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../org/jfree/data/xy/XYDataItem.html" title="class in org.jfree.data.xy">XYDataItem</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/data/xy/XYSeries.html#remove(java.lang.Number)">remove</A></B>(java.lang.Number x)</CODE><BR> Removes the item with the specified x-value 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.</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/xy/XYSeries.html#setMaximumItemCount(int)">setMaximumItemCount</A></B>(int maximum)</CODE><BR> Sets 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> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/data/xy/XYSeries.html#update(int, java.lang.Number)">update</A></B>(int index, java.lang.Number y)</CODE><BR> <B>Deprecated.</B> <I>Renamed updateByIndex(int, Number) to avoid confusion with the update(Number, Number) method.</I></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/xy/XYSeries.html#update(java.lang.Number, java.lang.Number)">update</A></B>(java.lang.Number x, java.lang.Number y)</CODE><BR> Updates an item in the 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/xy/XYSeries.html#updateByIndex(int, java.lang.Number)">updateByIndex</A></B>(int index, java.lang.Number y)</CODE><BR> 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.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_org.jfree.data.general.Series"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class org.jfree.data.general.<A HREF="../../../../org/jfree/data/general/Series.html" title="class in org.jfree.data.general">Series</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../org/jfree/data/general/Series.html#addChangeListener(org.jfree.data.general.SeriesChangeListener)">addChangeListener</A>, <A HREF="../../../../org/jfree/data/general/Series.html#addPropertyChangeListener(java.beans.PropertyChangeListener)">addPropertyChangeListener</A>, <A HREF="../../../../org/jfree/data/general/Series.html#firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)">firePropertyChange</A>, <A HREF="../../../../org/jfree/data/general/Series.html#fireSeriesChanged()">fireSeriesChanged</A>, <A HREF="../../../../org/jfree/data/general/Series.html#getDescription()">getDescription</A>, <A HREF="../../../../org/jfree/data/general/Series.html#getKey()">getKey</A>, <A HREF="../../../../org/jfree/data/general/Series.html#getNotify()">getNotify</A>, <A HREF="../../../../org/jfree/data/general/Series.html#notifyListeners(org.jfree.data.general.SeriesChangeEvent)">notifyListeners</A>, <A HREF="../../../../org/jfree/data/general/Series.html#removeChangeListener(org.jfree.data.general.SeriesChangeListener)">removeChangeListener</A>, <A HREF="../../../../org/jfree/data/general/Series.html#removePropertyChangeListener(java.beans.PropertyChangeListener)">removePropertyChangeListener</A>, <A HREF="../../../../org/jfree/data/general/Series.html#setDescription(java.lang.String)">setDescription</A>, <A HREF="../../../../org/jfree/data/general/Series.html#setKey(java.lang.Comparable)">setKey</A>, <A HREF="../../../../org/jfree/data/general/Series.html#setNotify(boolean)">setNotify</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>finalize, getClass, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Field Detail</B></FONT></TH></TR></TABLE><A NAME="data"><!-- --></A><H3>data</H3><PRE>protected java.util.List <A HREF="../../../../src-html/org/jfree/data/xy/XYSeries.html#line.100"><B>data</B></A></PRE><DL><DD>Storage for the data items in the series.<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="XYSeries(java.lang.Comparable)"><!-- --></A><H3>XYSeries</H3><PRE>public <A HREF="../../../../src-html/org/jfree/data/xy/XYSeries.html#line.118"><B>XYSeries</B></A>(java.lang.Comparable key)</PRE><DL><DD>Creates a new empty series. By default, items added to the series will be sorted into ascending order by x-value, and duplicate x-values will be allowed (these defaults can be modified with another constructor.<P><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the series key (<code>null</code> not permitted).</DL></DL><HR><A NAME="XYSeries(java.lang.Comparable, boolean)"><!-- --></A><H3>XYSeries</H3><PRE>public <A HREF="../../../../src-html/org/jfree/data/xy/XYSeries.html#line.130"><B>XYSeries</B></A>(java.lang.Comparable key, boolean autoSort)</PRE><DL><DD>Constructs a new empty series, with the auto-sort flag set as requested, and duplicate values allowed.<P><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the series key (<code>null</code> not permitted).<DD><CODE>autoSort</CODE> - a flag that controls whether or not the items in the series are sorted.</DL></DL><HR><A NAME="XYSeries(java.lang.Comparable, boolean, boolean)"><!-- --></A><H3>XYSeries</H3><PRE>public <A HREF="../../../../src-html/org/jfree/data/xy/XYSeries.html#line.144"><B>XYSeries</B></A>(java.lang.Comparable key, boolean autoSort, boolean allowDuplicateXValues)</PRE><DL><DD>Constructs a new xy-series that contains no data. You can specify whether or not duplicate x-values are allowed for the series.<P><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the series key (<code>null</code> not permitted).<DD><CODE>autoSort</CODE> - a flag that controls whether or not the items in the series are sorted.<DD><CODE>allowDuplicateXValues</CODE> - a flag that controls whether duplicate x-values are allowed.</DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="getAutoSort()"><!-- --></A><H3>getAutoSort</H3><PRE>public boolean <A HREF="../../../../src-html/org/jfree/data/xy/XYSeries.html#line.160"><B>getAutoSort</B></A>()</PRE><DL><DD>Returns the flag that controls whether the items in the series are automatically sorted. There is no setter for this flag, it must be defined in the series constructor.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>A boolean.</DL></DD></DL><HR><A NAME="getAllowDuplicateXValues()"><!-- --></A><H3>getAllowDuplicateXValues</H3><PRE>public boolean <A HREF="../../../../src-html/org/jfree/data/xy/XYSeries.html#line.170"><B>getAllowDuplicateXValues</B></A>()</PRE><DL><DD>Returns a flag that controls whether duplicate x-values are allowed. This flag can only be set in the constructor.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>A boolean.</DL></DD></DL><HR><A NAME="getItemCount()"><!-- --></A><H3>getItemCount</H3><PRE>public int <A HREF="../../../../src-html/org/jfree/data/xy/XYSeries.html#line.179"><B>getItemCount</B></A>()</PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -