@Test public void testFindDomainBounds() { AbstractXYItemRenderer renderer = new StandardXYItemRenderer(); XYDataset dataset = createDataset1(); Range r = renderer.findDomainBounds(dataset); assertEquals(1.0, r.getLowerBound(), EPSILON); assertEquals(3.0, r.getUpperBound(), EPSILON); assertNull(renderer.findDomainBounds(null)); }
@Override public Range findDomainBounds(XYDataset dataset) { return findDomainBounds(dataset, false); }
AbstractXYItemRenderer extends AbstractRenderer implements XYItemRenderer, AnnotationChangeListener,
        Cloneable, Serializable { @Override public Range findDomainBounds(XYDataset dataset) { return findDomainBounds(dataset, false); } }
AbstractXYItemRenderer extends AbstractRenderer implements XYItemRenderer, AnnotationChangeListener,
        Cloneable, Serializable { @Override public Range findDomainBounds(XYDataset dataset) { return findDomainBounds(dataset, false); } protected  AbstractXYItemRenderer(); }
AbstractXYItemRenderer extends AbstractRenderer implements XYItemRenderer, AnnotationChangeListener,
        Cloneable, Serializable { @Override public Range findDomainBounds(XYDataset dataset) { return findDomainBounds(dataset, false); } protected  AbstractXYItemRenderer(); @Override int getPassCount(); @Override XYPlot getPlot(); @Override void setPlot(XYPlot plot); @Override XYItemRendererState initialise(Graphics2D g2, Rectangle2D dataArea,
            XYPlot plot, XYDataset data, PlotRenderingInfo info); @Override XYItemLabelGenerator getItemLabelGenerator(int series, int item); @Override XYItemLabelGenerator getSeriesItemLabelGenerator(int series); @Override void setSeriesItemLabelGenerator(int series,
                                            XYItemLabelGenerator generator); @Override void setSeriesItemLabelGenerator(int series,
            XYItemLabelGenerator generator, boolean notify); @Override XYItemLabelGenerator getDefaultItemLabelGenerator(); @Override void setDefaultItemLabelGenerator(XYItemLabelGenerator generator); @Override void setDefaultItemLabelGenerator(XYItemLabelGenerator generator,
            boolean notify); @Override XYToolTipGenerator getToolTipGenerator(int series, int item); @Override XYToolTipGenerator getSeriesToolTipGenerator(int series); @Override void setSeriesToolTipGenerator(int series,
            XYToolTipGenerator generator); @Override void setSeriesToolTipGenerator(int series,
            XYToolTipGenerator generator, boolean notify); @Override XYToolTipGenerator getDefaultToolTipGenerator(); @Override void setDefaultToolTipGenerator(XYToolTipGenerator generator); @Override void setDefaultToolTipGenerator(XYToolTipGenerator generator,
            boolean notify); @Override XYURLGenerator getURLGenerator(); @Override void setURLGenerator(XYURLGenerator urlGenerator); @Override void setURLGenerator(XYURLGenerator urlGenerator, boolean notify); @Override void addAnnotation(XYAnnotation annotation); @Override void addAnnotation(XYAnnotation annotation, Layer layer); @Override boolean removeAnnotation(XYAnnotation annotation); @Override void removeAnnotations(); @Override void annotationChanged(AnnotationChangeEvent event); @Override Collection<XYAnnotation> getAnnotations(); @Override XYSeriesLabelGenerator getLegendItemLabelGenerator(); @Override void setLegendItemLabelGenerator(XYSeriesLabelGenerator generator); @Override void setLegendItemLabelGenerator(XYSeriesLabelGenerator generator,
            boolean notify); XYSeriesLabelGenerator getLegendItemToolTipGenerator(); void setLegendItemToolTipGenerator(
            XYSeriesLabelGenerator generator); XYSeriesLabelGenerator getLegendItemURLGenerator(); void setLegendItemURLGenerator(XYSeriesLabelGenerator generator); @Override Range findDomainBounds(XYDataset dataset); @Override Range findRangeBounds(XYDataset dataset); @Override List<LegendItem> getLegendItems(); @Override LegendItem getLegendItem(int datasetIndex, int series); @Override void fillDomainGridBand(Graphics2D g2, XYPlot plot, ValueAxis axis,
            Rectangle2D dataArea, double start, double end); @Override void fillRangeGridBand(Graphics2D g2, XYPlot plot, ValueAxis axis,
            Rectangle2D dataArea, double start, double end); @Override void drawDomainGridline(Graphics2D g2, XYPlot plot,
            ValueAxis axis, Rectangle2D dataArea, double value); void drawDomainLine(Graphics2D g2, XYPlot plot, ValueAxis axis,
            Rectangle2D dataArea, double value, Paint paint, Stroke stroke); @Override void drawRangeGridline(Graphics2D g2, XYPlot plot, ValueAxis axis,
            Rectangle2D dataArea, double value, Paint paint, Stroke stroke); @Override void drawDomainMarker(Graphics2D g2, XYPlot plot,
            ValueAxis domainAxis, Marker marker, Rectangle2D dataArea); @Override void drawRangeMarker(Graphics2D g2, XYPlot plot, ValueAxis rangeAxis,
            Marker marker, Rectangle2D dataArea); @Override boolean equals(Object obj); @Override DrawingSupplier getDrawingSupplier(); @Override void drawAnnotations(Graphics2D g2, Rectangle2D dataArea,
            ValueAxis domainAxis, ValueAxis rangeAxis, Layer layer,
                                PlotRenderingInfo info); static boolean isPointInRect(Rectangle2D rect, double x, double y); }
AbstractXYItemRenderer extends AbstractRenderer implements XYItemRenderer, AnnotationChangeListener,
        Cloneable, Serializable { @Override public Range findDomainBounds(XYDataset dataset) { return findDomainBounds(dataset, false); } protected  AbstractXYItemRenderer(); @Override int getPassCount(); @Override XYPlot getPlot(); @Override void setPlot(XYPlot plot); @Override XYItemRendererState initialise(Graphics2D g2, Rectangle2D dataArea,
            XYPlot plot, XYDataset data, PlotRenderingInfo info); @Override XYItemLabelGenerator getItemLabelGenerator(int series, int item); @Override XYItemLabelGenerator getSeriesItemLabelGenerator(int series); @Override void setSeriesItemLabelGenerator(int series,
                                            XYItemLabelGenerator generator); @Override void setSeriesItemLabelGenerator(int series,
            XYItemLabelGenerator generator, boolean notify); @Override XYItemLabelGenerator getDefaultItemLabelGenerator(); @Override void setDefaultItemLabelGenerator(XYItemLabelGenerator generator); @Override void setDefaultItemLabelGenerator(XYItemLabelGenerator generator,
            boolean notify); @Override XYToolTipGenerator getToolTipGenerator(int series, int item); @Override XYToolTipGenerator getSeriesToolTipGenerator(int series); @Override void setSeriesToolTipGenerator(int series,
            XYToolTipGenerator generator); @Override void setSeriesToolTipGenerator(int series,
            XYToolTipGenerator generator, boolean notify); @Override XYToolTipGenerator getDefaultToolTipGenerator(); @Override void setDefaultToolTipGenerator(XYToolTipGenerator generator); @Override void setDefaultToolTipGenerator(XYToolTipGenerator generator,
            boolean notify); @Override XYURLGenerator getURLGenerator(); @Override void setURLGenerator(XYURLGenerator urlGenerator); @Override void setURLGenerator(XYURLGenerator urlGenerator, boolean notify); @Override void addAnnotation(XYAnnotation annotation); @Override void addAnnotation(XYAnnotation annotation, Layer layer); @Override boolean removeAnnotation(XYAnnotation annotation); @Override void removeAnnotations(); @Override void annotationChanged(AnnotationChangeEvent event); @Override Collection<XYAnnotation> getAnnotations(); @Override XYSeriesLabelGenerator getLegendItemLabelGenerator(); @Override void setLegendItemLabelGenerator(XYSeriesLabelGenerator generator); @Override void setLegendItemLabelGenerator(XYSeriesLabelGenerator generator,
            boolean notify); XYSeriesLabelGenerator getLegendItemToolTipGenerator(); void setLegendItemToolTipGenerator(
            XYSeriesLabelGenerator generator); XYSeriesLabelGenerator getLegendItemURLGenerator(); void setLegendItemURLGenerator(XYSeriesLabelGenerator generator); @Override Range findDomainBounds(XYDataset dataset); @Override Range findRangeBounds(XYDataset dataset); @Override List<LegendItem> getLegendItems(); @Override LegendItem getLegendItem(int datasetIndex, int series); @Override void fillDomainGridBand(Graphics2D g2, XYPlot plot, ValueAxis axis,
            Rectangle2D dataArea, double start, double end); @Override void fillRangeGridBand(Graphics2D g2, XYPlot plot, ValueAxis axis,
            Rectangle2D dataArea, double start, double end); @Override void drawDomainGridline(Graphics2D g2, XYPlot plot,
            ValueAxis axis, Rectangle2D dataArea, double value); void drawDomainLine(Graphics2D g2, XYPlot plot, ValueAxis axis,
            Rectangle2D dataArea, double value, Paint paint, Stroke stroke); @Override void drawRangeGridline(Graphics2D g2, XYPlot plot, ValueAxis axis,
            Rectangle2D dataArea, double value, Paint paint, Stroke stroke); @Override void drawDomainMarker(Graphics2D g2, XYPlot plot,
            ValueAxis domainAxis, Marker marker, Rectangle2D dataArea); @Override void drawRangeMarker(Graphics2D g2, XYPlot plot, ValueAxis rangeAxis,
            Marker marker, Rectangle2D dataArea); @Override boolean equals(Object obj); @Override DrawingSupplier getDrawingSupplier(); @Override void drawAnnotations(Graphics2D g2, Rectangle2D dataArea,
            ValueAxis domainAxis, ValueAxis rangeAxis, Layer layer,
                                PlotRenderingInfo info); static boolean isPointInRect(Rectangle2D rect, double x, double y);  }