@Test public void testEquals() { BarRenderer r1 = new BarRenderer(); BarRenderer r2 = new BarRenderer(); assertEquals(r1, r2); r1.setSeriesToolTipGenerator(1, new StandardCategoryToolTipGenerator()); assertFalse(r1.equals(r2)); r2.setSeriesToolTipGenerator(1, new StandardCategoryToolTipGenerator()); assertEquals(r1, r2); r1.setDefaultToolTipGenerator(new StandardCategoryToolTipGenerator("{2}", NumberFormat.getInstance())); assertFalse(r1.equals(r2)); r2.setDefaultToolTipGenerator(new StandardCategoryToolTipGenerator("{2}", NumberFormat.getInstance())); assertEquals(r1, r2); r1.setSeriesItemLabelGenerator(1, new StandardCategoryItemLabelGenerator()); assertFalse(r1.equals(r2)); r2.setSeriesItemLabelGenerator(1, new StandardCategoryItemLabelGenerator()); assertEquals(r1, r2); r1.setDefaultItemLabelGenerator(new StandardCategoryItemLabelGenerator( "{2}", NumberFormat.getInstance())); assertFalse(r1.equals(r2)); r2.setDefaultItemLabelGenerator(new StandardCategoryItemLabelGenerator( "{2}", NumberFormat.getInstance())); assertEquals(r1, r2); r1.setSeriesItemURLGenerator(1, new StandardCategoryURLGenerator()); assertFalse(r1.equals(r2)); r2.setSeriesItemURLGenerator(1, new StandardCategoryURLGenerator()); assertEquals(r1, r2); r1.setDefaultItemURLGenerator(new StandardCategoryURLGenerator( "abc.html")); assertFalse(r1.equals(r2)); r2.setDefaultItemURLGenerator(new StandardCategoryURLGenerator( "abc.html")); assertEquals(r1, r2); r1.setLegendItemLabelGenerator(new StandardCategorySeriesLabelGenerator( "XYZ")); assertFalse(r1.equals(r2)); r2.setLegendItemLabelGenerator(new StandardCategorySeriesLabelGenerator( "XYZ")); assertEquals(r1, r2); r1.setLegendItemToolTipGenerator( new StandardCategorySeriesLabelGenerator("ToolTip")); assertFalse(r1.equals(r2)); r2.setLegendItemToolTipGenerator( new StandardCategorySeriesLabelGenerator("ToolTip")); assertEquals(r1, r2); r1.setLegendItemURLGenerator( new StandardCategorySeriesLabelGenerator("URL")); assertFalse(r1.equals(r2)); r2.setLegendItemURLGenerator( new StandardCategorySeriesLabelGenerator("URL")); assertEquals(r1, r2); }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof AbstractCategoryItemRenderer)) { return false; } AbstractCategoryItemRenderer that = (AbstractCategoryItemRenderer) obj; if (!ObjectUtilities.equal(this.itemLabelGeneratorList, that.itemLabelGeneratorList)) { return false; } if (!ObjectUtilities.equal(this.defaultItemLabelGenerator, that.defaultItemLabelGenerator)) { return false; } if (!ObjectUtilities.equal(this.toolTipGeneratorList, that.toolTipGeneratorList)) { return false; } if (!ObjectUtilities.equal(this.defaultToolTipGenerator, that.defaultToolTipGenerator)) { return false; } if (!ObjectUtilities.equal(this.itemURLGeneratorList, that.itemURLGeneratorList)) { return false; } if (!ObjectUtilities.equal(this.defaultItemURLGenerator, that.defaultItemURLGenerator)) { return false; } if (!ObjectUtilities.equal(this.legendItemLabelGenerator, that.legendItemLabelGenerator)) { return false; } if (!ObjectUtilities.equal(this.legendItemToolTipGenerator, that.legendItemToolTipGenerator)) { return false; } if (!ObjectUtilities.equal(this.legendItemURLGenerator, that.legendItemURLGenerator)) { return false; } return super.equals(obj); }
AbstractCategoryItemRenderer extends AbstractRenderer implements CategoryItemRenderer, Cloneable, PublicCloneable,
        Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof AbstractCategoryItemRenderer)) { return false; } AbstractCategoryItemRenderer that = (AbstractCategoryItemRenderer) obj; if (!ObjectUtilities.equal(this.itemLabelGeneratorList, that.itemLabelGeneratorList)) { return false; } if (!ObjectUtilities.equal(this.defaultItemLabelGenerator, that.defaultItemLabelGenerator)) { return false; } if (!ObjectUtilities.equal(this.toolTipGeneratorList, that.toolTipGeneratorList)) { return false; } if (!ObjectUtilities.equal(this.defaultToolTipGenerator, that.defaultToolTipGenerator)) { return false; } if (!ObjectUtilities.equal(this.itemURLGeneratorList, that.itemURLGeneratorList)) { return false; } if (!ObjectUtilities.equal(this.defaultItemURLGenerator, that.defaultItemURLGenerator)) { return false; } if (!ObjectUtilities.equal(this.legendItemLabelGenerator, that.legendItemLabelGenerator)) { return false; } if (!ObjectUtilities.equal(this.legendItemToolTipGenerator, that.legendItemToolTipGenerator)) { return false; } if (!ObjectUtilities.equal(this.legendItemURLGenerator, that.legendItemURLGenerator)) { return false; } return super.equals(obj); } }
AbstractCategoryItemRenderer extends AbstractRenderer implements CategoryItemRenderer, Cloneable, PublicCloneable,
        Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof AbstractCategoryItemRenderer)) { return false; } AbstractCategoryItemRenderer that = (AbstractCategoryItemRenderer) obj; if (!ObjectUtilities.equal(this.itemLabelGeneratorList, that.itemLabelGeneratorList)) { return false; } if (!ObjectUtilities.equal(this.defaultItemLabelGenerator, that.defaultItemLabelGenerator)) { return false; } if (!ObjectUtilities.equal(this.toolTipGeneratorList, that.toolTipGeneratorList)) { return false; } if (!ObjectUtilities.equal(this.defaultToolTipGenerator, that.defaultToolTipGenerator)) { return false; } if (!ObjectUtilities.equal(this.itemURLGeneratorList, that.itemURLGeneratorList)) { return false; } if (!ObjectUtilities.equal(this.defaultItemURLGenerator, that.defaultItemURLGenerator)) { return false; } if (!ObjectUtilities.equal(this.legendItemLabelGenerator, that.legendItemLabelGenerator)) { return false; } if (!ObjectUtilities.equal(this.legendItemToolTipGenerator, that.legendItemToolTipGenerator)) { return false; } if (!ObjectUtilities.equal(this.legendItemURLGenerator, that.legendItemURLGenerator)) { return false; } return super.equals(obj); } protected  AbstractCategoryItemRenderer(); }
