Examples of RangeInfo


Examples of com.positive.charts.data.RangeInfo

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

Examples of com.positive.charts.data.RangeInfo

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

Examples of org.codehaus.groovy.runtime.RangeInfo

        int tempTo = to;
        if (tempTo < 0) {
            tempTo += size;
        }
        if (tempFrom > tempTo) {
            return new RangeInfo(inclusive ? tempTo : tempTo + 1, tempFrom + 1, true);
        }
        return new RangeInfo(tempFrom, inclusive ? tempTo + 1 : tempTo, false);
    }
View Full Code Here

Examples of org.codehaus.groovy.runtime.RangeInfo

     * @param self  a StringBuilder
     * @param range a Range
     * @param value the object that's toString() will be inserted
     */
    public static void putAt(StringBuilder self, IntRange range, Object value) {
        RangeInfo info = subListBorders(self.length(), range);
        self.replace(info.from, info.to, value.toString());
    }
View Full Code Here

Examples of org.codehaus.groovy.runtime.RangeInfo

     * @param self  a StringBuilder
     * @param range a Range
     * @param value the object that's toString() will be inserted
     */
    public static void putAt(StringBuilder self, EmptyRange range, Object value) {
        RangeInfo info = subListBorders(self.length(), range);
        self.replace(info.from, info.to, value.toString());
    }
View Full Code Here

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

Examples of org.jfree.data.RangeInfo

        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

Examples of org.jfree.data.RangeInfo

    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

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.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

Examples of org.jfree.data.RangeInfo

    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
TOP
Copyright © 2018 www.massapi.com. 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.