@Test public void testFindDomainBounds2() { XYIntervalSeries s1 = new XYIntervalSeries("S1"); s1.add(1.0, 0.5, 1.5, 10.0, 9.5, 10.5); s1.add(2.0, 1.9, 2.1, 20.0, 19.8, 20.3); XYIntervalSeries s2 = new XYIntervalSeries("S2"); s2.add(3.0, 2.5, 3.5, 30.0, 29.5, 30.5); s2.add(4.0, 3.9, 4.1, 9.0, 9.0, 9.0); XYIntervalSeriesCollection dataset = new XYIntervalSeriesCollection(); dataset.addSeries(s1); dataset.addSeries(s2); XYBarRenderer renderer = new XYBarRenderer(); Range r = renderer.findDomainBounds(dataset); assertEquals(0.5, r.getLowerBound(), EPSILON); assertEquals(4.1, r.getUpperBound(), EPSILON); renderer.setSeriesVisible(1, Boolean.FALSE); r = renderer.findDomainBounds(dataset); assertEquals(0.5, r.getLowerBound(), EPSILON); assertEquals(2.1, r.getUpperBound(), EPSILON); }
@Override public Range findDomainBounds(XYDataset dataset) { return findDomainBounds(dataset, true); }
XYBarRenderer extends AbstractXYItemRenderer implements XYItemRenderer, Cloneable, PublicCloneable, Serializable { @Override public Range findDomainBounds(XYDataset dataset) { return findDomainBounds(dataset, true); } }
XYBarRenderer extends AbstractXYItemRenderer implements XYItemRenderer, Cloneable, PublicCloneable, Serializable { @Override public Range findDomainBounds(XYDataset dataset) { return findDomainBounds(dataset, true); } XYBarRenderer();  XYBarRenderer(double margin); }
XYBarRenderer extends AbstractXYItemRenderer implements XYItemRenderer, Cloneable, PublicCloneable, Serializable { @Override public Range findDomainBounds(XYDataset dataset) { return findDomainBounds(dataset, true); } XYBarRenderer();  XYBarRenderer(double margin); static XYBarPainter getDefaultBarPainter(); static void setDefaultBarPainter(XYBarPainter painter); static boolean getDefaultShadowsVisible(); static void setDefaultShadowsVisible(boolean visible); double getBase(); void setBase(double base); boolean getUseYInterval(); void setUseYInterval(boolean use); double getMargin(); void setMargin(double margin); boolean isDrawBarOutline(); void setDrawBarOutline(boolean draw); GradientPaintTransformer getGradientPaintTransformer(); void setGradientPaintTransformer(
            GradientPaintTransformer transformer); ItemLabelPosition getPositiveItemLabelPositionFallback(); void setPositiveItemLabelPositionFallback(
            ItemLabelPosition position); ItemLabelPosition getNegativeItemLabelPositionFallback(); void setNegativeItemLabelPositionFallback(
            ItemLabelPosition position); XYBarPainter getBarPainter(); void setBarPainter(XYBarPainter painter); boolean getShadowsVisible(); void setShadowVisible(boolean visible); double getShadowXOffset(); void setShadowXOffset(double offset); double getShadowYOffset(); void setShadowYOffset(double offset); double getBarAlignmentFactor(); void setBarAlignmentFactor(double factor); @Override XYItemRendererState initialise(Graphics2D g2, Rectangle2D dataArea,
            XYPlot plot, XYDataset dataset, PlotRenderingInfo info); @Override LegendItem getLegendItem(int datasetIndex, int series); @Override void drawItem(Graphics2D g2,
                         XYItemRendererState state,
                         Rectangle2D dataArea,
                         PlotRenderingInfo info,
                         XYPlot plot,
                         ValueAxis domainAxis,
                         ValueAxis rangeAxis,
                         XYDataset dataset,
                         int series,
                         int item,
                         CrosshairState crosshairState,
                         int pass); @Override Range findDomainBounds(XYDataset dataset); @Override Range findRangeBounds(XYDataset dataset); @Override Object clone(); @Override boolean equals(Object obj); }
XYBarRenderer extends AbstractXYItemRenderer implements XYItemRenderer, Cloneable, PublicCloneable, Serializable { @Override public Range findDomainBounds(XYDataset dataset) { return findDomainBounds(dataset, true); } XYBarRenderer();  XYBarRenderer(double margin); static XYBarPainter getDefaultBarPainter(); static void setDefaultBarPainter(XYBarPainter painter); static boolean getDefaultShadowsVisible(); static void setDefaultShadowsVisible(boolean visible); double getBase(); void setBase(double base); boolean getUseYInterval(); void setUseYInterval(boolean use); double getMargin(); void setMargin(double margin); boolean isDrawBarOutline(); void setDrawBarOutline(boolean draw); GradientPaintTransformer getGradientPaintTransformer(); void setGradientPaintTransformer(
            GradientPaintTransformer transformer); ItemLabelPosition getPositiveItemLabelPositionFallback(); void setPositiveItemLabelPositionFallback(
            ItemLabelPosition position); ItemLabelPosition getNegativeItemLabelPositionFallback(); void setNegativeItemLabelPositionFallback(
            ItemLabelPosition position); XYBarPainter getBarPainter(); void setBarPainter(XYBarPainter painter); boolean getShadowsVisible(); void setShadowVisible(boolean visible); double getShadowXOffset(); void setShadowXOffset(double offset); double getShadowYOffset(); void setShadowYOffset(double offset); double getBarAlignmentFactor(); void setBarAlignmentFactor(double factor); @Override XYItemRendererState initialise(Graphics2D g2, Rectangle2D dataArea,
            XYPlot plot, XYDataset dataset, PlotRenderingInfo info); @Override LegendItem getLegendItem(int datasetIndex, int series); @Override void drawItem(Graphics2D g2,
                         XYItemRendererState state,
                         Rectangle2D dataArea,
                         PlotRenderingInfo info,
                         XYPlot plot,
                         ValueAxis domainAxis,
                         ValueAxis rangeAxis,
                         XYDataset dataset,
                         int series,
                         int item,
                         CrosshairState crosshairState,
                         int pass); @Override Range findDomainBounds(XYDataset dataset); @Override Range findRangeBounds(XYDataset dataset); @Override Object clone(); @Override boolean equals(Object obj);  }