本文整理汇总了Java中org.jfree.data.general.DatasetUtilities.findMaximumRangeValue方法的典型用法代码示例。如果您正苦于以下问题:Java DatasetUtilities.findMaximumRangeValue方法的具体用法?Java DatasetUtilities.findMaximumRangeValue怎么用?Java DatasetUtilities.findMaximumRangeValue使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jfree.data.general.DatasetUtilities
的用法示例。
在下文中一共展示了DatasetUtilities.findMaximumRangeValue方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testFindMaximumRangeValue
import org.jfree.data.general.DatasetUtilities; //导入方法依赖的package包/类
/**
* Some tests for the findMaximumRangeValue() method.
*/
public void testFindMaximumRangeValue() {
CategoryDataset d1 = createCategoryDataset1();
Number max1 = DatasetUtilities.findMaximumRangeValue(d1);
assertEquals(new Double(6.0), max1);
XYDataset dataset = createXYDataset1();
Number maximum = DatasetUtilities.findMaximumRangeValue(dataset);
assertEquals(new Double(105.0), maximum);
}
示例2: testMinMaxRange
import org.jfree.data.general.DatasetUtilities; //导入方法依赖的package包/类
/**
* A quick test of the min and max range value methods.
*/
public void testMinMaxRange() {
final DefaultCategoryDataset dataset = new DefaultCategoryDataset();
dataset.addValue(100.0, "Series 1", "Type 1");
dataset.addValue(101.1, "Series 1", "Type 2");
Number min = DatasetUtilities.findMinimumRangeValue(dataset);
assertTrue(min.doubleValue() < 100.1);
Number max = DatasetUtilities.findMaximumRangeValue(dataset);
assertTrue(max.doubleValue() > 101.0);
}
示例3: test803660
import org.jfree.data.general.DatasetUtilities; //导入方法依赖的package包/类
/**
* A test to reproduce bug report 803660.
*/
public void test803660() {
DefaultCategoryDataset dataset = new DefaultCategoryDataset();
dataset.addValue(100.0, "Series 1", "Type 1");
dataset.addValue(101.1, "Series 1", "Type 2");
Number n = DatasetUtilities.findMaximumRangeValue(dataset);
assertTrue(n.doubleValue() > 101.0);
}
示例4: testMinMaxRange
import org.jfree.data.general.DatasetUtilities; //导入方法依赖的package包/类
/**
* A quick test of the min and max range value methods.
*/
public void testMinMaxRange() {
DefaultCategoryDataset dataset = new DefaultCategoryDataset();
dataset.addValue(100.0, "Series 1", "Type 1");
dataset.addValue(101.1, "Series 1", "Type 2");
Number min = DatasetUtilities.findMinimumRangeValue(dataset);
assertTrue(min.doubleValue() < 100.1);
Number max = DatasetUtilities.findMaximumRangeValue(dataset);
assertTrue(max.doubleValue() > 101.0);
}