Package org.jfree.data

Examples of org.jfree.data.Range


        TimePeriod first = (TimePeriod) keys.get(0);
        TimePeriod last = (TimePeriod) keys.get(keys.size() - 1);

        if (!includeInterval || this.domainIsPointsInTime) {
            return new Range(getXValue(first), getXValue(last));
        }
        else {
            return new Range(first.getStart().getTime(),
                    last.getEnd().getTime());
        }
    }
View Full Code Here


     *                         y-interval is taken into account.
     *
     * @return The range.
     */
    public Range getRangeBounds(boolean includeInterval) {
        return new Range(this.minimumRangeValue, this.maximumRangeValue);
    }
View Full Code Here

    public Range findRangeBounds(CategoryDataset dataset,
            boolean includeInterval) {
        if (dataset == null) {
            return null;
        }
        Range result = super.findRangeBounds(dataset, includeInterval);
        if (result != null) {
            if (this.includeBaseInRange) {
                result = Range.expandToInclude(result, this.base);
            }
        }
View Full Code Here

                }
            }

        }
        if (!allItemsNull) {
            return new Range(minimum, maximum);
        }
        else {
            return null;
        }
View Full Code Here

            max = Math.max(max, stackValues[1]);
        }
        if (min == Double.POSITIVE_INFINITY) {
            return null;
        }
        return new Range(min, max);
    }
View Full Code Here

                                  CategoryPlot plot,
                                  ValueAxis axis,
                                  Rectangle2D dataArea,
                                  double value) {

        Range range = axis.getRange();

        if (!range.contains(value)) {
            return;
        }

        Rectangle2D adjusted = new Rectangle2D.Double(dataArea.getX(),
                dataArea.getY() + getYOffset(),
View Full Code Here

                dataArea.getHeight() - getYOffset());

        if (marker instanceof ValueMarker) {
            ValueMarker vm = (ValueMarker) marker;
            double value = vm.getValue();
            Range range = axis.getRange();
            if (!range.contains(value)) {
                return;
            }

            GeneralPath path = null;
            PlotOrientation orientation = plot.getOrientation();
View Full Code Here

        }
        if (minimum > maximum) {
            return null;
        }
        else {
            return new Range(minimum, maximum);
        }
    }
View Full Code Here

        }
        if (minimum > maximum) {
            return null;
        }
        else {
            return new Range(minimum, maximum);
        }
    }
View Full Code Here

               visibleSeriesKeys.add(dataset.getSeriesKey(s));
            }
         }
         // the bounds should be calculated using just the items within
         // the current range of the x-axis...if there is one
         Range xRange = null;
         XYPlot p = getPlot();
         if (p != null)
         {
            ValueAxis xAxis = null;
            int index = p.getIndexOf(this);
            if (index >= 0)
            {
               xAxis = this.plot.getDomainAxisForDataset(index);
            }
            if (xAxis != null)
            {
               xRange = xAxis.getRange();
            }
         }
         if (xRange == null)
         {
            xRange = new Range(Double.NEGATIVE_INFINITY,
                    Double.POSITIVE_INFINITY);
         }
         return DatasetUtilities.findRangeBounds(dataset,
                 visibleSeriesKeys, xRange, includeInterval);
      }
View Full Code Here

TOP

Related Classes of org.jfree.data.Range

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.