categorytablexydataset.html

来自「JFreeChart 9.20的文档 需要用JAVA在网页上做统计图的东东」· HTML 代码 · 共 931 行 · 第 1/3 页

HTML
931
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc (build 1.4.2_03) on Mon Jun 07 16:42:22 BST 2004 --><TITLE>CategoryTableXYDataset (JFreeChart Class Library (version 0.9.20))</TITLE><META NAME="keywords" CONTENT="org.jfree.data.CategoryTableXYDataset class"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){    parent.document.title="CategoryTableXYDataset (JFreeChart Class Library (version 0.9.20))";}</SCRIPT></HEAD><BODY BGCOLOR="white" onload="windowTitle();"><!-- ========= START OF TOP NAVBAR ======= --><A NAME="navbar_top"><!-- --></A><A HREF="#skip-navbar_top" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../org/jfree/data/AbstractXYZDataset.html" title="class in org.jfree.data"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../org/jfree/data/CategoryToPieDataset.html" title="class in org.jfree.data"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="CategoryTableXYDataset.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">org.jfree.data</FONT><BR>Class CategoryTableXYDataset</H2><PRE>java.lang.Object  <IMG SRC="../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../org/jfree/data/AbstractDataset.html" title="class in org.jfree.data">org.jfree.data.AbstractDataset</A>      <IMG SRC="../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../org/jfree/data/AbstractSeriesDataset.html" title="class in org.jfree.data">org.jfree.data.AbstractSeriesDataset</A>          <IMG SRC="../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../org/jfree/data/AbstractXYDataset.html" title="class in org.jfree.data">org.jfree.data.AbstractXYDataset</A>              <IMG SRC="../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../org/jfree/data/AbstractIntervalXYDataset.html" title="class in org.jfree.data">org.jfree.data.AbstractIntervalXYDataset</A>                  <IMG SRC="../../../resources/inherit.gif" ALT="extended by"><B>org.jfree.data.CategoryTableXYDataset</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD>java.lang.Cloneable, <A HREF="../../../org/jfree/data/Dataset.html" title="interface in org.jfree.data">Dataset</A>, <A HREF="../../../org/jfree/data/DomainInfo.html" title="interface in org.jfree.data">DomainInfo</A>, java.util.EventListener, <A HREF="../../../org/jfree/data/IntervalXYDataset.html" title="interface in org.jfree.data">IntervalXYDataset</A>, java.io.ObjectInputValidation, java.io.Serializable, <A HREF="../../../org/jfree/data/SeriesChangeListener.html" title="interface in org.jfree.data">SeriesChangeListener</A>, <A HREF="../../../org/jfree/data/SeriesDataset.html" title="interface in org.jfree.data">SeriesDataset</A>, <A HREF="../../../org/jfree/data/TableXYDataset.html" title="interface in org.jfree.data">TableXYDataset</A>, <A HREF="../../../org/jfree/data/XYDataset.html" title="interface in org.jfree.data">XYDataset</A></DD></DL><HR><DL><DT>public class <B>CategoryTableXYDataset</B><DT>extends <A HREF="../../../org/jfree/data/AbstractIntervalXYDataset.html" title="class in org.jfree.data">AbstractIntervalXYDataset</A><DT>implements <A HREF="../../../org/jfree/data/TableXYDataset.html" title="interface in org.jfree.data">TableXYDataset</A>, <A HREF="../../../org/jfree/data/IntervalXYDataset.html" title="interface in org.jfree.data">IntervalXYDataset</A>, <A HREF="../../../org/jfree/data/DomainInfo.html" title="interface in org.jfree.data">DomainInfo</A></DL><P>An implementation variant of the <A HREF="../../../org/jfree/data/TableXYDataset.html" title="interface in org.jfree.data"><CODE>TableXYDataset</CODE></A> where every series  shares the same x-values (required for generating stacked area charts).  This implementation uses a <A HREF="../../../org/jfree/data/DefaultKeyedValues2D.html" title="class in org.jfree.data"><CODE>DefaultKeyedValues2D</CODE></A> Object as backend  implementation and is hence more "category oriented" than the <A HREF="../../../org/jfree/data/DefaultTableXYDataset.html" title="class in org.jfree.data"><CODE>DefaultTableXYDataset</CODE></A> implementation. <p> This implementation provides no means to remove data items yet. This is due to the lack of such facility in the DefaultKeyedValues2D class. <p> This class also implements the <A HREF="../../../org/jfree/data/IntervalXYDataset.html" title="interface in org.jfree.data"><CODE>IntervalXYDataset</CODE></A> interface, but this implementation is provisional.<P><P><DL><DT><B>Author:</B></DT>  <DD>Andreas Schroeder</DD><DT><B>See Also:</B><DD><A HREF="../../../serialized-form.html#org.jfree.data.CategoryTableXYDataset">Serialized Form</A></DL><HR><P><!-- ======== NESTED CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/jfree/data/CategoryTableXYDataset.html#CategoryTableXYDataset()">CategoryTableXYDataset</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new empty CategoryTableXYDataset.</TD></TR></TABLE>&nbsp;<!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></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/CategoryTableXYDataset.html#add(double, double, java.lang.String)">add</A></B>(double&nbsp;x,    double&nbsp;y,    java.lang.String&nbsp;seriesName)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a data item to this data set.</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/CategoryTableXYDataset.html#add(java.lang.Number, java.lang.Number, java.lang.String, boolean)">add</A></B>(java.lang.Number&nbsp;x,    java.lang.Number&nbsp;y,    java.lang.String&nbsp;seriesName,    boolean&nbsp;notify)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a data item to this data set.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/CategoryTableXYDataset.html#getDomainRange()">getDomainRange</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the range of the values in this dataset's domain.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.Number</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/CategoryTableXYDataset.html#getEndXValue(int, int)">getEndXValue</A></B>(int&nbsp;series,             int&nbsp;item)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the ending X value for the specified series and item.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.Number</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/CategoryTableXYDataset.html#getEndYValue(int, int)">getEndYValue</A></B>(int&nbsp;series,             int&nbsp;item)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the ending Y value for the specified series and item.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/CategoryTableXYDataset.html#getIntervalPositionFactor()">getIntervalPositionFactor</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the interval position factor.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/CategoryTableXYDataset.html#getIntervalWidth()">getIntervalWidth</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;returns the full interval width.</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/CategoryTableXYDataset.html#getItemCount()">getItemCount</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of x values in the dataset.</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/CategoryTableXYDataset.html#getItemCount(int)">getItemCount</A></B>(int&nbsp;series)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of items in the specified series.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.Number</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/CategoryTableXYDataset.html#getMaximumDomainValue()">getMaximumDomainValue</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the maximum value in the dataset (or <code>null</code> if all the values in the domain are <code>null</code>).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.Number</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/CategoryTableXYDataset.html#getMinimumDomainValue()">getMinimumDomainValue</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the minimum value in the dataset (or <code>null</code> if all the values in the domain are <code>null</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/CategoryTableXYDataset.html#getSeriesCount()">getSeriesCount</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of series in the collection.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/CategoryTableXYDataset.html#getSeriesName(int)">getSeriesName</A></B>(int&nbsp;series)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the name of a series.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.Number</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/CategoryTableXYDataset.html#getStartXValue(int, int)">getStartXValue</A></B>(int&nbsp;series,               int&nbsp;item)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the starting X value for the specified series and item.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.Number</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/CategoryTableXYDataset.html#getStartYValue(int, int)">getStartYValue</A></B>(int&nbsp;series,               int&nbsp;item)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the starting Y value for the specified series and item.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.Number</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/CategoryTableXYDataset.html#getXValue(int, int)">getXValue</A></B>(int&nbsp;series,          int&nbsp;item)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the x-value for the specified series and item.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.Number</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/CategoryTableXYDataset.html#getYValue(int, int)">getYValue</A></B>(int&nbsp;series,          int&nbsp;item)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the y-value for the specified series and item.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/jfree/data/CategoryTableXYDataset.html#isAutoWidth()">isAutoWidth</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns wether the interval width is automatically calculated or not.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">

⌨️ 快捷键说明

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