本文整理汇总了Java中org.jfree.data.general.DatasetUtilities.findRangeExtent方法的典型用法代码示例。如果您正苦于以下问题:Java DatasetUtilities.findRangeExtent方法的具体用法?Java DatasetUtilities.findRangeExtent怎么用?Java DatasetUtilities.findRangeExtent使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jfree.data.general.DatasetUtilities
的用法示例。
在下文中一共展示了DatasetUtilities.findRangeExtent方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getDataRange
import org.jfree.data.general.DatasetUtilities; //导入方法依赖的package包/类
/**
* Returns the range for an axis.
*
* @param axis the axis.
*
* @return The range for an axis.
*/
public Range getDataRange(ValueAxis axis) {
if (this.dataset == null) {
return null;
}
Range result = null;
if (axis == getDomainAxis()) {
result = DatasetUtilities.findDomainExtent(this.dataset);
}
else if (axis == getRangeAxis()) {
result = DatasetUtilities.findRangeExtent(this.dataset);
}
return result;
}
示例2: testFindRangeExtent1
import org.jfree.data.general.DatasetUtilities; //导入方法依赖的package包/类
/**
* Some tests for the findRangeExtent() method.
*/
public void testFindRangeExtent1() {
CategoryDataset dataset = createCategoryDataset1();
Range r = DatasetUtilities.findRangeExtent(dataset);
assertEquals(1.0, r.getLowerBound(), DELTA);
assertEquals(6.0, r.getUpperBound(), DELTA);
}
示例3: testFindRangeExtent2
import org.jfree.data.general.DatasetUtilities; //导入方法依赖的package包/类
/**
* Some tests for the findRangeExtent() method.
*/
public void testFindRangeExtent2() {
XYDataset dataset = createXYDataset1();
Range r = DatasetUtilities.findRangeExtent(dataset);
assertEquals(100.0, r.getLowerBound(), DELTA);
assertEquals(105.0, r.getUpperBound(), DELTA);
}
示例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> permitted).
*
* @return The range (or <code>null</code> if the dataset is <code>null</code> or empty).
*/
public Range getRangeExtent(XYDataset dataset) {
return DatasetUtilities.findRangeExtent(dataset);
}
示例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> permitted).
*
* @return The range (or <code>null</code> if the dataset is <code>null</code> or empty).
*/
public Range getRangeExtent(CategoryDataset dataset) {
return DatasetUtilities.findRangeExtent(dataset);
}