AbstractCategoryItemRenderer extends AbstractRenderer implements CategoryItemRenderer, Cloneable, PublicCloneable,
        Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof AbstractCategoryItemRenderer)) { return false; } AbstractCategoryItemRenderer that = (AbstractCategoryItemRenderer) obj; if (!ObjectUtilities.equal(this.itemLabelGeneratorList, that.itemLabelGeneratorList)) { return false; } if (!ObjectUtilities.equal(this.defaultItemLabelGenerator, that.defaultItemLabelGenerator)) { return false; } if (!ObjectUtilities.equal(this.toolTipGeneratorList, that.toolTipGeneratorList)) { return false; } if (!ObjectUtilities.equal(this.defaultToolTipGenerator, that.defaultToolTipGenerator)) { return false; } if (!ObjectUtilities.equal(this.itemURLGeneratorList, that.itemURLGeneratorList)) { return false; } if (!ObjectUtilities.equal(this.defaultItemURLGenerator, that.defaultItemURLGenerator)) { return false; } if (!ObjectUtilities.equal(this.legendItemLabelGenerator, that.legendItemLabelGenerator)) { return false; } if (!ObjectUtilities.equal(this.legendItemToolTipGenerator, that.legendItemToolTipGenerator)) { return false; } if (!ObjectUtilities.equal(this.legendItemURLGenerator, that.legendItemURLGenerator)) { return false; } return super.equals(obj); } protected  AbstractCategoryItemRenderer(); @Override int getPassCount(); @Override CategoryPlot getPlot(); @Override void setPlot(CategoryPlot plot); @Override CategoryItemLabelGenerator getItemLabelGenerator(int row,
            int column); @Override CategoryItemLabelGenerator getSeriesItemLabelGenerator(int series); @Override void setSeriesItemLabelGenerator(int series,
            CategoryItemLabelGenerator generator); @Override void setSeriesItemLabelGenerator(int series,
                CategoryItemLabelGenerator generator, boolean notify); @Override CategoryItemLabelGenerator getDefaultItemLabelGenerator(); @Override void setDefaultItemLabelGenerator(
            CategoryItemLabelGenerator generator); @Override void setDefaultItemLabelGenerator(
            CategoryItemLabelGenerator generator, boolean notify); @Override CategoryToolTipGenerator getToolTipGenerator(int row, int column); @Override CategoryToolTipGenerator getSeriesToolTipGenerator(int series); @Override void setSeriesToolTipGenerator(int series,
                                          CategoryToolTipGenerator generator); @Override void setSeriesToolTipGenerator(int series,
                CategoryToolTipGenerator generator, boolean notify); @Override CategoryToolTipGenerator getDefaultToolTipGenerator(); @Override void setDefaultToolTipGenerator(CategoryToolTipGenerator generator); @Override void setDefaultToolTipGenerator(CategoryToolTipGenerator generator,
            boolean notify); @Override CategoryURLGenerator getItemURLGenerator(int row, int column); @Override CategoryURLGenerator getSeriesItemURLGenerator(int series); @Override void setSeriesItemURLGenerator(int series,
                                          CategoryURLGenerator generator); @Override void setSeriesItemURLGenerator(int series,
                CategoryURLGenerator generator, boolean notify); @Override CategoryURLGenerator getDefaultItemURLGenerator(); @Override void setDefaultItemURLGenerator(CategoryURLGenerator generator); @Override void setDefaultItemURLGenerator(CategoryURLGenerator generator,
            boolean notify); int getRowCount(); int getColumnCount(); @Override CategoryItemRendererState initialise(Graphics2D g2,
            Rectangle2D dataArea, CategoryPlot plot, int rendererIndex,
            PlotRenderingInfo info); @Override Range findRangeBounds(CategoryDataset dataset); @Override double getItemMiddle(Comparable rowKey, Comparable columnKey,
            CategoryDataset dataset, CategoryAxis axis, Rectangle2D area,
            RectangleEdge edge); @Override void drawBackground(Graphics2D g2, CategoryPlot plot,
                               Rectangle2D dataArea); @Override void drawOutline(Graphics2D g2, CategoryPlot plot,
                            Rectangle2D dataArea); @Override void drawDomainGridline(Graphics2D g2, CategoryPlot plot,
            Rectangle2D dataArea, double value); @Override void drawRangeGridline(Graphics2D g2, CategoryPlot plot,
            ValueAxis axis, Rectangle2D dataArea, double value); void drawRangeGridline(Graphics2D g2, CategoryPlot plot, ValueAxis axis,
            Rectangle2D dataArea, double value, Paint paint, Stroke stroke); @Override void drawDomainMarker(Graphics2D g2, CategoryPlot plot,
            CategoryAxis axis, CategoryMarker marker, Rectangle2D dataArea); @Override void drawRangeMarker(Graphics2D g2, CategoryPlot plot,
            ValueAxis axis, Marker marker, Rectangle2D dataArea); @Override LegendItem getLegendItem(int datasetIndex, int series); @Override boolean equals(Object obj); @Override int hashCode(); @Override DrawingSupplier getDrawingSupplier(); @Override Object clone(); @Override List<LegendItem> getLegendItems(); CategorySeriesLabelGenerator getLegendItemLabelGenerator(); void setLegendItemLabelGenerator(
            CategorySeriesLabelGenerator generator); CategorySeriesLabelGenerator getLegendItemToolTipGenerator(); void setLegendItemToolTipGenerator(
            CategorySeriesLabelGenerator generator); CategorySeriesLabelGenerator getLegendItemURLGenerator(); void setLegendItemURLGenerator(
            CategorySeriesLabelGenerator generator); }
