xyseries.html
来自「JFreeChart的帮助文档」· HTML 代码 · 共 914 行 · 第 1/3 页
HTML
914 行
<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> 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> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/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/XYSeries.html#update(int, java.lang.Number)">update</A></B>(int index, java.lang.Number y)</CODE><BR> Updates the value of an item in the series.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_org.jfree.data.Series"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class org.jfree.data.<A HREF="../../../org/jfree/data/Series.html">Series</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../org/jfree/data/Series.html#addChangeListener(org.jfree.data.SeriesChangeListener)">addChangeListener</A>, <A HREF="../../../org/jfree/data/Series.html#addPropertyChangeListener(java.beans.PropertyChangeListener)">addPropertyChangeListener</A>, <A HREF="../../../org/jfree/data/Series.html#firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)">firePropertyChange</A>, <A HREF="../../../org/jfree/data/Series.html#fireSeriesChanged()">fireSeriesChanged</A>, <A HREF="../../../org/jfree/data/Series.html#getDescription()">getDescription</A>, <A HREF="../../../org/jfree/data/Series.html#getName()">getName</A>, <A HREF="../../../org/jfree/data/Series.html#notifyListeners(org.jfree.data.SeriesChangeEvent)">notifyListeners</A>, <A HREF="../../../org/jfree/data/Series.html#removeChangeListener(org.jfree.data.SeriesChangeListener)">removeChangeListener</A>, <A HREF="../../../org/jfree/data/Series.html#removePropertyChangeListener(java.beans.PropertyChangeListener)">removePropertyChangeListener</A>, <A HREF="../../../org/jfree/data/Series.html#setDescription(java.lang.String)">setDescription</A>, <A HREF="../../../org/jfree/data/Series.html#setName(java.lang.String)">setName</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="data"><!-- --></A><H3>data</H3><PRE>protected java.util.List <B>data</B></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" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="XYSeries(java.lang.String)"><!-- --></A><H3>XYSeries</H3><PRE>public <B>XYSeries</B>(java.lang.String name)</PRE><DL><DD>Constructs a new xy-series that contains no data. <p> By default, duplicate x-values will be allowed for the series.<P><DT><B>Parameters:</B><DD><CODE>name</CODE> - the series name.</DL><HR><A NAME="XYSeries(java.lang.String, boolean)"><!-- --></A><H3>XYSeries</H3><PRE>public <B>XYSeries</B>(java.lang.String name, 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><DT><B>Parameters:</B><DD><CODE>name</CODE> - the series name.<DD><CODE>allowDuplicateXValues</CODE> - a flag that controls whether duplicate x-values are allowed.</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="getItemCount()"><!-- --></A><H3>getItemCount</H3><PRE>public int <B>getItemCount</B>()</PRE><DL><DD>Returns the number of items in the series.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The item count.</DL></DD></DL><HR><A NAME="getItems()"><!-- --></A><H3>getItems</H3><PRE>public java.util.List <B>getItems</B>()</PRE><DL><DD>Returns the list of data items for the series (the list contains <A HREF="../../../org/jfree/data/XYDataItem.html"><CODE>XYDataItem</CODE></A> objects and is unmodifiable).<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The list of data items.</DL></DD></DL><HR><A NAME="getMaximumItemCount()"><!-- --></A><H3>getMaximumItemCount</H3><PRE>public int <B>getMaximumItemCount</B>()</PRE><DL><DD>Returns the maximum number of items that will be retained in the series. <P> The default value is <code>Integer.MAX_VALUE</code>).<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the maximum item count.</DL></DD></DL><HR><A NAME="setMaximumItemCount(int)"><!-- --></A><H3>setMaximumItemCount</H3><PRE>public void <B>setMaximumItemCount</B>(int maximum)</PRE><DL><DD>Sets the maximum number of items that will be retained in the series. <P> If you add a new item to the series such that the number of items will exceed the maximum item count, then the FIRST element in the series is automatically removed, ensuring that the maximum item count is not exceeded.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>maximum</CODE> - the maximum.</DL></DD></DL><HR><A NAME="add(org.jfree.data.XYDataItem)"><!-- --></A><H3>add</H3><PRE>public void <B>add</B>(<A HREF="../../../org/jfree/data/XYDataItem.html">XYDataItem</A> item) throws <A HREF="../../../org/jfree/data/SeriesException.html">SeriesException</A></PRE><DL><DD>Adds a data item to the series. A <A HREF="../../../org/jfree/data/SeriesChangeEvent.html"><CODE>SeriesChangeEvent</CODE></A> is sent to all registered listeners.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>item</CODE> - the (x, y) item.<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(org.jfree.data.XYDataItem, boolean)"><!-- --></A><H3>add</H3><PRE>public void <B>add</B>(<A HREF="../../../org/jfree/data/XYDataItem.html">XYDataItem</A> item, boolean notify) throws <A HREF="../../../org/jfree/data/SeriesException.html">SeriesException</A></PRE><DL><DD>Adds a data item to the series. If requested (via <code>notify</code>), a <A HREF="../../../org/jfree/data/SeriesChangeEvent.html"><CODE>SeriesChangeEvent</CODE></A> is sent to all registered listeners.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>item</CODE> - the (x, y) item.<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(double, double)"><!-- --></A><H3>add</H3><PRE>public void <B>add</B>(double x, double y) throws <A HREF="../../../org/jfree/data/SeriesException.html">SeriesException</A></PRE><DL><DD>Adds a data item to the series.<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(double, double, boolean)"><!-- --></A><H3>add</H3><PRE>public void <B>add</B>(double x, double y, boolean notify) throws <A HREF="../../../org/jfree/data/SeriesException.html">SeriesException</A></PRE><DL><DD>Adds a data item to the series.<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(double, java.lang.Number)"><!-- --></A><H3>add</H3><PRE>public void <B>add</B>(double x, java.lang.Number y) 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.<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>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?