📄 defaultcategorydataset.html
字号:
<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/DefaultCategoryDataset.html#removeColumn(int)">removeColumn</A></B>(int columnIndex)</CODE><BR> Removes a column from the dataset.</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/DefaultCategoryDataset.html#removeRow(java.lang.Comparable)">removeRow</A></B>(java.lang.Comparable rowKey)</CODE><BR> Removes a row from the dataset.</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/DefaultCategoryDataset.html#removeRow(int)">removeRow</A></B>(int rowIndex)</CODE><BR> Removes a row from the dataset.</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/DefaultCategoryDataset.html#removeValue(java.lang.Comparable, java.lang.Comparable)">removeValue</A></B>(java.lang.Comparable rowKey, java.lang.Comparable columnKey)</CODE><BR> Removes a value from the dataset.</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/DefaultCategoryDataset.html#setValue(double, java.lang.Comparable, java.lang.Comparable)">setValue</A></B>(double value, java.lang.Comparable rowKey, java.lang.Comparable columnKey)</CODE><BR> Adds or updates a value in the table.</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/DefaultCategoryDataset.html#setValue(java.lang.Number, java.lang.Comparable, java.lang.Comparable)">setValue</A></B>(java.lang.Number value, java.lang.Comparable rowKey, java.lang.Comparable columnKey)</CODE><BR> Adds or updates a value in the table.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_org.jfree.data.AbstractDataset"><!-- --></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/AbstractDataset.html" title="class in org.jfree.data">AbstractDataset</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../org/jfree/data/AbstractDataset.html#addChangeListener(org.jfree.data.DatasetChangeListener)">addChangeListener</A>, <A HREF="../../../org/jfree/data/AbstractDataset.html#clone()">clone</A>, <A HREF="../../../org/jfree/data/AbstractDataset.html#fireDatasetChanged()">fireDatasetChanged</A>, <A HREF="../../../org/jfree/data/AbstractDataset.html#getGroup()">getGroup</A>, <A HREF="../../../org/jfree/data/AbstractDataset.html#notifyListeners(org.jfree.data.DatasetChangeEvent)">notifyListeners</A>, <A HREF="../../../org/jfree/data/AbstractDataset.html#removeChangeListener(org.jfree.data.DatasetChangeListener)">removeChangeListener</A>, <A HREF="../../../org/jfree/data/AbstractDataset.html#setGroup(org.jfree.data.DatasetGroup)">setGroup</A>, <A HREF="../../../org/jfree/data/AbstractDataset.html#validateObject()">validateObject</A></CODE></TD></TR></TABLE> <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> <A NAME="methods_inherited_from_class_org.jfree.data.Dataset"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface org.jfree.data.<A HREF="../../../org/jfree/data/Dataset.html" title="interface in org.jfree.data">Dataset</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../org/jfree/data/Dataset.html#addChangeListener(org.jfree.data.DatasetChangeListener)">addChangeListener</A>, <A HREF="../../../org/jfree/data/Dataset.html#getGroup()">getGroup</A>, <A HREF="../../../org/jfree/data/Dataset.html#removeChangeListener(org.jfree.data.DatasetChangeListener)">removeChangeListener</A>, <A HREF="../../../org/jfree/data/Dataset.html#setGroup(org.jfree.data.DatasetGroup)">setGroup</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= 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="DefaultCategoryDataset()"><!-- --></A><H3>DefaultCategoryDataset</H3><PRE>public <B>DefaultCategoryDataset</B>()</PRE><DL><DD>Creates a new (empty) dataset.<P></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="getRowCount()"><!-- --></A><H3>getRowCount</H3><PRE>public int <B>getRowCount</B>()</PRE><DL><DD>Returns the number of rows in the table.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jfree/data/Values2D.html#getRowCount()">getRowCount</A></CODE> in interface <CODE><A HREF="../../../org/jfree/data/Values2D.html" title="interface in org.jfree.data">Values2D</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the row count.</DL></DD></DL><HR><A NAME="getColumnCount()"><!-- --></A><H3>getColumnCount</H3><PRE>public int <B>getColumnCount</B>()</PRE><DL><DD>Returns the number of columns in the table.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jfree/data/Values2D.html#getColumnCount()">getColumnCount</A></CODE> in interface <CODE><A HREF="../../../org/jfree/data/Values2D.html" title="interface in org.jfree.data">Values2D</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the column count.</DL></DD></DL><HR><A NAME="getValue(int, int)"><!-- --></A><H3>getValue</H3><PRE>public java.lang.Number <B>getValue</B>(int row, int column)</PRE><DL><DD>Returns a value from the table.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jfree/data/Values2D.html#getValue(int, int)">getValue</A></CODE> in interface <CODE><A HREF="../../../org/jfree/data/Values2D.html" title="interface in org.jfree.data">Values2D</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>row</CODE> - the row index (zero-based).<DD><CODE>column</CODE> - the column index (zero-based).<DT><B>Returns:</B><DD>the value (possibly null).</DL></DD></DL><HR><A NAME="getRowKey(int)"><!-- --></A><H3>getRowKey</H3><PRE>public java.lang.Comparable <B>getRowKey</B>(int row)</PRE><DL><DD>Returns a row key.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jfree/data/KeyedValues2D.html#getRowKey(int)">getRowKey</A></CODE> in interface <CODE><A HREF="../../../org/jfree/data/KeyedValues2D.html" title="interface in org.jfree.data">KeyedValues2D</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>row</CODE> - the row index (zero-based).<DT><B>Returns:</B><DD>the row key.</DL></DD></DL><HR><A NAME="getRowIndex(java.lang.Comparable)"><!-- --></A><H3>getRowIndex</H3><PRE>public int <B>getRowIndex</B>(java.lang.Comparable key)</PRE><DL><DD>Returns the row index for a given key.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jfree/data/KeyedValues2D.html#getRowIndex(java.lang.Comparable)">getRowIndex</A></CODE> in interface <CODE><A HREF="../../../org/jfree/data/KeyedValues2D.html" title="interface in org.jfree.data">KeyedValues2D</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the row key.<DT><B>Returns:</B><DD>the row index.</DL></DD></DL><HR><A NAME="getRowKeys()"><!-- --></A><H3>getRowKeys</H3><PRE>public java.util.List <B>getRowKeys</B>()</PRE><DL><DD>Returns the row keys.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jfree/data/KeyedValues2D.html#getRowKeys()">getRowKeys</A></CODE> in interface <CODE><A HREF="../../../org/jfree/data/KeyedValues2D.html" title="interface in org.jfree.data">KeyedValues2D</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the keys.</DL></DD></DL><HR><A NAME="getColumnKey(int)"><!-- --></A><H3>getColumnKey</H3><PRE>public java.lang.Comparable <B>getColumnKey</B>(int column)</PRE><DL><DD>Returns a column key.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jfree/data/KeyedValues2D.html#getColumnKey(int)">getColumnKey</A></CODE> in interface <CODE><A HREF="../../../org/jfree/data/KeyedValues2D.html" title="interface in org.jfree.data">KeyedValues2D</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>column</CODE> - the column index (zero-based).<DT><B>Returns:</B><DD>the column key.</DL></DD></DL><HR><A NAME="getColumnIndex(java.lang.Comparable)"><!-- --></A><H3>getColumnIndex</H3><PRE>public int <B>getColumnIndex</B>(java.lang.Comparable key)</PRE><DL><DD>Returns the column index for a given key.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jfree/data/KeyedValues2D.html#getColumnIndex(java.lang.Comparable)">getColumnIndex</A></CODE> in interface <CODE><A HREF="../../../org/jfree/data/KeyedValues2D.html" title="interface in org.jfree.data">KeyedValues2D</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the column key.<DT><B>Returns:</B><DD>the column index.</DL></DD></DL><HR><A NAME="getColumnKeys()"><!-- --></A><H3>getColumnKeys</H3><PRE>public java.util.List <B>getColumnKeys</B>()</PRE><DL><DD>Returns the column keys.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jfree/data/KeyedValues2D.html#getColumnKeys()">getColumnKeys</A></CODE> in interface <CODE><A HREF="../../../org/jfree/data/KeyedValues2D.html" title="interface in org.jfree.data">KeyedValues2D</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the keys.</DL></DD></DL><HR><A NAME="getValue(java.lang.Comparable, java.lang.Comparable)"><!-- --></A><H3>getValue</H3><PRE>public java.lang.Number <B>getValue</B>(java.lang.Comparable rowKey, java.lang.Comparable columnKey)</PRE><DL><DD>Returns the value for a pair of keys. <P> This method should return <code>null</code> if either of the keys is not found.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jfree/data/KeyedValues2D.html#getValue(java.lang.Comparable, java.lang.Comparable)">getValue</A></CODE> in interface <CODE><A HREF="../../../org/jfree/data/KeyedValues2D.html" title="interface in org.jfree.data">KeyedValues2D</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>rowKey</CODE> - the row key.<DD><CODE>columnKey</CODE> - the column key.<DT><B>Returns:</B><DD>the value.</DL></DD>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -