@Test public void testFindRangeBounds() { StatisticalLineAndShapeRenderer r = new StatisticalLineAndShapeRenderer(); assertNull(r.findRangeBounds(null)); DefaultStatisticalCategoryDataset dataset = new DefaultStatisticalCategoryDataset(); assertNull(r.findRangeBounds(dataset)); dataset.add(1.0, 0.5, "R1", "C1"); assertEquals(new Range(0.5, 1.5), r.findRangeBounds(dataset)); dataset.add(-2.0, 0.2, "R1", "C2"); assertEquals(new Range(-2.2, 1.5), r.findRangeBounds(dataset)); dataset.add(null, null, "R1", "C3"); assertEquals(new Range(-2.2, 1.5), r.findRangeBounds(dataset)); dataset.add(5.0, 1.0, "R2", "C3"); assertEquals(new Range(-2.2, 6.0), r.findRangeBounds(dataset)); r.setSeriesVisible(1, Boolean.FALSE); assertEquals(new Range(-2.2, 1.5), r.findRangeBounds(dataset)); }
@Override public Range findRangeBounds(CategoryDataset dataset) { return findRangeBounds(dataset, true); }
StatisticalLineAndShapeRenderer extends LineAndShapeRenderer implements Cloneable, PublicCloneable, Serializable { @Override public Range findRangeBounds(CategoryDataset dataset) { return findRangeBounds(dataset, true); } }
StatisticalLineAndShapeRenderer extends LineAndShapeRenderer implements Cloneable, PublicCloneable, Serializable { @Override public Range findRangeBounds(CategoryDataset dataset) { return findRangeBounds(dataset, true); } StatisticalLineAndShapeRenderer();  StatisticalLineAndShapeRenderer(boolean linesVisible,
                                           boolean shapesVisible); }
StatisticalLineAndShapeRenderer extends LineAndShapeRenderer implements Cloneable, PublicCloneable, Serializable { @Override public Range findRangeBounds(CategoryDataset dataset) { return findRangeBounds(dataset, true); } StatisticalLineAndShapeRenderer();  StatisticalLineAndShapeRenderer(boolean linesVisible,
                                           boolean shapesVisible); Paint getErrorIndicatorPaint(); void setErrorIndicatorPaint(Paint paint); Stroke getErrorIndicatorStroke(); void setErrorIndicatorStroke(Stroke stroke); @Override Range findRangeBounds(CategoryDataset dataset); @Override void drawItem(Graphics2D g2,
                         CategoryItemRendererState state,
                         Rectangle2D dataArea,
                         CategoryPlot plot,
                         CategoryAxis domainAxis,
                         ValueAxis rangeAxis,
                         CategoryDataset dataset,
                         int row,
                         int column,
                         int pass); @Override boolean equals(Object obj); @Override int hashCode(); }
StatisticalLineAndShapeRenderer extends LineAndShapeRenderer implements Cloneable, PublicCloneable, Serializable { @Override public Range findRangeBounds(CategoryDataset dataset) { return findRangeBounds(dataset, true); } StatisticalLineAndShapeRenderer();  StatisticalLineAndShapeRenderer(boolean linesVisible,
                                           boolean shapesVisible); Paint getErrorIndicatorPaint(); void setErrorIndicatorPaint(Paint paint); Stroke getErrorIndicatorStroke(); void setErrorIndicatorStroke(Stroke stroke); @Override Range findRangeBounds(CategoryDataset dataset); @Override void drawItem(Graphics2D g2,
                         CategoryItemRendererState state,
                         Rectangle2D dataArea,
                         CategoryPlot plot,
                         CategoryAxis domainAxis,
                         ValueAxis rangeAxis,
                         CategoryDataset dataset,
                         int row,
                         int column,
                         int pass); @Override boolean equals(Object obj); @Override int hashCode();  }