Package org.jfree.data

Examples of org.jfree.data.RangeInfo


                else if (orientation == PlotOrientation.VERTICAL) {
                    line.setLine(transX0, transY0, transX1, transY1);
                }

                if (y1n instanceof RangeInfo) {
                    RangeInfo y1r = (RangeInfo) y1n;
                    double transY1low = rangeAxis.translateValueToJava2D
                        (y1r.getMinimumRangeValue().doubleValue(),
                         dataArea, yAxisLocation);
                    double transY1high = rangeAxis.translateValueToJava2D
                        (y1r.getMaximumRangeValue().doubleValue(),
                         dataArea, yAxisLocation);
                    drawRange(g2, line, paint, seriesStroke,
                              transX1, transY1low,
                              transX1, transY1high);

                } else if (x1n instanceof RangeInfo) {
                    RangeInfo x1r = (RangeInfo) x1n;
                    double transX1low = domainAxis.translateValueToJava2D
                        (x1r.getMinimumRangeValue().doubleValue(),
                         dataArea, xAxisLocation);
                    double transX1high = domainAxis.translateValueToJava2D
                        (x1r.getMaximumRangeValue().doubleValue(),
                         dataArea, xAxisLocation);
                    drawRange(g2, line, paint, seriesStroke,
                              transX1low, transY1,
                              transX1high, transY1);
View Full Code Here


        return getDomainBounds(includeInterval).getUpperBound();
    }

    public Range getRangeBounds(boolean includeInterval) {
        if (source instanceof RangeInfo) {
            RangeInfo ri = (RangeInfo) source;
            return ri.getRangeBounds(includeInterval);
        } else {
            return DatasetUtilities.iterateXYRangeBounds(this);
        }
    }
View Full Code Here

    public Range getRangeBounds(boolean includeInterval) {
        Range result = DatasetUtilities.iterateXYRangeBounds(this);
        for (XYChartSeries s : series) {
            if (s instanceof RangeInfo) {
                RangeInfo ri = (RangeInfo) s;
                Range oneRange = ri.getRangeBounds(includeInterval);
                result = Range.combine(result, oneRange);
            }
        }
        return result;
    }
View Full Code Here

                else if (orientation == PlotOrientation.VERTICAL) {
                    line.setLine(transX0, transY0, transX1, transY1);
                }

                if (y1n instanceof RangeInfo) {
                    RangeInfo y1r = (RangeInfo) y1n;
                    double transY1low = rangeAxis.valueToJava2D
                        (y1r.getRangeLowerBound(false),
                         dataArea, yAxisLocation);
                    double transY1high = rangeAxis.valueToJava2D
                        (y1r.getRangeUpperBound(false),
                         dataArea, yAxisLocation);
                    drawItemRangeGradient(g2, line, paint, seriesStroke,
                                          transX1, transY1low,
                                          transX1, transY1high);

                } else if (x1n instanceof RangeInfo) {
                    RangeInfo x1r = (RangeInfo) x1n;
                    double transX1low = domainAxis.valueToJava2D
                        (x1r.getRangeLowerBound(false),
                         dataArea, xAxisLocation);
                    double transX1high = domainAxis.valueToJava2D
                        (x1r.getRangeUpperBound(false),
                         dataArea, xAxisLocation);
                    drawItemRangeGradient(g2, line, paint, seriesStroke,
                                          transX1low, transY1,
                                          transX1high, transY1);
View Full Code Here

    public static Range findRangeBounds(CategoryDataset dataset,
            boolean includeInterval) {
        ParamChecks.nullNotPermitted(dataset, "dataset");
        Range result;
        if (dataset instanceof RangeInfo) {
            RangeInfo info = (RangeInfo) dataset;
            result = info.getRangeBounds(includeInterval);
        }
        else {
            result = iterateRangeBounds(dataset, includeInterval);
        }
        return result;
View Full Code Here

    public static Range findRangeBounds(XYDataset dataset,
            boolean includeInterval) {
        ParamChecks.nullNotPermitted(dataset, "dataset");
        Range result;
        if (dataset instanceof RangeInfo) {
            RangeInfo info = (RangeInfo) dataset;
            result = info.getRangeBounds(includeInterval);
        }
        else {
            result = iterateRangeBounds(dataset, includeInterval);
        }
        return result;
View Full Code Here

     * @return The minimum value (possibly <code>null</code>).
     */
    public static Number findMinimumRangeValue(CategoryDataset dataset) {
        ParamChecks.nullNotPermitted(dataset, "dataset");
        if (dataset instanceof RangeInfo) {
            RangeInfo info = (RangeInfo) dataset;
            return new Double(info.getRangeLowerBound(true));
        }

        // hasn't implemented RangeInfo, so we'll have to iterate...
        else {
            double minimum = Double.POSITIVE_INFINITY;
View Full Code Here

        if (dataset == null) {
            throw new IllegalArgumentException("Null 'dataset' argument.");
        }
        Range result = null;
        if (dataset instanceof RangeInfo) {
            RangeInfo info = (RangeInfo) dataset;
            result = info.getRangeBounds(includeInterval);
        }
        else {
            result = iterateRangeBounds(dataset, includeInterval);
        }
        return result;
View Full Code Here

    public static Number findMinimumRangeValue(XYDataset dataset) {
        ParamChecks.nullNotPermitted(dataset, "dataset");

        // work out the minimum value...
        if (dataset instanceof RangeInfo) {
            RangeInfo info = (RangeInfo) dataset;
            return new Double(info.getRangeLowerBound(true));
        }

        // hasn't implemented RangeInfo, so we'll have to iterate...
        else {
            double minimum = Double.POSITIVE_INFINITY;
View Full Code Here

        if (dataset == null) {
            throw new IllegalArgumentException("Null 'dataset' argument.");
        }
        Range result = null;
        if (dataset instanceof RangeInfo) {
            RangeInfo info = (RangeInfo) dataset;
            result = info.getRangeBounds(includeInterval);
        }
        else {
            result = iterateRangeBounds(dataset, includeInterval);
        }
        return result;
View Full Code Here

TOP

Related Classes of org.jfree.data.RangeInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.