📄 datasetutilities.html
字号:
Returns the minimum and maximum values for the dataset's range, assuming that the series are stacked, using the specified base value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/data/general/DatasetUtilities.html#isEmptyOrNull(org.jfree.data.category.CategoryDataset)">isEmptyOrNull</A></B>(<A HREF="../../../../org/jfree/data/category/CategoryDataset.html" title="interface in org.jfree.data.category">CategoryDataset</A> dataset)</CODE><BR> Returns <code>true</code> if the dataset is empty (or <code>null</code>), and <code>false</code> otherwise.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/data/general/DatasetUtilities.html#isEmptyOrNull(org.jfree.data.general.PieDataset)">isEmptyOrNull</A></B>(<A HREF="../../../../org/jfree/data/general/PieDataset.html" title="interface in org.jfree.data.general">PieDataset</A> dataset)</CODE><BR> Returns <code>true</code> if the dataset is empty (or <code>null</code>), and <code>false</code> otherwise.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/data/general/DatasetUtilities.html#isEmptyOrNull(org.jfree.data.xy.XYDataset)">isEmptyOrNull</A></B>(<A HREF="../../../../org/jfree/data/xy/XYDataset.html" title="interface in org.jfree.data.xy">XYDataset</A> dataset)</CODE><BR> Returns <code>true</code> if the dataset is empty (or <code>null</code>), and <code>false</code> otherwise.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <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/general/DatasetUtilities.html#iterateCategoryRangeBounds(org.jfree.data.category.CategoryDataset, boolean)">iterateCategoryRangeBounds</A></B>(<A HREF="../../../../org/jfree/data/category/CategoryDataset.html" title="interface in org.jfree.data.category">CategoryDataset</A> dataset, boolean includeInterval)</CODE><BR> Iterates over the data item of the category dataset to find the range bounds.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <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/general/DatasetUtilities.html#iterateDomainBounds(org.jfree.data.xy.XYDataset)">iterateDomainBounds</A></B>(<A HREF="../../../../org/jfree/data/xy/XYDataset.html" title="interface in org.jfree.data.xy">XYDataset</A> dataset)</CODE><BR> Iterates over the items in an <A HREF="../../../../org/jfree/data/xy/XYDataset.html" title="interface in org.jfree.data.xy"><CODE>XYDataset</CODE></A> to find the range of x-values.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <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/general/DatasetUtilities.html#iterateDomainBounds(org.jfree.data.xy.XYDataset, boolean)">iterateDomainBounds</A></B>(<A HREF="../../../../org/jfree/data/xy/XYDataset.html" title="interface in org.jfree.data.xy">XYDataset</A> dataset, boolean includeInterval)</CODE><BR> Iterates over the items in an <A HREF="../../../../org/jfree/data/xy/XYDataset.html" title="interface in org.jfree.data.xy"><CODE>XYDataset</CODE></A> to find the range of x-values.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <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/general/DatasetUtilities.html#iterateXYRangeBounds(org.jfree.data.xy.XYDataset)">iterateXYRangeBounds</A></B>(<A HREF="../../../../org/jfree/data/xy/XYDataset.html" title="interface in org.jfree.data.xy">XYDataset</A> dataset)</CODE><BR> Iterates over the data item of the xy dataset to find the range bounds.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../../org/jfree/data/xy/XYDataset.html" title="interface in org.jfree.data.xy">XYDataset</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/jfree/data/general/DatasetUtilities.html#sampleFunction2D(org.jfree.data.function.Function2D, double, double, int, java.lang.Comparable)">sampleFunction2D</A></B>(<A HREF="../../../../org/jfree/data/function/Function2D.html" title="interface in org.jfree.data.function">Function2D</A> f, double start, double end, int samples, java.lang.Comparable seriesKey)</CODE><BR> Creates an <A HREF="../../../../org/jfree/data/xy/XYDataset.html" title="interface in org.jfree.data.xy"><CODE>XYDataset</CODE></A> by sampling the specified function over a fixed range.</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"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="calculatePieDatasetTotal(org.jfree.data.general.PieDataset)"><!-- --></A><H3>calculatePieDatasetTotal</H3><PRE>public static double <A HREF="../../../../src-html/org/jfree/data/general/DatasetUtilities.html#line.150"><B>calculatePieDatasetTotal</B></A>(<A HREF="../../../../org/jfree/data/general/PieDataset.html" title="interface in org.jfree.data.general">PieDataset</A> dataset)</PRE><DL><DD>Calculates the total of all the values in a <A HREF="../../../../org/jfree/data/general/PieDataset.html" title="interface in org.jfree.data.general"><CODE>PieDataset</CODE></A>. If the dataset contains negative or <code>null</code> values, they are ignored.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>dataset</CODE> - the dataset (<code>null</code> not permitted).<DT><B>Returns:</B><DD>The total.</DL></DD></DL><HR><A NAME="createPieDatasetForRow(org.jfree.data.category.CategoryDataset, java.lang.Comparable)"><!-- --></A><H3>createPieDatasetForRow</H3><PRE>public static <A HREF="../../../../org/jfree/data/general/PieDataset.html" title="interface in org.jfree.data.general">PieDataset</A> <A HREF="../../../../src-html/org/jfree/data/general/DatasetUtilities.html#line.182"><B>createPieDatasetForRow</B></A>(<A HREF="../../../../org/jfree/data/category/CategoryDataset.html" title="interface in org.jfree.data.category">CategoryDataset</A> dataset, java.lang.Comparable rowKey)</PRE><DL><DD>Creates a pie dataset from a table dataset by taking all the values for a single row.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>dataset</CODE> - the dataset (<code>null</code> not permitted).<DD><CODE>rowKey</CODE> - the row key.<DT><B>Returns:</B><DD>A pie dataset.</DL></DD></DL><HR><A NAME="createPieDatasetForRow(org.jfree.data.category.CategoryDataset, int)"><!-- --></A><H3>createPieDatasetForRow</H3><PRE>public static <A HREF="../../../../org/jfree/data/general/PieDataset.html" title="interface in org.jfree.data.general">PieDataset</A> <A HREF="../../../../src-html/org/jfree/data/general/DatasetUtilities.html#line.197"><B>createPieDatasetForRow</B></A>(<A HREF="../../../../org/jfree/data/category/CategoryDataset.html" title="interface in org.jfree.data.category">CategoryDataset</A> dataset, int row)</PRE><DL><DD>Creates a pie dataset from a table dataset by taking all the values for a single row.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>dataset</CODE> - the dataset (<code>null</code> not permitted).<DD><CODE>row</CODE> - the row (zero-based index).<DT><B>Returns:</B><DD>A pie dataset.</DL></DD></DL><HR><A NAME="createPieDatasetForColumn(org.jfree.data.category.CategoryDataset, java.lang.Comparable)"><!-- --></A><H3>createPieDatasetForColumn</H3><PRE>public static <A HREF="../../../../org/jfree/data/general/PieDataset.html" title="interface in org.jfree.data.general">PieDataset</A> <A HREF="../../../../src-html/org/jfree/data/general/DatasetUtilities.html#line.217"><B>createPieDatasetForColumn</B></A>(<A HREF="../../../../org/jfree/data/category/CategoryDataset.html" title="interface in org.jfree.data.category">CategoryDataset</A> dataset, java.lang.Comparable columnKey)</PRE><DL><DD>Creates a pie dataset from a table dataset by taking all the values for a single column.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>dataset</CODE> - the dataset (<code>null</code> not permitted).<DD><CODE>columnKey</CODE> - the column key.<DT><B>Returns:</B><DD>A pie dataset.</DL></DD></DL><HR><A NAME="createPieDatasetForColumn(org.jfree.data.category.CategoryDataset, int)"><!-- --></A><H3>createPieDatasetForColumn</H3><PRE>public static <A HREF="../../../../org/jfree/data/general/PieDataset.html" title="interface in org.jfree.data.general">PieDataset</A> <A HREF="../../../../src-html/org/jfree/data/general/DatasetUtilities.html#line.232"><B>createPieDatasetForColumn</B></A>(<A HREF="../../../../org/jfree/data/category/CategoryDataset.html" title="interface in org.jfree.data.category">CategoryDataset</A> dataset, int column)</PRE><DL><DD>Creates a pie dataset from a <A HREF="../../../../org/jfree/data/category/CategoryDataset.html" title="interface in org.jfree.data.category"><CODE>CategoryDataset</CODE></A> by taking all the values for a single column.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>dataset</CODE> - the dataset (<code>null</code> not permitted).<DD><CODE>column</CODE> - the column (zero-based index).<DT><B>Returns:</B><DD>A pie dataset.</DL></DD></DL><HR><A NAME="createConsolidatedPieDataset(org.jfree.data.general.PieDataset, java.lang.Comparable, double)"><!-- --></A><H3>createConsolidatedPieDataset</H3><PRE>public static <A HREF="../../../../org/jfree/data/general/PieDataset.html" title="interface in org.jfree.data.general">PieDataset</A> <A HREF="../../../../src-html/org/jfree/data/general/DatasetUtilities.html#line.256"><B>createConsolidatedPieDataset</B></A>(<A HREF="../../../../org/jfree/data/general/PieDataset.html" title="interface in org.jfree.data.general">PieDataset</A> source, java.lang.Comparable key, double minimumPercent)</PRE><DL><DD>Creates a new pie dataset based on the supplied dataset, but modified by aggregating all the low value items (those whose value is lower than the <code>percentThreshold</code>) into a single item with the key "Other".<P><DD><DL><DT><B>Parameters:</B><DD><CODE>source</CODE> - the source dataset (<code>null</code> not permitted).<DD><CODE>key</CODE> - a new key for the aggregated items (<code>null</code> not permitted).<DD><CODE>minimumPercent</CODE> - the percent threshold.<DT><B>Returns:</B><DD>The pie dataset with (possibly) aggregated items.</DL></DD></DL><HR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -