Java Code Examples for org.jfree.data.xy.XYRangeInfo#getRangeBounds()

The following examples show how to use org.jfree.data.xy.XYRangeInfo#getRangeBounds() . 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: Chart_2_DatasetUtilities_s.java    From coming with MIT License 6 votes vote down vote up
/**
 * Finds the bounds of the y-values in the specified dataset, including
 * only those series that are listed in visibleSeriesKeys, and those items
 * whose x-values fall within the specified range.
 *
 * @param dataset  the dataset (<code>null</code> not permitted).
 * @param visibleSeriesKeys  the keys for the visible series
 *     (<code>null</code> not permitted).
 * @param xRange  the x-range (<code>null</code> not permitted).
 * @param includeInterval  include the y-interval (if the dataset has a
 *     y-interval).
 *
 * @return The data bounds.
 *
 * @since 1.0.13
 */
public static Range findRangeBounds(XYDataset dataset,
        List visibleSeriesKeys, Range xRange, boolean includeInterval) {
    if (dataset == null) {
        throw new IllegalArgumentException("Null 'dataset' argument.");
    }
    Range result = null;
    if (dataset instanceof XYRangeInfo) {
        XYRangeInfo info = (XYRangeInfo) dataset;
        result = info.getRangeBounds(visibleSeriesKeys, xRange,
                includeInterval);
    }
    else {
        result = iterateToFindRangeBounds(dataset, visibleSeriesKeys,
                xRange, includeInterval);
    }
    return result;
}
 
Example 2
Source File: Chart_2_DatasetUtilities_t.java    From coming with MIT License 6 votes vote down vote up
/**
 * Finds the bounds of the y-values in the specified dataset, including
 * only those series that are listed in visibleSeriesKeys, and those items
 * whose x-values fall within the specified range.
 *
 * @param dataset  the dataset (<code>null</code> not permitted).
 * @param visibleSeriesKeys  the keys for the visible series
 *     (<code>null</code> not permitted).
 * @param xRange  the x-range (<code>null</code> not permitted).
 * @param includeInterval  include the y-interval (if the dataset has a
 *     y-interval).
 *
 * @return The data bounds.
 *
 * @since 1.0.13
 */
public static Range findRangeBounds(XYDataset dataset,
        List visibleSeriesKeys, Range xRange, boolean includeInterval) {
    if (dataset == null) {
        throw new IllegalArgumentException("Null 'dataset' argument.");
    }
    Range result = null;
    if (dataset instanceof XYRangeInfo) {
        XYRangeInfo info = (XYRangeInfo) dataset;
        result = info.getRangeBounds(visibleSeriesKeys, xRange,
                includeInterval);
    }
    else {
        result = iterateToFindRangeBounds(dataset, visibleSeriesKeys,
                xRange, includeInterval);
    }
    return result;
}
 
Example 3
Source File: DatasetUtilities.java    From astor with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Finds the bounds of the y-values in the specified dataset, including
 * only those series that are listed in visibleSeriesKeys, and those items
 * whose x-values fall within the specified range.
 *
 * @param dataset  the dataset (<code>null</code> not permitted).
 * @param visibleSeriesKeys  the keys for the visible series
 *     (<code>null</code> not permitted).
 * @param xRange  the x-range (<code>null</code> not permitted).
 * @param includeInterval  include the y-interval (if the dataset has a
 *     y-interval).
 *
 * @return The data bounds.
 *
 * @since 1.0.13
 */
public static Range findRangeBounds(XYDataset dataset,
        List visibleSeriesKeys, Range xRange, boolean includeInterval) {
    if (dataset == null) {
        throw new IllegalArgumentException("Null 'dataset' argument.");
    }
    Range result = null;
    if (dataset instanceof XYRangeInfo) {
        XYRangeInfo info = (XYRangeInfo) dataset;
        result = info.getRangeBounds(visibleSeriesKeys, xRange,
                includeInterval);
    }
    else {
        result = iterateToFindRangeBounds(dataset, visibleSeriesKeys,
                xRange, includeInterval);
    }
    return result;
}
 
