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

📄 xyseries.html

📁 jfreechart1。0。2的api。
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<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 <A HREF="../../../../src-html/org/jfree/data/xy/XYSeries.html#line.189"><B>getItems</B></A>()</PRE><DL><DD>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).<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 <A HREF="../../../../src-html/org/jfree/data/xy/XYSeries.html#line.200"><B>getMaximumItemCount</B></A>()</PRE><DL><DD>Returns the maximum number of items that will be retained in the series. 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.<DT><B>See Also:</B><DD><A HREF="../../../../org/jfree/data/xy/XYSeries.html#setMaximumItemCount(int)"><CODE>setMaximumItemCount(int)</CODE></A></DL></DD></DL><HR><A NAME="setMaximumItemCount(int)"><!-- --></A><H3>setMaximumItemCount</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/data/xy/XYSeries.html#line.218"><B>setMaximumItemCount</B></A>(int&nbsp;maximum)</PRE><DL><DD>Sets the maximum number of items that will be retained in the series.   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> Typically this value is set before the series is populated with data, but if it is applied later, it may cause some items to be removed from the series (in which case a <A HREF="../../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><CODE>SeriesChangeEvent</CODE></A> will be sent to all registered listeners.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>maximum</CODE> - the maximum number of items for the series.</DL></DD></DL><HR><A NAME="add(org.jfree.data.xy.XYDataItem)"><!-- --></A><H3>add</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/data/xy/XYSeries.html#line.236"><B>add</B></A>(<A HREF="../../../../org/jfree/data/xy/XYDataItem.html" title="class in org.jfree.data.xy">XYDataItem</A>&nbsp;item)</PRE><DL><DD>Adds a data item to 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>item</CODE> - the (x, y) item (<code>null</code> not permitted).</DL></DD></DL><HR><A NAME="add(double, double)"><!-- --></A><H3>add</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/data/xy/XYSeries.html#line.248"><B>add</B></A>(double&nbsp;x,                double&nbsp;y)</PRE><DL><DD>Adds a data item to 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.<DD><CODE>y</CODE> - the y value.</DL></DD></DL><HR><A NAME="add(double, double, boolean)"><!-- --></A><H3>add</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/data/xy/XYSeries.html#line.262"><B>add</B></A>(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/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.<DD><CODE>y</CODE> - the y value.<DD><CODE>notify</CODE> - a flag that controls whether or not a                 <A HREF="../../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><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 <A HREF="../../../../src-html/org/jfree/data/xy/XYSeries.html#line.274"><B>add</B></A>(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/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><CODE>SeriesChangeEvent</CODE></A> to  all registered listeners.  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 <A HREF="../../../../src-html/org/jfree/data/xy/XYSeries.html#line.289"><B>add</B></A>(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/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><CODE>SeriesChangeEvent</CODE></A> to all registered listeners.  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 (<code>null</code> permitted).<DD><CODE>notify</CODE> - a flag that controls whether or not a                 <A HREF="../../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><CODE>SeriesChangeEvent</CODE></A> is sent to all registered                 listeners.</DL></DD></DL><HR><A NAME="add(java.lang.Number, java.lang.Number)"><!-- --></A><H3>add</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/data/xy/XYSeries.html#line.303"><B>add</B></A>(java.lang.Number&nbsp;x,                java.lang.Number&nbsp;y)</PRE><DL><DD>Adds new data to 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> Throws an exception if the x-value is a duplicate AND the  allowDuplicateXValues flag is false.<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).</DL></DD></DL><HR><A NAME="add(java.lang.Number, java.lang.Number, boolean)"><!-- --></A><H3>add</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/data/xy/XYSeries.html#line.321"><B>add</B></A>(java.lang.Number&nbsp;x,                java.lang.Number&nbsp;y,                boolean&nbsp;notify)</PRE><DL><DD>Adds new data to the series and, if requested, 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> Throws an exception if the x-value is a duplicate AND the  allowDuplicateXValues flag is false.<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).<DD><CODE>notify</CODE> - a flag the controls whether or not a                 <A HREF="../../../../org/jfree/data/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><CODE>SeriesChangeEvent</CODE></A> is sent to all registered                 listeners.</DL></DD></DL><HR><A NAME="add(org.jfree.data.xy.XYDataItem, boolean)"><!-- --></A><H3>add</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/data/xy/XYSeries.html#line.336"><B>add</B></A>(<A HREF="../../../../org/jfree/data/xy/XYDataItem.html" title="class in org.jfree.data.xy">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/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>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/general/SeriesChangeEvent.html" title="class in org.jfree.data.general"><CODE>SeriesChangeEvent</CODE></A> is sent to all registered                 listeners.</DL></DD></DL><HR><A NAME="delete(int, int)"><!-- --></A><H3>delete</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/data/xy/XYSeries.html#line.393"><B>delete</B></A>(int&nbsp;start,                   int&nbsp;end)</PRE><DL><DD>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.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>start</CODE> - the start index (zero-based).<DD><CODE>end</CODE> - the end index (zero-based).</DL></DD></DL><HR><A NAME="remove(int)"><!-- --></A><H3>remove</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.408"><B>remove</B></A>(int&nbsp;index)</PRE><DL><DD>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.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index.<DT><B>Returns:</B><DD>The item removed.</DL></DD></DL><HR><A NAME="remove(java.lang.Number)"><!-- --></A><H3>remove</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.422"><B>remove</B></A>(java.lang.Number&nbsp;x)</PRE><DL><DD>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.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the x-value.<DT><B>Returns:</B><DD>The item removed.</DL></DD></DL><HR><A NAME="clear()"><!-- --></A><H3>clear</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/data/xy/XYSeries.html#line.429"><B>clear</B></A>()</PRE><DL><DD>Removes all data items from the series.<P><DD><DL></DL>

⌨️ 快捷键说明

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