⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 datasetutilities.html

📁 jfreechart1。0。2的api。
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<A NAME="createConsolidatedPieDataset(org.jfree.data.general.PieDataset, java.lang.Comparable, double, int)"><!-- --></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.280"><B>createConsolidatedPieDataset</B></A>(<A HREF="../../../../org/jfree/data/general/PieDataset.html" title="interface in org.jfree.data.general">PieDataset</A>&nbsp;source,                                                      java.lang.Comparable&nbsp;key,                                                      double&nbsp;minimumPercent,                                                      int&nbsp;minItems)</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.  The  aggregated items are assigned the specified key.  Aggregation only  occurs if there are at least <code>minItems</code> items to aggregate.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>source</CODE> - the source dataset (<code>null</code> not permitted).<DD><CODE>key</CODE> - the key to represent the aggregated items.<DD><CODE>minimumPercent</CODE> - the percent threshold (ten percent is 0.10).<DD><CODE>minItems</CODE> - only aggregate low values if there are at least this                   many.<DT><B>Returns:</B><DD>The pie dataset with (possibly) aggregated items.</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/category/CategoryDataset.html" title="interface in org.jfree.data.category">CategoryDataset</A> <A HREF="../../../../src-html/org/jfree/data/general/DatasetUtilities.html#line.342"><B>createCategoryDataset</B></A>(java.lang.String&nbsp;rowKeyPrefix,                                                    java.lang.String&nbsp;columnKeyPrefix,                                                    double[][]&nbsp;data)</PRE><DL><DD>Creates a <A HREF="../../../../org/jfree/data/category/CategoryDataset.html" title="interface in org.jfree.data.category"><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/category/CategoryDataset.html" title="interface in org.jfree.data.category">CategoryDataset</A> <A HREF="../../../../src-html/org/jfree/data/general/DatasetUtilities.html#line.371"><B>createCategoryDataset</B></A>(java.lang.String&nbsp;rowKeyPrefix,                                                    java.lang.String&nbsp;columnKeyPrefix,                                                    java.lang.Number[][]&nbsp;data)</PRE><DL><DD>Creates a <A HREF="../../../../org/jfree/data/category/CategoryDataset.html" title="interface in org.jfree.data.category"><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.Comparable[], java.lang.Comparable[], double[][])"><!-- --></A><H3>createCategoryDataset</H3><PRE>public static <A HREF="../../../../org/jfree/data/category/CategoryDataset.html" title="interface in org.jfree.data.category">CategoryDataset</A> <A HREF="../../../../src-html/org/jfree/data/general/DatasetUtilities.html#line.400"><B>createCategoryDataset</B></A>(java.lang.Comparable[]&nbsp;rowKeys,                                                    java.lang.Comparable[]&nbsp;columnKeys,                                                    double[][]&nbsp;data)</PRE><DL><DD>Creates a <A HREF="../../../../org/jfree/data/category/CategoryDataset.html" title="interface in org.jfree.data.category"><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 (<code>null</code> not permitted).<DD><CODE>columnKeys</CODE> - the column keys (<code>null</code> not permitted).<DD><CODE>data</CODE> - the data.<DT><B>Returns:</B><DD>The dataset.</DL></DD></DL><HR><A NAME="createCategoryDataset(java.lang.Comparable, org.jfree.data.KeyedValues)"><!-- --></A><H3>createCategoryDataset</H3><PRE>public static <A HREF="../../../../org/jfree/data/category/CategoryDataset.html" title="interface in org.jfree.data.category">CategoryDataset</A> <A HREF="../../../../src-html/org/jfree/data/general/DatasetUtilities.html#line.458"><B>createCategoryDataset</B></A>(java.lang.Comparable&nbsp;rowKey,                                                    <A HREF="../../../../org/jfree/data/KeyedValues.html" title="interface in org.jfree.data">KeyedValues</A>&nbsp;rowData)</PRE><DL><DD>Creates a <A HREF="../../../../org/jfree/data/category/CategoryDataset.html" title="interface in org.jfree.data.category"><CODE>CategoryDataset</CODE></A> by copying the data from the supplied  <A HREF="../../../../org/jfree/data/KeyedValues.html" title="interface in org.jfree.data"><CODE>KeyedValues</CODE></A> instance.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>rowKey</CODE> - the row key (<code>null</code> not permitted).<DD><CODE>rowData</CODE> - the row data (<code>null</code> not permitted).<DT><B>Returns:</B><DD>A dataset.</DL></DD></DL><HR><A NAME="sampleFunction2D(org.jfree.data.function.Function2D, double, double, int, java.lang.Comparable)"><!-- --></A><H3>sampleFunction2D</H3><PRE>public static <A HREF="../../../../org/jfree/data/xy/XYDataset.html" title="interface in org.jfree.data.xy">XYDataset</A> <A HREF="../../../../src-html/org/jfree/data/general/DatasetUtilities.html#line.488"><B>sampleFunction2D</B></A>(<A HREF="../../../../org/jfree/data/function/Function2D.html" title="interface in org.jfree.data.function">Function2D</A>&nbsp;f,                                         double&nbsp;start,                                         double&nbsp;end,                                         int&nbsp;samples,                                         java.lang.Comparable&nbsp;seriesKey)</PRE><DL><DD>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.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>f</CODE> - the function (<code>null</code> not permitted).<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 sample points (must be > 1).<DD><CODE>seriesKey</CODE> - the key to give the resulting series                    (<code>null</code> not permitted).<DT><B>Returns:</B><DD>A dataset.</DL></DD></DL><HR><A NAME="isEmptyOrNull(org.jfree.data.general.PieDataset)"><!-- --></A><H3>isEmptyOrNull</H3><PRE>public static boolean <A HREF="../../../../src-html/org/jfree/data/general/DatasetUtilities.html#line.526"><B>isEmptyOrNull</B></A>(<A HREF="../../../../org/jfree/data/general/PieDataset.html" title="interface in org.jfree.data.general">PieDataset</A>&nbsp;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.category.CategoryDataset)"><!-- --></A><H3>isEmptyOrNull</H3><PRE>public static boolean <A HREF="../../../../src-html/org/jfree/data/general/DatasetUtilities.html#line.559"><B>isEmptyOrNull</B></A>(<A HREF="../../../../org/jfree/data/category/CategoryDataset.html" title="interface in org.jfree.data.category">CategoryDataset</A>&nbsp;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.xy.XYDataset)"><!-- --></A><H3>isEmptyOrNull</H3><PRE>public static boolean <A HREF="../../../../src-html/org/jfree/data/general/DatasetUtilities.html#line.592"><B>isEmptyOrNull</B></A>(<A HREF="../../../../org/jfree/data/xy/XYDataset.html" title="interface in org.jfree.data.xy">XYDataset</A>&nbsp;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="findDomainBounds(org.jfree.data.xy.XYDataset)"><!-- --></A><H3>findDomainBounds</H3><PRE>public static <A HREF="../../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</A> <A HREF="../../../../src-html/org/jfree/data/general/DatasetUtilities.html#line.616"><B>findDomainBounds</B></A>(<A HREF="../../../../org/jfree/data/xy/XYDataset.html" title="interface in org.jfree.data.xy">XYDataset</A>&nbsp;dataset)</PRE><DL><DD>Returns the range of values in the domain (x-values) of a dataset.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>dataset</CODE> - the dataset (<code>null</code> not permitted).<DT><B>Returns:</B><DD>The range of values (possibly <code>null</code>).</DL></DD></DL><HR><A NAME="findDomainBounds(org.jfree.data.xy.XYDataset, boolean)"><!-- --></A><H3>findDomainBounds</H3><PRE>public static <A HREF="../../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</A> <A HREF="../../../../src-html/org/jfree/data/general/DatasetUtilities.html#line.630"><B>findDomainBounds</B></A>(<A HREF="../../../../org/jfree/data/xy/XYDataset.html" title="interface in org.jfree.data.xy">XYDataset</A>&nbsp;dataset,                                     boolean&nbsp;includeInterval)</PRE><DL><DD>Returns the range of values in the domain (x-values) of a dataset.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>dataset</CODE> - the dataset (<code>null</code> not permitted).<DD><CODE>includeInterval</CODE> - determines whether or not the x-interval is taken                         into account (only applies if the dataset is an                         <A HREF="../../../../org/jfree/data/xy/IntervalXYDataset.html" title="interface in org.jfree.data.xy"><CODE>IntervalXYDataset</CODE></A>).<DT><B>Returns:</B><DD>The range of values (possibly <code>null</code>).</DL></DD></DL><HR><A NAME="iterateDomainBounds(org.jfree.data.xy.XYDataset)"><!-- --></A><H3>iterateDomainBounds</H3><PRE>public static <A HREF="../../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</A> <A HREF="../../../../src-html/org/jfree/data/general/DatasetUtilities.html#line.658"><B>iterateDomainBounds</B></A>(<A HREF="../../../../org/jfree/data/xy/XYDataset.html" title="interface in org.jfree.data.xy">XYDataset</A>&nbsp;dataset)</PRE><DL><DD>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.

⌨️ 快捷键说明

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