本文整理汇总了Java中org.jfree.data.general.DatasetUtilities.findDomainBounds方法的典型用法代码示例。如果您正苦于以下问题:Java DatasetUtilities.findDomainBounds方法的具体用法?Java DatasetUtilities.findDomainBounds怎么用?Java DatasetUtilities.findDomainBounds使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jfree.data.general.DatasetUtilities
的用法示例。
在下文中一共展示了DatasetUtilities.findDomainBounds方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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.findDomainBounds(this.dataset);
}
else if (axis == getRangeAxis()) {
result = DatasetUtilities.findRangeBounds(this.dataset);
}
return result;
}
示例2: testFindDomainBounds
import org.jfree.data.general.DatasetUtilities; //导入方法依赖的package包/类
/**
* Some tests for the findDomainBounds() method.
*/
public void testFindDomainBounds() {
XYDataset dataset = createXYDataset1();
Range r = DatasetUtilities.findDomainBounds(dataset);
assertEquals(1.0, r.getLowerBound(), EPSILON);
assertEquals(3.0, r.getUpperBound(), EPSILON);
}
示例3: findDomainBounds
import org.jfree.data.general.DatasetUtilities; //导入方法依赖的package包/类
/**
* Returns the lower and upper bounds (range) of the x-values in the
* specified dataset.
*
* @param dataset the dataset (<code>null</code> permitted).
*
* @return The range (<code>null</code> if the dataset is <code>null</code>
* or empty).
*/
public Range findDomainBounds(XYDataset dataset) {
if (dataset != null) {
Range r = DatasetUtilities.findDomainBounds(dataset, false);
return new Range(r.getLowerBound() + this.xOffset,
r.getUpperBound() + this.blockWidth + this.xOffset);
}
else {
return null;
}
}
示例4: findDomainBounds
import org.jfree.data.general.DatasetUtilities; //导入方法依赖的package包/类
/**
* Returns the lower and upper bounds (range) of the x-values in the
* specified dataset.
*
* @param dataset the dataset (<code>null</code> permitted).
*
* @return The range (<code>null</code> if the dataset is <code>null</code>
* or empty).
*/
public Range findDomainBounds(XYDataset dataset) {
if (dataset != null) {
return DatasetUtilities.findDomainBounds(dataset, false);
}
else {
return null;
}
}
示例5: findDomainBounds
import org.jfree.data.general.DatasetUtilities; //导入方法依赖的package包/类
/**
* Returns the range required by this renderer to display all the domain
* values in 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>.
*/
public Range findDomainBounds(XYDataset dataset) {
if (dataset != null) {
return DatasetUtilities.findDomainBounds(dataset, true);
}
else {
return null;
}
}
示例6: findDomainBounds
import org.jfree.data.general.DatasetUtilities; //导入方法依赖的package包/类
/**
* Returns the lower and upper bounds (range) of the x-values in the
* specified dataset. Since this renderer uses the x-interval in the
* dataset, this is taken into account for the range.
*
* @param dataset the dataset (<code>null</code> permitted).
*
* @return The range (<code>null</code> if the dataset is
* <code>null</code> or empty).
*/
public Range findDomainBounds(XYDataset dataset) {
if (dataset != null) {
return DatasetUtilities.findDomainBounds(dataset, true);
}
else {
return null;
}
}