AbstractCategoryItemRenderer extends AbstractRenderer implements CategoryItemRenderer, Cloneable, PublicCloneable,
        Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof AbstractCategoryItemRenderer)) { return false; } AbstractCategoryItemRenderer that = (AbstractCategoryItemRenderer) obj; if (!ObjectUtilities.equal(this.itemLabelGeneratorList, that.itemLabelGeneratorList)) { return false; } if (!ObjectUtilities.equal(this.defaultItemLabelGenerator, that.defaultItemLabelGenerator)) { return false; } if (!ObjectUtilities.equal(this.toolTipGeneratorList, that.toolTipGeneratorList)) { return false; } if (!ObjectUtilities.equal(this.defaultToolTipGenerator, that.defaultToolTipGenerator)) { return false; } if (!ObjectUtilities.equal(this.itemURLGeneratorList, that.itemURLGeneratorList)) { return false; } if (!ObjectUtilities.equal(this.defaultItemURLGenerator, that.defaultItemURLGenerator)) { return false; } if (!ObjectUtilities.equal(this.legendItemLabelGenerator, that.legendItemLabelGenerator)) { return false; } if (!ObjectUtilities.equal(this.legendItemToolTipGenerator, that.legendItemToolTipGenerator)) { return false; } if (!ObjectUtilities.equal(this.legendItemURLGenerator, that.legendItemURLGenerator)) { return false; } return super.equals(obj); } protected  AbstractCategoryItemRenderer(); @Override int getPassCount(); @Override CategoryPlot getPlot(); @Override void setPlot(CategoryPlot plot); @Override CategoryItemLabelGenerator getItemLabelGenerator(int row,
            int column); @Override CategoryItemLabelGenerator getSeriesItemLabelGenerator(int series); @Override void setSeriesItemLabelGenerator(int series,
            CategoryItemLabelGenerator generator); @Override void setSeriesItemLabelGenerator(int series,
                CategoryItemLabelGenerator generator, boolean notify); @Override CategoryItemLabelGenerator getDefaultItemLabelGenerator(); @Override void setDefaultItemLabelGenerator(
            CategoryItemLabelGenerator generator); @Override void setDefaultItemLabelGenerator(
            CategoryItemLabelGenerator generator, boolean notify); @Override CategoryToolTipGenerator getToolTipGenerator(int row, int column); @Override CategoryToolTipGenerator getSeriesToolTipGenerator(int series); @Override void setSeriesToolTipGenerator(int series,
                                          CategoryToolTipGenerator generator); @Override void setSeriesToolTipGenerator(int series,
                CategoryToolTipGenerator generator, boolean notify); @Override CategoryToolTipGenerator getDefaultToolTipGenerator(); @Override void setDefaultToolTipGenerator(CategoryToolTipGenerator generator); @Override void setDefaultToolTipGenerator(CategoryToolTipGenerator generator,
            boolean notify); @Override CategoryURLGenerator getItemURLGenerator(int row, int column); @Override CategoryURLGenerator getSeriesItemURLGenerator(int series); @Override void setSeriesItemURLGenerator(int series,
                                          CategoryURLGenerator generator); @Override void setSeriesItemURLGenerator(int series,
                CategoryURLGenerator generator, boolean notify); @Override CategoryURLGenerator getDefaultItemURLGenerator(); @Override void setDefaultItemURLGenerator(CategoryURLGenerator generator); @Override void setDefaultItemURLGenerator(CategoryURLGenerator generator,
            boolean notify); int getRowCount(); int getColumnCount(); @Override CategoryItemRendererState initialise(Graphics2D g2,
            Rectangle2D dataArea, CategoryPlot plot, int rendererIndex,
            PlotRenderingInfo info); @Override Range findRangeBounds(CategoryDataset dataset); @Override double getItemMiddle(Comparable rowKey, Comparable columnKey,
            CategoryDataset dataset, CategoryAxis axis, Rectangle2D area,
            RectangleEdge edge); @Override void drawBackground(Graphics2D g2, CategoryPlot plot,
                               Rectangle2D dataArea); @Override void drawOutline(Graphics2D g2, CategoryPlot plot,
                            Rectangle2D dataArea); @Override void drawDomainGridline(Graphics2D g2, CategoryPlot plot,
            Rectangle2D dataArea, double value); @Override void drawRangeGridline(Graphics2D g2, CategoryPlot plot,
            ValueAxis axis, Rectangle2D dataArea, double value); void drawRangeGridline(Graphics2D g2, CategoryPlot plot, ValueAxis axis,
            Rectangle2D dataArea, double value, Paint paint, Stroke stroke); @Override void drawDomainMarker(Graphics2D g2, CategoryPlot plot,
            CategoryAxis axis, CategoryMarker marker, Rectangle2D dataArea); @Override void drawRangeMarker(Graphics2D g2, CategoryPlot plot,
            ValueAxis axis, Marker marker, Rectangle2D dataArea); @Override LegendItem getLegendItem(int datasetIndex, int series); @Override boolean equals(Object obj); @Override int hashCode(); @Override DrawingSupplier getDrawingSupplier(); @Override Object clone(); @Override List<LegendItem> getLegendItems(); CategorySeriesLabelGenerator getLegendItemLabelGenerator(); void setLegendItemLabelGenerator(
            CategorySeriesLabelGenerator generator); CategorySeriesLabelGenerator getLegendItemToolTipGenerator(); void setLegendItemToolTipGenerator(
            CategorySeriesLabelGenerator generator); CategorySeriesLabelGenerator getLegendItemURLGenerator(); void setLegendItemURLGenerator(
            CategorySeriesLabelGenerator generator);  }