org.jfree.data.xy.XYDomainInfo Java Examples

The following examples show how to use org.jfree.data.xy.XYDomainInfo. 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: DatasetUtilities.java    From openstock with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Returns the bounds of the x-values in the specified <code>dataset</code>
 * taking into account only the visible series and including any x-interval
 * if requested.
 *
 * @param dataset  the dataset (<code>null</code> not permitted).
 * @param visibleSeriesKeys  the visible series keys (<code>null</code>
 *     not permitted).
 * @param includeInterval  include the x-interval (if any)?
 *
 * @return The bounds (or <code>null</code> if the dataset contains no
 *     values.
 *
 * @since 1.0.13
 */
public static Range findDomainBounds(XYDataset dataset,
        List visibleSeriesKeys, boolean includeInterval) {
    
    ParamChecks.nullNotPermitted(dataset, "dataset");
    Range result;
    if (dataset instanceof XYDomainInfo) {
        XYDomainInfo info = (XYDomainInfo) dataset;
        result = info.getDomainBounds(visibleSeriesKeys, includeInterval);
    }
    else {
        result = iterateToFindDomainBounds(dataset, visibleSeriesKeys,
                includeInterval);
    }
    return result;
}
 
Example #2
Source File: DatasetUtilities.java    From ccu-historian with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Returns the bounds of the x-values in the specified <code>dataset</code>
 * taking into account only the visible series and including any x-interval
 * if requested.
 *
 * @param dataset  the dataset (<code>null</code> not permitted).
 * @param visibleSeriesKeys  the visible series keys (<code>null</code>
 *     not permitted).
 * @param includeInterval  include the x-interval (if any)?
 *
 * @return The bounds (or <code>null</code> if the dataset contains no
 *     values.
 *
 * @since 1.0.13
 */
public static Range findDomainBounds(XYDataset dataset,
        List visibleSeriesKeys, boolean includeInterval) {
    
    ParamChecks.nullNotPermitted(dataset, "dataset");
    Range result;
    if (dataset instanceof XYDomainInfo) {
        XYDomainInfo info = (XYDomainInfo) dataset;
        result = info.getDomainBounds(visibleSeriesKeys, includeInterval);
    }
    else {
        result = iterateToFindDomainBounds(dataset, visibleSeriesKeys,
                includeInterval);
    }
    return result;
}
 
Example #3
Source File: DatasetUtilities.java    From SIMVA-SoS with Apache License 2.0 6 votes vote down vote up
/**
 * Returns the bounds of the x-values in the specified <code>dataset</code>
 * taking into account only the visible series and including any x-interval
 * if requested.
 *
 * @param dataset  the dataset (<code>null</code> not permitted).
 * @param visibleSeriesKeys  the visible series keys (<code>null</code>
 *     not permitted).
 * @param includeInterval  include the x-interval (if any)?
 *
 * @return The bounds (or <code>null</code> if the dataset contains no
 *     values.
 *
 * @since 1.0.13
 */
public static Range findDomainBounds(XYDataset dataset,
        List visibleSeriesKeys, boolean includeInterval) {
    
    ParamChecks.nullNotPermitted(dataset, "dataset");
    Range result;
    if (dataset instanceof XYDomainInfo) {
        XYDomainInfo info = (XYDomainInfo) dataset;
        result = info.getDomainBounds(visibleSeriesKeys, includeInterval);
    }
    else {
        result = iterateToFindDomainBounds(dataset, visibleSeriesKeys,
                includeInterval);
    }
    return result;
}
 
Example #4
Source File: Chart_2_DatasetUtilities_s.java    From coming with MIT License 6 votes vote down vote up
/**
 * Returns the bounds of the x-values in the specified <code>dataset</code>
 * taking into account only the visible series and including any x-interval
 * if requested.
 *
 * @param dataset  the dataset (<code>null</code> not permitted).
 * @param visibleSeriesKeys  the visible series keys (<code>null</code>
 *     not permitted).
 * @param includeInterval  include the x-interval (if any)?
 *
 * @return The bounds (or <code>null</code> if the dataset contains no
 *     values.
 *
 * @since 1.0.13
 */
public static Range findDomainBounds(XYDataset dataset,
        List visibleSeriesKeys, boolean includeInterval) {
    if (dataset == null) {
        throw new IllegalArgumentException("Null 'dataset' argument.");
    }
    Range result = null;
    if (dataset instanceof XYDomainInfo) {
        XYDomainInfo info = (XYDomainInfo) dataset;
        result = info.getDomainBounds(visibleSeriesKeys, includeInterval);
    }
    else {
        result = iterateToFindDomainBounds(dataset, visibleSeriesKeys,
                includeInterval);
    }
    return result;
}
 
Example #5
Source File: Chart_2_DatasetUtilities_t.java    From coming with MIT License 6 votes vote down vote up
/**
 * Returns the bounds of the x-values in the specified <code>dataset</code>
 * taking into account only the visible series and including any x-interval
 * if requested.
 *
 * @param dataset  the dataset (<code>null</code> not permitted).
 * @param visibleSeriesKeys  the visible series keys (<code>null</code>
 *     not permitted).
 * @param includeInterval  include the x-interval (if any)?
 *
 * @return The bounds (or <code>null</code> if the dataset contains no
 *     values.
 *
 * @since 1.0.13
 */
public static Range findDomainBounds(XYDataset dataset,
        List visibleSeriesKeys, boolean includeInterval) {
    if (dataset == null) {
        throw new IllegalArgumentException("Null 'dataset' argument.");
    }
    Range result = null;
    if (dataset instanceof XYDomainInfo) {
        XYDomainInfo info = (XYDomainInfo) dataset;
        result = info.getDomainBounds(visibleSeriesKeys, includeInterval);
    }
    else {
        result = iterateToFindDomainBounds(dataset, visibleSeriesKeys,
                includeInterval);
    }
    return result;
}
 
Example #6
Source File: DatasetUtilities.java    From ECG-Viewer with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Returns the bounds of the x-values in the specified <code>dataset</code>
 * taking into account only the visible series and including any x-interval
 * if requested.
 *
 * @param dataset  the dataset (<code>null</code> not permitted).
 * @param visibleSeriesKeys  the visible series keys (<code>null</code>
 *     not permitted).
 * @param includeInterval  include the x-interval (if any)?
 *
 * @return The bounds (or <code>null</code> if the dataset contains no
 *     values.
 *
 * @since 1.0.13
 */
public static Range findDomainBounds(XYDataset dataset,
        List visibleSeriesKeys, boolean includeInterval) {
    
    ParamChecks.nullNotPermitted(dataset, "dataset");
    Range result;
    if (dataset instanceof XYDomainInfo) {
        XYDomainInfo info = (XYDomainInfo) dataset;
        result = info.getDomainBounds(visibleSeriesKeys, includeInterval);
    }
    else {
        result = iterateToFindDomainBounds(dataset, visibleSeriesKeys,
                includeInterval);
    }
    return result;
}
 
Example #7
Source File: DatasetUtilities.java    From astor with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Returns the bounds of the x-values in the specified <code>dataset</code>
 * taking into account only the visible series and including any x-interval
 * if requested.
 *
 * @param dataset  the dataset (<code>null</code> not permitted).
 * @param visibleSeriesKeys  the visible series keys (<code>null</code>
 *     not permitted).
 * @param includeInterval  include the x-interval (if any)?
 *
 * @return The bounds (or <code>null</code> if the dataset contains no
 *     values.
 *
 * @since 1.0.13
 */
public static Range findDomainBounds(XYDataset dataset,
        List visibleSeriesKeys, boolean includeInterval) {
    if (dataset == null) {
        throw new IllegalArgumentException("Null 'dataset' argument.");
    }
    Range result = null;
    if (dataset instanceof XYDomainInfo) {
        XYDomainInfo info = (XYDomainInfo) dataset;
        result = info.getDomainBounds(visibleSeriesKeys, includeInterval);
    }
    else {
        result = iterateToFindDomainBounds(dataset, visibleSeriesKeys,
                includeInterval);
    }
    return result;
}
 
Example #8
Source File: DatasetUtilities.java    From buffer_bci with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Returns the bounds of the x-values in the specified <code>dataset</code>
 * taking into account only the visible series and including any x-interval
 * if requested.
 *
 * @param dataset  the dataset (<code>null</code> not permitted).
 * @param visibleSeriesKeys  the visible series keys (<code>null</code>
 *     not permitted).
 * @param includeInterval  include the x-interval (if any)?
 *
 * @return The bounds (or <code>null</code> if the dataset contains no
 *     values.
 *
 * @since 1.0.13
 */
public static Range findDomainBounds(XYDataset dataset,
        List visibleSeriesKeys, boolean includeInterval) {
    
    ParamChecks.nullNotPermitted(dataset, "dataset");
    Range result;
    if (dataset instanceof XYDomainInfo) {
        XYDomainInfo info = (XYDomainInfo) dataset;
        result = info.getDomainBounds(visibleSeriesKeys, includeInterval);
    }
    else {
        result = iterateToFindDomainBounds(dataset, visibleSeriesKeys,
                includeInterval);
    }
    return result;
}
 
Example #9
Source File: DatasetUtilities.java    From buffer_bci with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Returns the bounds of the x-values in the specified <code>dataset</code>
 * taking into account only the visible series and including any x-interval
 * if requested.
 *
 * @param dataset  the dataset (<code>null</code> not permitted).
 * @param visibleSeriesKeys  the visible series keys (<code>null</code>
 *     not permitted).
 * @param includeInterval  include the x-interval (if any)?
 *
 * @return The bounds (or <code>null</code> if the dataset contains no
 *     values.
 *
 * @since 1.0.13
 */
public static Range findDomainBounds(XYDataset dataset,
        List visibleSeriesKeys, boolean includeInterval) {
    
    ParamChecks.nullNotPermitted(dataset, "dataset");
    Range result;
    if (dataset instanceof XYDomainInfo) {
        XYDomainInfo info = (XYDomainInfo) dataset;
        result = info.getDomainBounds(visibleSeriesKeys, includeInterval);
    }
    else {
        result = iterateToFindDomainBounds(dataset, visibleSeriesKeys,
                includeInterval);
    }
    return result;
}