From: <mu...@us...> - 2008-03-28 11:22:06
|
Revision: 785 http://jfreechart.svn.sourceforge.net/jfreechart/?rev=785&view=rev Author: mungady Date: 2008-03-28 04:22:04 -0700 (Fri, 28 Mar 2008) Log Message: ----------- 2008-03-28 David Gilbert <dav...@ob...> * source/org/jfree/data/general/DatasetUtilities.java (iterateCategoryRangeBounds): Deprecated, (iterateRangeBounds(CategoryDataset)): New method, (iterateRangeBounds(CategoryDataset, boolean)): Likewise. Modified Paths: -------------- branches/jfreechart-1.0.x-branch/ChangeLog branches/jfreechart-1.0.x-branch/source/org/jfree/data/general/DatasetUtilities.java Modified: branches/jfreechart-1.0.x-branch/ChangeLog =================================================================== --- branches/jfreechart-1.0.x-branch/ChangeLog 2008-03-28 11:08:46 UTC (rev 784) +++ branches/jfreechart-1.0.x-branch/ChangeLog 2008-03-28 11:22:04 UTC (rev 785) @@ -1,6 +1,13 @@ 2008-03-28 David Gilbert <dav...@ob...> * source/org/jfree/data/general/DatasetUtilities.java + (iterateCategoryRangeBounds): Deprecated, + (iterateRangeBounds(CategoryDataset)): New method, + (iterateRangeBounds(CategoryDataset, boolean)): Likewise. + +2008-03-28 David Gilbert <dav...@ob...> + + * source/org/jfree/data/general/DatasetUtilities.java (findRangeBounds(XYDataset, boolean)): Use boolean argument for call to iterateRangeBounds(), (iterateXYRangeBounds): Deprecated, Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/data/general/DatasetUtilities.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/data/general/DatasetUtilities.java 2008-03-28 11:08:46 UTC (rev 784) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/data/general/DatasetUtilities.java 2008-03-28 11:22:04 UTC (rev 785) @@ -738,7 +738,7 @@ result = info.getRangeBounds(includeInterval); } else { - result = iterateCategoryRangeBounds(dataset, includeInterval); + result = iterateRangeBounds(dataset, includeInterval); } return result; } @@ -790,9 +790,43 @@ * y-interval is taken into account. * * @return The range (possibly <code>null</code>). + * + * @deprecated As of 1.0.10, use + * {@link #iterateRangeBounds(CategoryDataset, boolean)}. */ public static Range iterateCategoryRangeBounds(CategoryDataset dataset, boolean includeInterval) { + return iterateRangeBounds(dataset, includeInterval); + } + + /** + * Iterates over the data item of the category dataset to find + * the range bounds. + * + * @param dataset the dataset (<code>null</code> not permitted). + * + * @return The range (possibly <code>null</code>). + * + * @since 1.0.10 + */ + public static Range iterateRangeBounds(CategoryDataset dataset) { + return iterateRangeBounds(dataset, true); + } + + /** + * Iterates over the data item of the category dataset to find + * the range bounds. + * + * @param dataset the dataset (<code>null</code> not permitted). + * @param includeInterval a flag that determines whether or not the + * y-interval is taken into account. + * + * @return The range (possibly <code>null</code>). + * + * @since 1.0.10 + */ + public static Range iterateRangeBounds(CategoryDataset dataset, + boolean includeInterval) { double minimum = Double.POSITIVE_INFINITY; double maximum = Double.NEGATIVE_INFINITY; boolean interval = includeInterval This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |