Java Code Examples for org.jfree.data.Range#combineIgnoringNaN()

The following examples show how to use org.jfree.data.Range#combineIgnoringNaN() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TimeSeriesCollection.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Returns the bounds for the y-values in the dataset.
 * 
 * @param includeInterval  ignored for this dataset.
 * 
 * @return The range of value in the dataset (possibly <code>null</code>).
 *
 * @since 1.0.15
 */
public Range getRangeBounds(boolean includeInterval) {
    Range result = null;
    Iterator iterator = this.data.iterator();
    while (iterator.hasNext()) {
        TimeSeries series = (TimeSeries) iterator.next();
        Range r = new Range(series.getMinY(), series.getMaxY());
        result = Range.combineIgnoringNaN(result, r);
    }
    return result;
}
 
Example 2
Source File: TimeSeriesCollection.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Returns the bounds for the y-values in the dataset.
 *
 * @param visibleSeriesKeys  the visible series keys.
 * @param xRange  the x-range (<code>null</code> not permitted).
 * @param includeInterval  ignored.
 *
 * @return The bounds.
 *
 * @since 1.0.14
 */
@Override
public Range getRangeBounds(List visibleSeriesKeys, Range xRange,
        boolean includeInterval) {
    Range result = null;
    Iterator iterator = visibleSeriesKeys.iterator();
    while (iterator.hasNext()) {
        Comparable seriesKey = (Comparable) iterator.next();
        TimeSeries series = getSeries(seriesKey);
        Range r = series.findValueRange(xRange, this.xPosition, 
                this.workingCalendar.getTimeZone());
        result = Range.combineIgnoringNaN(result, r);
    }
    return result;
}
 
Example 3
Source File: TimeSeriesCollection.java    From ccu-historian with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Returns the bounds for the y-values in the dataset.
 * 
 * @param includeInterval  ignored for this dataset.
 * 
 * @return The range of value in the dataset (possibly <code>null</code>).
 *
 * @since 1.0.15
 */
public Range getRangeBounds(boolean includeInterval) {
    Range result = null;
    Iterator iterator = this.data.iterator();
    while (iterator.hasNext()) {
        TimeSeries series = (TimeSeries) iterator.next();
        Range r = new Range(series.getMinY(), series.getMaxY());
        result = Range.combineIgnoringNaN(result, r);
    }
    return result;
}
 
Example 4
Source File: TimeSeriesCollection.java    From ccu-historian with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Returns the bounds for the y-values in the dataset.
 *
 * @param visibleSeriesKeys  the visible series keys.
 * @param xRange  the x-range (<code>null</code> not permitted).
 * @param includeInterval  ignored.
 *
 * @return The bounds.
 *
 * @since 1.0.14
 */
@Override
public Range getRangeBounds(List visibleSeriesKeys, Range xRange,
        boolean includeInterval) {
    Range result = null;
    Iterator iterator = visibleSeriesKeys.iterator();
    while (iterator.hasNext()) {
        Comparable seriesKey = (Comparable) iterator.next();
        TimeSeries series = getSeries(seriesKey);
        Range r = series.findValueRange(xRange, this.xPosition, 
                this.workingCalendar.getTimeZone());
        result = Range.combineIgnoringNaN(result, r);
    }
    return result;
}
 
Example 5
Source File: TimeSeriesCollection.java    From SIMVA-SoS with Apache License 2.0 5 votes vote down vote up
/**
 * Returns the bounds for the y-values in the dataset.
 * 
 * @param includeInterval  ignored for this dataset.
 * 
 * @return The range of value in the dataset (possibly <code>null</code>).
 *
 * @since 1.0.15
 */
public Range getRangeBounds(boolean includeInterval) {
    Range result = null;
    Iterator iterator = this.data.iterator();
    while (iterator.hasNext()) {
        TimeSeries series = (TimeSeries) iterator.next();
        Range r = new Range(series.getMinY(), series.getMaxY());
        result = Range.combineIgnoringNaN(result, r);
    }
    return result;
}
 
Example 6
Source File: TimeSeriesCollection.java    From SIMVA-SoS with Apache License 2.0 5 votes vote down vote up
/**
 * Returns the bounds for the y-values in the dataset.
 *
 * @param visibleSeriesKeys  the visible series keys.
 * @param xRange  the x-range (<code>null</code> not permitted).
 * @param includeInterval  ignored.
 *
 * @return The bounds.
 *
 * @since 1.0.14
 */
@Override
public Range getRangeBounds(List visibleSeriesKeys, Range xRange,
        boolean includeInterval) {
    Range result = null;
    Iterator iterator = visibleSeriesKeys.iterator();
    while (iterator.hasNext()) {
        Comparable seriesKey = (Comparable) iterator.next();
        TimeSeries series = getSeries(seriesKey);
        Range r = series.findValueRange(xRange, this.xPosition, 
                this.workingCalendar.getTimeZone());
        result = Range.combineIgnoringNaN(result, r);
    }
    return result;
}
 
Example 7
Source File: TimeSeriesCollection.java    From ECG-Viewer with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Returns the bounds for the y-values in the dataset.
 * 
 * @param includeInterval  ignored for this dataset.
 * 
 * @return The range of value in the dataset (possibly <code>null</code>).
 *
 * @since 1.0.15
 */
public Range getRangeBounds(boolean includeInterval) {
    Range result = null;
    Iterator iterator = this.data.iterator();
    while (iterator.hasNext()) {
        TimeSeries series = (TimeSeries) iterator.next();
        Range r = new Range(series.getMinY(), series.getMaxY());
        result = Range.combineIgnoringNaN(result, r);
    }
    return result;
}
 
Example 8
Source File: TimeSeriesCollection.java    From ECG-Viewer with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Returns the bounds for the y-values in the dataset.
 *
 * @param visibleSeriesKeys  the visible series keys.
 * @param xRange  the x-range (<code>null</code> not permitted).
 * @param includeInterval  ignored.
 *
 * @return The bounds.
 *
 * @since 1.0.14
 */
@Override
public Range getRangeBounds(List visibleSeriesKeys, Range xRange,
        boolean includeInterval) {
    Range result = null;
    Iterator iterator = visibleSeriesKeys.iterator();
    while (iterator.hasNext()) {
        Comparable seriesKey = (Comparable) iterator.next();
        TimeSeries series = getSeries(seriesKey);
        Range r = series.findValueRange(xRange, this.xPosition, 
                this.workingCalendar.getTimeZone());
        result = Range.combineIgnoringNaN(result, r);
    }
    return result;
}
 
Example 9
Source File: TimeSeriesCollection.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Returns the bounds for the y-values in the dataset.
 * 
 * @param includeInterval  ignored for this dataset.
 * 
 * @return The range of value in the dataset (possibly <code>null</code>).
 *
 * @since 1.0.15
 */
public Range getRangeBounds(boolean includeInterval) {
    Range result = null;
    Iterator iterator = this.data.iterator();
    while (iterator.hasNext()) {
        TimeSeries series = (TimeSeries) iterator.next();
        Range r = new Range(series.getMinY(), series.getMaxY());
        result = Range.combineIgnoringNaN(result, r);
    }
    return result;
}
 
Example 10
Source File: TimeSeriesCollection.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Returns the bounds for the y-values in the dataset.
 *
 * @param visibleSeriesKeys  the visible series keys.
 * @param xRange  the x-range (<code>null</code> not permitted).
 * @param includeInterval  ignored.
 *
 * @return The bounds.
 *
 * @since 1.0.14
 */
@Override
public Range getRangeBounds(List visibleSeriesKeys, Range xRange,
        boolean includeInterval) {
    Range result = null;
    Iterator iterator = visibleSeriesKeys.iterator();
    while (iterator.hasNext()) {
        Comparable seriesKey = (Comparable) iterator.next();
        TimeSeries series = getSeries(seriesKey);
        Range r = series.findValueRange(xRange, this.xPosition, 
                this.workingCalendar.getTimeZone());
        result = Range.combineIgnoringNaN(result, r);
    }
    return result;
}
 
Example 11
Source File: TimeSeriesCollection.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Returns the bounds for the y-values in the dataset.
 * 
 * @param includeInterval  ignored for this dataset.
 * 
 * @return The range of value in the dataset (possibly <code>null</code>).
 *
 * @since 1.0.15
 */
public Range getRangeBounds(boolean includeInterval) {
    Range result = null;
    Iterator iterator = this.data.iterator();
    while (iterator.hasNext()) {
        TimeSeries series = (TimeSeries) iterator.next();
        Range r = new Range(series.getMinY(), series.getMaxY());
        result = Range.combineIgnoringNaN(result, r);
    }
    return result;
}
 
Example 12
Source File: TimeSeriesCollection.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Returns the bounds for the y-values in the dataset.
 *
 * @param visibleSeriesKeys  the visible series keys.
 * @param xRange  the x-range (<code>null</code> not permitted).
 * @param includeInterval  ignored.
 *
 * @return The bounds.
 *
 * @since 1.0.14
 */
@Override
public Range getRangeBounds(List visibleSeriesKeys, Range xRange,
        boolean includeInterval) {
    Range result = null;
    Iterator iterator = visibleSeriesKeys.iterator();
    while (iterator.hasNext()) {
        Comparable seriesKey = (Comparable) iterator.next();
        TimeSeries series = getSeries(seriesKey);
        Range r = series.findValueRange(xRange, this.xPosition, 
                this.workingCalendar.getTimeZone());
        result = Range.combineIgnoringNaN(result, r);
    }
    return result;
}