Example 4
Source File: DatasetUtilities.java    From openstock with GNU General Public License v3.0 4 votes vote down vote up
/**
 * Finds the bounds of the y-values in the specified dataset, including
 * only those series that are listed in visibleSeriesKeys, and those items
 * whose x-values fall within the specified range.
 *
 * @param dataset  the dataset (<code>null</code> not permitted).
 * @param visibleSeriesKeys  the keys for the visible series
 *     (<code>null</code> not permitted).
 * @param xRange  the x-range (<code>null</code> not permitted).
 * @param includeInterval  include the y-interval (if the dataset has a
 *     y-interval).
 *
 * @return The data bounds.
 * 
 * @since 1.0.13
 */
public static Range findRangeBounds(XYDataset dataset,
        List visibleSeriesKeys, Range xRange, boolean includeInterval) {
    ParamChecks.nullNotPermitted(dataset, "dataset");
    Range result;
    if (dataset instanceof XYRangeInfo) {
        XYRangeInfo info = (XYRangeInfo) dataset;
        result = info.getRangeBounds(visibleSeriesKeys, xRange,
                includeInterval);
    }
    else {
        result = iterateToFindRangeBounds(dataset, visibleSeriesKeys,
                xRange, includeInterval);
    }
    return result;
}
 
Example 5
Source File: DatasetUtilities.java    From ccu-historian with GNU General Public License v3.0 4 votes vote down vote up
/**
 * Finds the bounds of the y-values in the specified dataset, including
 * only those series that are listed in visibleSeriesKeys, and those items
 * whose x-values fall within the specified range.
 *
 * @param dataset  the dataset (<code>null</code> not permitted).
 * @param visibleSeriesKeys  the keys for the visible series
 *     (<code>null</code> not permitted).
 * @param xRange  the x-range (<code>null</code> not permitted).
 * @param includeInterval  include the y-interval (if the dataset has a
 *     y-interval).
 *
 * @return The data bounds.
 * 
 * @since 1.0.13
 */
public static Range findRangeBounds(XYDataset dataset,
        List visibleSeriesKeys, Range xRange, boolean includeInterval) {
    ParamChecks.nullNotPermitted(dataset, "dataset");
    Range result;
    if (dataset instanceof XYRangeInfo) {
        XYRangeInfo info = (XYRangeInfo) dataset;
        result = info.getRangeBounds(visibleSeriesKeys, xRange,
                includeInterval);
    }
    else {
        result = iterateToFindRangeBounds(dataset, visibleSeriesKeys,
                xRange, includeInterval);
    }
    return result;
}
 
Example 6
Source File: DatasetUtilities.java    From SIMVA-SoS with Apache License 2.0 4 votes vote down vote up
/**
 * Finds the bounds of the y-values in the specified dataset, including
 * only those series that are listed in visibleSeriesKeys, and those items
 * whose x-values fall within the specified range.
 *
 * @param dataset  the dataset (<code>null</code> not permitted).
 * @param visibleSeriesKeys  the keys for the visible series
 *     (<code>null</code> not permitted).
 * @param xRange  the x-range (<code>null</code> not permitted).
 * @param includeInterval  include the y-interval (if the dataset has a
 *     y-interval).
 *
 * @return The data bounds.
 * 
 * @since 1.0.13
 */
public static Range findRangeBounds(XYDataset dataset,
        List visibleSeriesKeys, Range xRange, boolean includeInterval) {
    ParamChecks.nullNotPermitted(dataset, "dataset");
    Range result;
    if (dataset instanceof XYRangeInfo) {
        XYRangeInfo info = (XYRangeInfo) dataset;
        result = info.getRangeBounds(visibleSeriesKeys, xRange,
                includeInterval);
    }
    else {
        result = iterateToFindRangeBounds(dataset, visibleSeriesKeys,
                xRange, includeInterval);
    }
    return result;
}
 
