📄 defaultxydataset.html
字号:
<A NAME="getX(int, int)"><!-- --></A><H3>getX</H3><PRE>public java.lang.Number <A HREF="../../../../src-html/org/jfree/data/xy/DefaultXYDataset.html#line.190"><B>getX</B></A>(int series, int item)</PRE><DL><DD>Returns the x-value for an item within a series.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/data/xy/XYDataset.html#getX(int, int)">getX</A></CODE> in interface <CODE><A HREF="../../../../org/jfree/data/xy/XYDataset.html" title="interface in org.jfree.data.xy">XYDataset</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>series</CODE> - the series index (in the range <code>0</code> to <code>getSeriesCount() - 1</code>).<DD><CODE>item</CODE> - the item index (in the range <code>0</code> to <code>getItemCount(series)</code>).<DT><B>Returns:</B><DD>The x-value.<DT><B>Throws:</B><DD><CODE>ArrayIndexOutOfBounds</CODE> - if <code>series</code> is not within the specified range.<DD><CODE>ArrayIndexOutOfBounds</CODE> - if <code>item</code> is not within the specified range.<DT><B>See Also:</B><DD><A HREF="../../../../org/jfree/data/xy/DefaultXYDataset.html#getXValue(int, int)"><CODE>getXValue(int, int)</CODE></A></DL></DD></DL><HR><A NAME="getYValue(int, int)"><!-- --></A><H3>getYValue</H3><PRE>public double <A HREF="../../../../src-html/org/jfree/data/xy/DefaultXYDataset.html#line.211"><B>getYValue</B></A>(int series, int item)</PRE><DL><DD>Returns the y-value for an item within a series.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/data/xy/XYDataset.html#getYValue(int, int)">getYValue</A></CODE> in interface <CODE><A HREF="../../../../org/jfree/data/xy/XYDataset.html" title="interface in org.jfree.data.xy">XYDataset</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/jfree/data/xy/AbstractXYDataset.html#getYValue(int, int)">getYValue</A></CODE> in class <CODE><A HREF="../../../../org/jfree/data/xy/AbstractXYDataset.html" title="class in org.jfree.data.xy">AbstractXYDataset</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>series</CODE> - the series index (in the range <code>0</code> to <code>getSeriesCount() - 1</code>).<DD><CODE>item</CODE> - the item index (in the range <code>0</code> to <code>getItemCount(series)</code>).<DT><B>Returns:</B><DD>The y-value.<DT><B>Throws:</B><DD><CODE>ArrayIndexOutOfBounds</CODE> - if <code>series</code> is not within the specified range.<DD><CODE>ArrayIndexOutOfBounds</CODE> - if <code>item</code> is not within the specified range.<DT><B>See Also:</B><DD><A HREF="../../../../org/jfree/data/xy/DefaultXYDataset.html#getY(int, int)"><CODE>getY(int, int)</CODE></A></DL></DD></DL><HR><A NAME="getY(int, int)"><!-- --></A><H3>getY</H3><PRE>public java.lang.Number <A HREF="../../../../src-html/org/jfree/data/xy/DefaultXYDataset.html#line.233"><B>getY</B></A>(int series, int item)</PRE><DL><DD>Returns the y-value for an item within a series.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/jfree/data/xy/XYDataset.html#getY(int, int)">getY</A></CODE> in interface <CODE><A HREF="../../../../org/jfree/data/xy/XYDataset.html" title="interface in org.jfree.data.xy">XYDataset</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>series</CODE> - the series index (in the range <code>0</code> to <code>getSeriesCount() - 1</code>).<DD><CODE>item</CODE> - the item index (in the range <code>0</code> to <code>getItemCount(series)</code>).<DT><B>Returns:</B><DD>The y-value.<DT><B>Throws:</B><DD><CODE>ArrayIndexOutOfBounds</CODE> - if <code>series</code> is not within the specified range.<DD><CODE>ArrayIndexOutOfBounds</CODE> - if <code>item</code> is not within the specified range.<DT><B>See Also:</B><DD><A HREF="../../../../org/jfree/data/xy/DefaultXYDataset.html#getX(int, int)"><CODE>getX(int, int)</CODE></A></DL></DD></DL><HR><A NAME="addSeries(java.lang.Comparable, double[][])"><!-- --></A><H3>addSeries</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/data/xy/DefaultXYDataset.html#line.247"><B>addSeries</B></A>(java.lang.Comparable seriesKey, double[][] data)</PRE><DL><DD>Adds a series or if a series with the same key already exists replaces the data for that series, then sends a <A HREF="../../../../org/jfree/data/general/DatasetChangeEvent.html" title="class in org.jfree.data.general"><CODE>DatasetChangeEvent</CODE></A> to all registered listeners.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>seriesKey</CODE> - the series key (<code>null</code> not permitted).<DD><CODE>data</CODE> - the data (must be an array with length 2, containing two arrays of equal length, the first containing the x-values and the second containing the y-values).</DL></DD></DL><HR><A NAME="removeSeries(java.lang.Comparable)"><!-- --></A><H3>removeSeries</H3><PRE>public void <A HREF="../../../../src-html/org/jfree/data/xy/DefaultXYDataset.html#line.281"><B>removeSeries</B></A>(java.lang.Comparable seriesKey)</PRE><DL><DD>Removes a series from the dataset, then sends a <A HREF="../../../../org/jfree/data/general/DatasetChangeEvent.html" title="class in org.jfree.data.general"><CODE>DatasetChangeEvent</CODE></A> to all registered listeners.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>seriesKey</CODE> - the series key (<code>null</code> not permitted).</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <A HREF="../../../../src-html/org/jfree/data/xy/DefaultXYDataset.html#line.305"><B>equals</B></A>(java.lang.Object obj)</PRE><DL><DD>Tests this <code>DefaultXYDataset</code> instance for equality with an arbitrary object. This method returns <code>true</code> if and only if: <ul> <li><code>obj</code> is not <code>null</code>;</li> <li><code>obj</code> is an instance of <code>DefaultXYDataset</code>;</li> <li>both datasets have the same number of series, each containing exactly the same values.</li> </ul><P><DD><DL><DT><B>Overrides:</B><DD><CODE>equals</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - the object (<code>null</code> permitted).<DT><B>Returns:</B><DD>A boolean.</DL></DD></DL><HR><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>public java.lang.Object <A HREF="../../../../src-html/org/jfree/data/xy/DefaultXYDataset.html#line.342"><B>clone</B></A>() throws java.lang.CloneNotSupportedException</PRE><DL><DD>Creates an independent copy of this dataset.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../org/jfree/data/general/AbstractDataset.html#clone()">clone</A></CODE> in class <CODE><A HREF="../../../../org/jfree/data/general/AbstractDataset.html" title="class in org.jfree.data.general">AbstractDataset</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>The cloned dataset.<DT><B>Throws:</B><DD><CODE>java.lang.CloneNotSupportedException</CODE> - if there is a problem cloning the dataset (for instance, if a non-cloneable object is used for a series key).</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_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="class-use/DefaultXYDataset.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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-files/index-1.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/xy/DefaultWindDataset.html" title="class in org.jfree.data.xy"><B>PREV CLASS</B></A> <A HREF="../../../../org/jfree/data/xy/DefaultXYZDataset.html" title="class in org.jfree.data.xy"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?org/jfree/data/xy/DefaultXYDataset.html" target="_top"><B>FRAMES</B></A> <A HREF="DefaultXYDataset.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 | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -