当前位置: 首页>>代码示例>>Java>>正文


Java DatasetUtilities.findStackedRangeExtent方法代码示例

本文整理汇总了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);        
    
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:24,代码来源:DatasetUtilitiesTests.java

示例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);        
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:12,代码来源:DatasetUtilitiesTests.java

示例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);   
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:12,代码来源:StackedXYAreaRenderer.java

示例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());   
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:12,代码来源:StackedXYBarRenderer.java

示例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);   
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:12,代码来源:StackedAreaRenderer.java

示例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;
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:13,代码来源:GroupedStackedBarRenderer.java

示例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);   
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:12,代码来源:StackedBarRenderer.java


注:本文中的org.jfree.data.general.DatasetUtilities.findStackedRangeExtent方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。