List of usage examples for org.jfree.data.general DatasetUtilities findDomainBounds
public static Range findDomainBounds(XYDataset dataset, boolean includeInterval)
From source file:edu.scripps.fl.curves.plot.MyXYErrorRenderer.java
public Range findDomainBounds(XYDataset dataset) { if (dataset != null) return DatasetUtilities.findDomainBounds(dataset, true); else/*from w w w . jav a 2s . c om*/ return null; }
From source file:anl.verdi.plot.jfree.XYBlockRenderer.java
/** * Returns the lower and upper bounds (range) of the x-values in the * specified dataset./* w w w . java 2s . c o m*/ * * @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() + xOffset, r.getUpperBound() + blockWidth + xOffset); } else { return null; } }
From source file:nl.vu.nat.jfreechartcustom.XYBlockRenderer.java
/** * Returns the lower and upper bounds (range) of the x-values in the * specified dataset.// w w w.j av a 2s. c o m * * @param dataset the dataset (<code>null</code> permitted). * * @return The range (<code>null</code> if the dataset is <code>null</code> * or empty). * * @see #findRangeBounds(XYDataset) */ @Override public Range findDomainBounds(XYDataset dataset) { if (dataset != null) { Range r = DatasetUtilities.findDomainBounds(dataset, false); if (r == null) { return null; } else { return new Range(r.getLowerBound() + this.xOffset, r.getUpperBound() + this.blockWidth + this.xOffset); } } else { return null; } }
From source file:org.jfree.data.xy.IntervalXYDelegate.java
/** * Returns the range of the values in the dataset's domain, including * or excluding the interval around each x-value as specified. * * @param includeInterval a flag that determines whether or not the * x-interval should be taken into account. * * @return The range./*from w w w .j a v a 2s . c o m*/ */ @Override public Range getDomainBounds(boolean includeInterval) { // first get the range without the interval, then expand it for the // interval width Range range = DatasetUtilities.findDomainBounds(this.dataset, false); if (includeInterval && range != null) { double lowerAdj = getIntervalWidth() * getIntervalPositionFactor(); double upperAdj = getIntervalWidth() - lowerAdj; range = new Range(range.getLowerBound() - lowerAdj, range.getUpperBound() + upperAdj); } return range; }
From source file:edu.dlnu.liuwenpeng.render.NewXYBarRenderer.java
/** * 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. * /* ww w . j a va 2 s. c o m*/ * @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; } }