datasetutilities.html
来自「JFreeChart的帮助文档」· HTML 代码 · 共 963 行 · 第 1/3 页
HTML
963 行
</DL><HR><A NAME="getPieDatasetTotal(org.jfree.data.PieDataset)"><!-- --></A><H3>getPieDatasetTotal</H3><PRE>public static double <B>getPieDatasetTotal</B>(<A HREF="../../../org/jfree/data/PieDataset.html">PieDataset</A> data)</PRE><DL><DD>Calculates the total of all the values in a <A HREF="../../../org/jfree/data/PieDataset.html"><CODE>PieDataset</CODE></A>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the dataset.<DT><B>Returns:</B><DD>the total.</DL></DD></DL><HR><A NAME="getStackedRangeExtent(org.jfree.data.CategoryDataset)"><!-- --></A><H3>getStackedRangeExtent</H3><PRE>public static <A HREF="../../../org/jfree/data/Range.html">Range</A> <B>getStackedRangeExtent</B>(<A HREF="../../../org/jfree/data/CategoryDataset.html">CategoryDataset</A> data)</PRE><DL><DD>Returns the minimum and maximum values for the dataset's range (as in domain/range), assuming that the series in one category are stacked.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the dataset.<DT><B>Returns:</B><DD>the value range.</DL></DD></DL><HR><A NAME="getMinimumStackedRangeValue(org.jfree.data.CategoryDataset)"><!-- --></A><H3>getMinimumStackedRangeValue</H3><PRE>public static java.lang.Number <B>getMinimumStackedRangeValue</B>(<A HREF="../../../org/jfree/data/CategoryDataset.html">CategoryDataset</A> data)</PRE><DL><DD>Returns the minimum value in the dataset range, assuming that values in each category are "stacked".<P><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the dataset.<DT><B>Returns:</B><DD>the minimum value.</DL></DD></DL><HR><A NAME="getMaximumStackedRangeValue(org.jfree.data.CategoryDataset)"><!-- --></A><H3>getMaximumStackedRangeValue</H3><PRE>public static java.lang.Number <B>getMaximumStackedRangeValue</B>(<A HREF="../../../org/jfree/data/CategoryDataset.html">CategoryDataset</A> data)</PRE><DL><DD>Returns the maximum value in the dataset range, assuming that values in each category are "stacked".<P><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the dataset.<DT><B>Returns:</B><DD>the maximum value.</DL></DD></DL><HR><A NAME="sampleFunction2D(org.jfree.data.Function2D, double, double, int, java.lang.String)"><!-- --></A><H3>sampleFunction2D</H3><PRE>public static <A HREF="../../../org/jfree/data/XYDataset.html">XYDataset</A> <B>sampleFunction2D</B>(<A HREF="../../../org/jfree/data/Function2D.html">Function2D</A> f, double start, double end, int samples, java.lang.String seriesName)</PRE><DL><DD>Creates an <A HREF="../../../org/jfree/data/XYDataset.html"><CODE>XYDataset</CODE></A> by sampling the specified function over a fixed range.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>f</CODE> - the function.<DD><CODE>start</CODE> - the start value for the range.<DD><CODE>end</CODE> - the end value for the range.<DD><CODE>samples</CODE> - the number of samples (must be > 1).<DD><CODE>seriesName</CODE> - the name to give the resulting series.<DT><B>Returns:</B><DD>the dataset.</DL></DD></DL><HR><A NAME="createCategoryDataset(java.lang.String, java.lang.String, double[][])"><!-- --></A><H3>createCategoryDataset</H3><PRE>public static <A HREF="../../../org/jfree/data/CategoryDataset.html">CategoryDataset</A> <B>createCategoryDataset</B>(java.lang.String rowKeyPrefix, java.lang.String columnKeyPrefix, double[][] data)</PRE><DL><DD>Creates a <A HREF="../../../org/jfree/data/CategoryDataset.html"><CODE>CategoryDataset</CODE></A> that contains a copy of the data in an array (instances of <code>Double</code> are created to represent the data items). <p> Row and column keys are created by appending 0, 1, 2, ... to the supplied prefixes.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>rowKeyPrefix</CODE> - the row key prefix.<DD><CODE>columnKeyPrefix</CODE> - the column key prefix.<DD><CODE>data</CODE> - the data.<DT><B>Returns:</B><DD>the dataset.</DL></DD></DL><HR><A NAME="createCategoryDataset(java.lang.String, java.lang.String, java.lang.Number[][])"><!-- --></A><H3>createCategoryDataset</H3><PRE>public static <A HREF="../../../org/jfree/data/CategoryDataset.html">CategoryDataset</A> <B>createCategoryDataset</B>(java.lang.String rowKeyPrefix, java.lang.String columnKeyPrefix, java.lang.Number[][] data)</PRE><DL><DD>Creates a <A HREF="../../../org/jfree/data/CategoryDataset.html"><CODE>CategoryDataset</CODE></A> that contains a copy of the data in an array. <p> Row and column keys are created by appending 0, 1, 2, ... to the supplied prefixes.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>rowKeyPrefix</CODE> - the row key prefix.<DD><CODE>columnKeyPrefix</CODE> - the column key prefix.<DD><CODE>data</CODE> - the data.<DT><B>Returns:</B><DD>the dataset.</DL></DD></DL><HR><A NAME="createCategoryDataset(java.lang.String[], java.lang.String[], double[][])"><!-- --></A><H3>createCategoryDataset</H3><PRE>public static <A HREF="../../../org/jfree/data/CategoryDataset.html">CategoryDataset</A> <B>createCategoryDataset</B>(java.lang.String[] rowKeys, java.lang.String[] columnKeys, double[][] data)</PRE><DL><DD>Creates a <A HREF="../../../org/jfree/data/CategoryDataset.html"><CODE>CategoryDataset</CODE></A> that contains a copy of the data in an array (instances of <code>Double</code> are created to represent the data items). <p> Row and column keys are taken from the supplied arrays.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>rowKeys</CODE> - the row keys.<DD><CODE>columnKeys</CODE> - the column keys.<DD><CODE>data</CODE> - the data.<DT><B>Returns:</B><DD>The dataset.</DL></DD></DL><HR><A NAME="createCategoryDataset(java.lang.String, org.jfree.data.KeyedValues)"><!-- --></A><H3>createCategoryDataset</H3><PRE>public static <A HREF="../../../org/jfree/data/CategoryDataset.html">CategoryDataset</A> <B>createCategoryDataset</B>(java.lang.String rowKey, <A HREF="../../../org/jfree/data/KeyedValues.html">KeyedValues</A> rowData)</PRE><DL><DD>Creates a <A HREF="../../../org/jfree/data/CategoryDataset.html"><CODE>CategoryDataset</CODE></A> by copying the data from the supplied <A HREF="../../../org/jfree/data/KeyedValues.html"><CODE>KeyedValues</CODE></A> instance.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>rowKey</CODE> - the row key.<DD><CODE>rowData</CODE> - the row data.<DT><B>Returns:</B><DD>A dataset.</DL></DD></DL><HR><A NAME="isEmptyOrNull(org.jfree.data.XYDataset)"><!-- --></A><H3>isEmptyOrNull</H3><PRE>public static boolean <B>isEmptyOrNull</B>(<A HREF="../../../org/jfree/data/XYDataset.html">XYDataset</A> data)</PRE><DL><DD>Returns <code>true</code> if the dataset is empty (or <code>null</code>), and <code>false</code> otherwise.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the dataset (<code>null</code> permitted).<DT><B>Returns:</B><DD>A boolean.</DL></DD></DL><HR><A NAME="isEmptyOrNull(org.jfree.data.PieDataset)"><!-- --></A><H3>isEmptyOrNull</H3><PRE>public static boolean <B>isEmptyOrNull</B>(<A HREF="../../../org/jfree/data/PieDataset.html">PieDataset</A> dataset)</PRE><DL><DD>Returns <code>true</code> if the dataset is empty (or <code>null</code>), and <code>false</code> otherwise.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>dataset</CODE> - the dataset (<code>null</code> permitted).<DT><B>Returns:</B><DD>A boolean.</DL></DD></DL><HR><A NAME="isEmptyOrNull(org.jfree.data.CategoryDataset)"><!-- --></A><H3>isEmptyOrNull</H3><PRE>public static boolean <B>isEmptyOrNull</B>(<A HREF="../../../org/jfree/data/CategoryDataset.html">CategoryDataset</A> data)</PRE><DL><DD>Returns <code>true</code> if the dataset is empty (or <code>null</code>), and <code>false</code> otherwise.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the dataset (<code>null</code> permitted).<DT><B>Returns:</B><DD>A boolean.</DL></DD></DL><HR><A NAME="limitPieDataset(org.jfree.data.PieDataset, double)"><!-- --></A><H3>limitPieDataset</H3><PRE>public static <A HREF="../../../org/jfree/data/PieDataset.html">PieDataset</A> <B>limitPieDataset</B>(<A HREF="../../../org/jfree/data/PieDataset.html">PieDataset</A> data, double percentThreshold)</PRE><DL><DD>Creates an "Other" slice for percentages below the percent threshold.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the PieDataset.<DD><CODE>percentThreshold</CODE> - the percent threshold.<DT><B>Returns:</B><DD>A PieDataset.</DL></DD></DL><HR><A NAME="limitPieDataset(org.jfree.data.PieDataset, double, int)"><!-- --></A><H3>limitPieDataset</H3><PRE>public static <A HREF="../../../org/jfree/data/PieDataset.html">PieDataset</A> <B>limitPieDataset</B>(<A HREF="../../../org/jfree/data/PieDataset.html">PieDataset</A> data, double percentThreshold, int sliceThreshold)</PRE><DL><DD>Create an "Other" slice for percentages below the percent threshold providing there are more slices below the percent threshold than specified in the slice threshold.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the PieDataset.<DD><CODE>percentThreshold</CODE> - the percent threshold.<DD><CODE>sliceThreshold</CODE> - the slice threshold.<DT><B>Returns:</B><DD>A PieDataset.</DL></DD></DL><HR><A NAME="limitPieDataset(org.jfree.data.PieDataset, double, int, java.lang.String)"><!-- --></A><H3>limitPieDataset</H3><PRE>public static <A HREF="../../../org/jfree/data/PieDataset.html">PieDataset</A> <B>limitPieDataset</B>(<A HREF="../../../org/jfree/data/PieDataset.html">PieDataset</A> data, double percentThreshold, int sliceThreshold, java.lang.String label)</PRE><DL><DD>Create an Other slice with a given label for percentages below the percent threshold providing there are more slices below the percent threshold than specified in the slice threshold.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the PieDataset.<DD><CODE>percentThreshold</CODE> - the percent threshold.<DD><CODE>sliceThreshold</CODE> - the slice threshold.<DD><CODE>label</CODE> - the label to give the "Other" slice.<DT><B>Returns:</B><DD>A PieDataset.</DL></DD></DL><HR><A NAME="getStackedRangeExtent(org.jfree.data.TableXYDataset)"><!-- --></A><H3>getStackedRangeExtent</H3><PRE>public static <A HREF="../../../org/jfree/data/Range.html">Range</A> <B>getStackedRangeExtent</B>(<A HREF="../../../org/jfree/data/TableXYDataset.html">TableXYDataset</A> data)</PRE><DL><DD>Returns the minimum and maximum values for the dataset's range, assuming that the series are stacked.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the dataset.<DT><B>Returns:</B><DD>the value range.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <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="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-all.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/DatasetGroup.html"><B>PREV CLASS</B></A> <A HREF="../../../org/jfree/data/DataUtilities.html"><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> <A HREF="DatasetUtilities.html" TARGET="_top"><B>NO FRAMES</B></A> <SCRIPT> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT><A HREF="../../../allclasses-noframe.html" TARGET=""><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><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?