本文整理汇总了Java中org.jfree.data.general.DatasetUtilities.findStackedRangeExtent方法的典型用法代码示例。如果您正苦于以下问题:Java DatasetUtilities.findStackedRangeExtent方法的具体用法?Java DatasetUtilities.findStackedRangeExtent怎么用?Java DatasetUtilities.findStackedRangeExtent使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jfree.data.general.DatasetUtilities
的用法示例。
在下文中一共展示了DatasetUtilities.findStackedRangeExtent方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testFindStackedRangeExtent
import org.jfree.data.general.DatasetUtilities; //导入方法依赖的package包/类
/**
* Tests that the stacked range extent returns the expected result.
*/
public void testFindStackedRangeExtent() {
// first the category datasets...
CategoryDataset d1 = createCategoryDataset1();
Range r = DatasetUtilities.findStackedRangeExtent(d1);
assertEquals(0.0, r.getLowerBound(), EPSILON);
assertEquals(15.0, r.getUpperBound(), EPSILON);
d1 = createCategoryDataset2();
r = DatasetUtilities.findStackedRangeExtent(d1);
assertEquals(-2.0, r.getLowerBound(), EPSILON);
assertEquals(2.0, r.getUpperBound(), EPSILON);
// then the XYDatasets...
TableXYDataset d2 = createTableXYDataset1();
r = DatasetUtilities.findStackedRangeExtent(d2);
assertEquals(-2.0, r.getLowerBound(), EPSILON);
assertEquals(2.0, r.getUpperBound(), EPSILON);
}
示例2: testStackedRangeWithMap
import org.jfree.data.general.DatasetUtilities; //导入方法依赖的package包/类
/**
* Tests the stacked range extent calculation.
*/
public void testStackedRangeWithMap() {
CategoryDataset d = createCategoryDataset1();
KeyToGroupMap map = new KeyToGroupMap("G0");
map.mapKeyToGroup("R2", "G1");
Range r = DatasetUtilities.findStackedRangeExtent(d, map);
assertEquals(0.0, r.getLowerBound(), EPSILON);
assertEquals(9.0, r.getUpperBound(), EPSILON);
}
示例3: getRangeExtent
import org.jfree.data.general.DatasetUtilities; //导入方法依赖的package包/类
/**
* Returns the range of values the renderer requires to display all the items from the
* specified dataset.
*
* @param dataset the dataset (<code>null</code> not permitted).
*
* @return The range (or <code>null</code> if the dataset is empty).
*/
public Range getRangeExtent(XYDataset dataset) {
return DatasetUtilities.findStackedRangeExtent((TableXYDataset) dataset);
}
示例4: getRangeExtent
import org.jfree.data.general.DatasetUtilities; //导入方法依赖的package包/类
/**
* Returns the range of values the renderer requires to display all the items from the
* specified dataset.
*
* @param dataset the dataset (<code>null</code> not permitted).
*
* @return The range (or <code>null</code> if the dataset is empty).
*/
public Range getRangeExtent(XYDataset dataset) {
return DatasetUtilities.findStackedRangeExtent((TableXYDataset) dataset, getBase());
}
示例5: getRangeExtent
import org.jfree.data.general.DatasetUtilities; //导入方法依赖的package包/类
/**
* Returns the range of values the renderer requires to display all the items from the
* specified dataset.
*
* @param dataset the dataset (<code>null</code> not permitted).
*
* @return The range (or <code>null</code> if the dataset is empty).
*/
public Range getRangeExtent(CategoryDataset dataset) {
return DatasetUtilities.findStackedRangeExtent(dataset);
}
示例6: getRangeExtent
import org.jfree.data.general.DatasetUtilities; //导入方法依赖的package包/类
/**
* Returns the range of values the renderer requires to display all the items from the
* specified dataset.
*
* @param dataset the dataset (<code>null</code> permitted).
*
* @return The range (or <code>null</code> if the dataset is <code>null</code> or empty).
*/
public Range getRangeExtent(CategoryDataset dataset) {
Range r = DatasetUtilities.findStackedRangeExtent(dataset, this.seriesToGroupMap);
return r;
}
示例7: getRangeExtent
import org.jfree.data.general.DatasetUtilities; //导入方法依赖的package包/类
/**
* Returns the range of values the renderer requires to display all the items from the
* specified dataset.
*
* @param dataset the dataset (<code>null</code> permitted).
*
* @return The range (or <code>null</code> if the dataset is empty).
*/
public Range getRangeExtent(CategoryDataset dataset) {
return DatasetUtilities.findStackedRangeExtent(dataset);
}