Example 7
Source File: DatasetUtilities.java    From ECG-Viewer with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Finds the bounds of the y-values in the specified dataset, including
 * only those series that are listed in visibleSeriesKeys, and those items
 * whose x-values fall within the specified range.
 *
 * @param dataset  the dataset (<code>null</code> not permitted).
 * @param visibleSeriesKeys  the keys for the visible series
 *     (<code>null</code> not permitted).
 * @param xRange  the x-range (<code>null</code> not permitted).
 * @param includeInterval  include the y-interval (if the dataset has a
 *     y-interval).
 *
 * @return The data bounds.
 * 
 * @since 1.0.13
 */
public static Range findRangeBounds(XYDataset dataset,
        List visibleSeriesKeys, Range xRange, boolean includeInterval) {
    ParamChecks.nullNotPermitted(dataset, "dataset");
    Range result;
    if (dataset instanceof XYRangeInfo) {
        XYRangeInfo info = (XYRangeInfo) dataset;
        result = info.getRangeBounds(visibleSeriesKeys, xRange,
                includeInterval);
    }
    else {
        result = iterateToFindRangeBounds(dataset, visibleSeriesKeys,
                xRange, includeInterval);
    }
    return result;
}
 
Example 8
Source File: DatasetUtilities.java    From buffer_bci with GNU General Public License v3.0 4 votes vote down vote up
/**
 * Finds the bounds of the y-values in the specified dataset, including
 * only those series that are listed in visibleSeriesKeys, and those items
 * whose x-values fall within the specified range.
 *
 * @param dataset  the dataset (<code>null</code> not permitted).
 * @param visibleSeriesKeys  the keys for the visible series
 *     (<code>null</code> not permitted).
 * @param xRange  the x-range (<code>null</code> not permitted).
 * @param includeInterval  include the y-interval (if the dataset has a
 *     y-interval).
 *
 * @return The data bounds.
 * 
 * @since 1.0.13
 */
public static Range findRangeBounds(XYDataset dataset,
        List visibleSeriesKeys, Range xRange, boolean includeInterval) {
    ParamChecks.nullNotPermitted(dataset, "dataset");
    Range result;
    if (dataset instanceof XYRangeInfo) {
        XYRangeInfo info = (XYRangeInfo) dataset;
        result = info.getRangeBounds(visibleSeriesKeys, xRange,
                includeInterval);
    }
    else {
        result = iterateToFindRangeBounds(dataset, visibleSeriesKeys,
                xRange, includeInterval);
    }
    return result;
}
 
Example 9
Source File: DatasetUtilities.java    From buffer_bci with GNU General Public License v3.0 4 votes vote down vote up
/**
 * Finds the bounds of the y-values in the specified dataset, including
 * only those series that are listed in visibleSeriesKeys, and those items
 * whose x-values fall within the specified range.
 *
 * @param dataset  the dataset (<code>null</code> not permitted).
 * @param visibleSeriesKeys  the keys for the visible series
 *     (<code>null</code> not permitted).
 * @param xRange  the x-range (<code>null</code> not permitted).
 * @param includeInterval  include the y-interval (if the dataset has a
 *     y-interval).
 *
 * @return The data bounds.
 * 
 * @since 1.0.13
 */
public static Range findRangeBounds(XYDataset dataset,
        List visibleSeriesKeys, Range xRange, boolean includeInterval) {
    ParamChecks.nullNotPermitted(dataset, "dataset");
    Range result;
    if (dataset instanceof XYRangeInfo) {
        XYRangeInfo info = (XYRangeInfo) dataset;
        result = info.getRangeBounds(visibleSeriesKeys, xRange,
                includeInterval);
    }
    else {
        result = iterateToFindRangeBounds(dataset, visibleSeriesKeys,
                xRange, includeInterval);
    }
    return result;
}