datasetutilities.html
来自「JFreeChart 9.20的文档 需要用JAVA在网页上做统计图的东东」· HTML 代码 · 共 1,062 行 · 第 1/4 页
HTML
1,062 行
<HR><A NAME="iterateCategoryRangeExtent(org.jfree.data.CategoryDataset)"><!-- --></A><H3>iterateCategoryRangeExtent</H3><PRE>public static <A HREF="../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</A> <B>iterateCategoryRangeExtent</B>(<A HREF="../../../org/jfree/data/CategoryDataset.html" title="interface in org.jfree.data">CategoryDataset</A> data)</PRE><DL><DD>Iterates over the data item of the category dataset to find the range extent.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the category dataset to iterate over.<DT><B>Returns:</B><DD>the range extent of the data within the dataset.</DL></DD></DL><HR><A NAME="iterateXYRangeExtent(org.jfree.data.XYDataset)"><!-- --></A><H3>iterateXYRangeExtent</H3><PRE>public static <A HREF="../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</A> <B>iterateXYRangeExtent</B>(<A HREF="../../../org/jfree/data/XYDataset.html" title="interface in org.jfree.data">XYDataset</A> data)</PRE><DL><DD>Iterates over the data item of the xy dataset to find the range extent.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the xy dataset to iterate over.<DT><B>Returns:</B><DD>the range extent of the data within the dataset.</DL></DD></DL><HR><A NAME="getMinimumDomainValue(org.jfree.data.Dataset)"><!-- --></A><H3>getMinimumDomainValue</H3><PRE>public static java.lang.Number <B>getMinimumDomainValue</B>(<A HREF="../../../org/jfree/data/Dataset.html" title="interface in org.jfree.data">Dataset</A> data)</PRE><DL><DD>Returns the minimum domain value for the specified dataset. <P> This is easy if the dataset implements the DomainInfo interface (a good idea if there is an efficient way to determine the minimum value). Otherwise, it involves iterating over the entire data-set. <p> Returns null if all the data values in the dataset are null.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the dataset.<DT><B>Returns:</B><DD>the minimum domain value in the dataset (or null).</DL></DD></DL><HR><A NAME="getMaximumDomainValue(org.jfree.data.Dataset)"><!-- --></A><H3>getMaximumDomainValue</H3><PRE>public static java.lang.Number <B>getMaximumDomainValue</B>(<A HREF="../../../org/jfree/data/Dataset.html" title="interface in org.jfree.data">Dataset</A> data)</PRE><DL><DD>Returns the maximum domain value for the specified dataset. <P> This is easy if the dataset implements the DomainInfo interface (a good idea if there is an efficient way to determine the maximum value). Otherwise, it involves iterating over the entire data-set. <p> Returns null if all the data values in the dataset are null.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the dataset.<DT><B>Returns:</B><DD>the maximum domain value in the dataset (or null).</DL></DD></DL><HR><A NAME="getMinimumRangeValue(org.jfree.data.Dataset)"><!-- --></A><H3>getMinimumRangeValue</H3><PRE>public static java.lang.Number <B>getMinimumRangeValue</B>(<A HREF="../../../org/jfree/data/Dataset.html" title="interface in org.jfree.data">Dataset</A> data)</PRE><DL><DD>Returns the minimum range value for the specified dataset. <P> This is easy if the dataset implements the RangeInfo interface (a good idea if there is an efficient way to determine the minimum value). Otherwise, it involves iterating over the entire data-set. <p> Returns null if all the data values in the dataset are null.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the dataset.<DT><B>Returns:</B><DD>the minimum range value in the dataset (or null).</DL></DD></DL><HR><A NAME="getMaximumRangeValue(org.jfree.data.Dataset)"><!-- --></A><H3>getMaximumRangeValue</H3><PRE>public static java.lang.Number <B>getMaximumRangeValue</B>(<A HREF="../../../org/jfree/data/Dataset.html" title="interface in org.jfree.data">Dataset</A> data)</PRE><DL><DD>Returns the maximum range value for the specified dataset. <P> This is easy if the dataset implements the RangeInfo interface (a good idea if there is an efficient way to determine the maximum value). Otherwise, it involves iterating over the entire data-set. <p> Returns null if all the data values are null.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the dataset.<DT><B>Returns:</B><DD>the maximum range value in the dataset (or null).</DL></DD></DL><HR><A NAME="createPieDatasetForRow(org.jfree.data.CategoryDataset, java.lang.Comparable)"><!-- --></A><H3>createPieDatasetForRow</H3><PRE>public static <A HREF="../../../org/jfree/data/PieDataset.html" title="interface in org.jfree.data">PieDataset</A> <B>createPieDatasetForRow</B>(<A HREF="../../../org/jfree/data/CategoryDataset.html" title="interface in org.jfree.data">CategoryDataset</A> data, 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>data</CODE> - the data.<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.CategoryDataset, int)"><!-- --></A><H3>createPieDatasetForRow</H3><PRE>public static <A HREF="../../../org/jfree/data/PieDataset.html" title="interface in org.jfree.data">PieDataset</A> <B>createPieDatasetForRow</B>(<A HREF="../../../org/jfree/data/CategoryDataset.html" title="interface in org.jfree.data">CategoryDataset</A> data, 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>data</CODE> - the data.<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.CategoryDataset, java.lang.Comparable)"><!-- --></A><H3>createPieDatasetForColumn</H3><PRE>public static <A HREF="../../../org/jfree/data/PieDataset.html" title="interface in org.jfree.data">PieDataset</A> <B>createPieDatasetForColumn</B>(<A HREF="../../../org/jfree/data/CategoryDataset.html" title="interface in org.jfree.data">CategoryDataset</A> data, 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>data</CODE> - the data.<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.CategoryDataset, int)"><!-- --></A><H3>createPieDatasetForColumn</H3><PRE>public static <A HREF="../../../org/jfree/data/PieDataset.html" title="interface in org.jfree.data">PieDataset</A> <B>createPieDatasetForColumn</B>(<A HREF="../../../org/jfree/data/CategoryDataset.html" title="interface in org.jfree.data">CategoryDataset</A> data, int column)</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>data</CODE> - the data.<DD><CODE>column</CODE> - the column (zero-based index).<DT><B>Returns:</B><DD>a pie dataset.</DL></DD></DL><HR><A NAME="calculatePieDatasetTotal(org.jfree.data.PieDataset)"><!-- --></A><H3>calculatePieDatasetTotal</H3><PRE>public static double <B>calculatePieDatasetTotal</B>(<A HREF="../../../org/jfree/data/PieDataset.html" title="interface in org.jfree.data">PieDataset</A> dataset)</PRE><DL><DD>Calculates the total of all the values in a <A HREF="../../../org/jfree/data/PieDataset.html" title="interface in org.jfree.data"><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="getStackedRangeExtent(org.jfree.data.CategoryDataset)"><!-- --></A><H3>getStackedRangeExtent</H3><PRE>public static <A HREF="../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</A> <B>getStackedRangeExtent</B>(<A HREF="../../../org/jfree/data/CategoryDataset.html" title="interface in org.jfree.data">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="getStackedRangeExtent(org.jfree.data.CategoryDataset, org.jfree.data.KeyToGroupMap)"><!-- --></A><H3>getStackedRangeExtent</H3><PRE>public static <A HREF="../../../org/jfree/data/Range.html" title="class in org.jfree.data">Range</A> <B>getStackedRangeExtent</B>(<A HREF="../../../org/jfree/data/CategoryDataset.html" title="interface in org.jfree.data">CategoryDataset</A> dataset, <A HREF="../../../org/jfree/data/KeyToGroupMap.html" title="class in org.jfree.data">KeyToGroupMap</A> map)</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>dataset</CODE> - the dataset.<DD><CODE>map</CODE> - a structure that maps series to groups.<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" title="interface in org.jfree.data">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" title="interface in org.jfree.data">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 (<code>null</code> permitted).<DT><B>Returns:</B><DD>The maximum value (possibly <code>null</code>).</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" title="interface in org.jfree.data">XYDataset</A> <B>sampleFunction2D</B>(<A HREF="../../../org/jfree/data/Function2D.html" title="interface in org.jfree.data">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" title="interface in org.jfree.data"><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>seriesName</CODE> - the name to give the resulting series (<code>null</code> not permitted).<DT><B>Returns:</B><DD>A dataset.</DL>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?