⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xyseries.html

📁 JFreeChart 9.20的文档 需要用JAVA在网页上做统计图的东东
💻 HTML
📖 第 1 页 / 共 3 页
字号:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/XYSeries.html#hashCode()">hashCode</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a hash code.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/XYSeries.html#indexOf(java.lang.Number)">indexOf</A></B>(java.lang.Number&nbsp;x)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the index of the item with the specified x-value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<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#remove(int)">remove</A></B>(int&nbsp;index)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes the item at the specified index.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<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#remove(java.lang.Number)">remove</A></B>(java.lang.Number&nbsp;x)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes the item(s) with the specified x-value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/XYSeries.html#setMaximumItemCount(int)">setMaximumItemCount</A></B>(int&nbsp;maximum)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/XYSeries.html#update(int, java.lang.Number)">update</A></B>(int&nbsp;index,       java.lang.Number&nbsp;y)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Updates the value of an item in 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></TABLE>&nbsp;<A NAME="methods_inherited_from_class_org.jfree.data.Series"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class org.jfree.data.<A HREF="../../../org/jfree/data/Series.html" title="class in org.jfree.data">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#getNotify()">getNotify</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>, <A HREF="../../../org/jfree/data/Series.html#setNotify(boolean)">setNotify</A></CODE></TD></TR></TABLE>&nbsp;<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"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>finalize, getClass, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><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" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><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&nbsp;name)</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><DT><B>Parameters:</B><DD><CODE>name</CODE> - the series name (<code>null</code> not permitted).</DL><HR><A NAME="XYSeries(java.lang.String, boolean, boolean)"><!-- --></A><H3>XYSeries</H3><PRE>public <B>XYSeries</B>(java.lang.String&nbsp;name,                boolean&nbsp;autoSort,                boolean&nbsp;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 (<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><HR><A NAME="XYSeries(java.lang.String, boolean)"><!-- --></A><H3>XYSeries</H3><PRE>public <B>XYSeries</B>(java.lang.String&nbsp;name,                boolean&nbsp;allowDuplicateXValues)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>Use a XYSeries(String, boolean, boolean) instead.</I><P><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" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getAutoSort()"><!-- --></A><H3>getAutoSort</H3><PRE>public boolean <B>getAutoSort</B>()</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 <B>getAllowDuplicateXValues</B>()</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 <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" title="class in org.jfree.data"><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&nbsp;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" title="class in org.jfree.data">XYDataItem</A>&nbsp;item)</PRE><DL><DD>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.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>item</CODE> - the (x, y) item (<code>null</code> not permitted).</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" title="class in org.jfree.data">XYDataItem</A>&nbsp;item,                boolean&nbsp;notify)</PRE><DL><DD>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.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>item</CODE> - the (x, y) item (<code>null</code> not permitted).<DD><CODE>notify</CODE> - a flag that controls whether or not a <A HREF="../../../org/jfree/data/SeriesChangeEvent.html" title="class in org.jfree.data"><CODE>SeriesChangeEvent</CODE></A> is sent to                 all registered listeners.</DL></DD></DL><HR><A NAME="add(double, double)"><!-- --></A><H3>add</H3><PRE>public void <B>add</B>(double&nbsp;x,                double&nbsp;y)</PRE><DL><DD>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.<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.</DL></DD></DL><HR><A NAME="add(double, double, boolean)"><!-- --></A><H3>add</H3><PRE>public void <B>add</B>(double&nbsp;x,                double&nbsp;y,                boolean&nbsp;notify)</PRE><DL><DD>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.<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" title="class in org.jfree.data"><CODE>SeriesChangeEvent</CODE></A> is sent to                 all registered listeners.</DL></DD></DL><HR><A NAME="add(double, java.lang.Number)"><!-- --></A><H3>add</H3><PRE>public void <B>add</B>(double&nbsp;x,                java.lang.Number&nbsp;y)</PRE><DL><DD>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. <P> The unusual pairing of parameter types is to make it easier to add <code>null</code>  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 (<code>null</code> permitted).</DL></DD></DL><HR><A NAME="add(double, java.lang.Number, boolean)"><!-- --></A><H3>add</H3><PRE>public void <B>add</B>(double&nbsp;x,                java.lang.Number&nbsp;y,                boolean&nbsp;notify)</PRE><DL><DD>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.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -