@Test public void testEquals() { BarRenderer3D r1 = new BarRenderer3D(1.0, 2.0); BarRenderer3D r2 = new BarRenderer3D(1.0, 2.0); assertEquals(r1, r2); r1 = new BarRenderer3D(1.1, 2.0); assertFalse(r1.equals(r2)); r2 = new BarRenderer3D(1.1, 2.0); assertEquals(r1, r2); r1 = new BarRenderer3D(1.1, 2.2); assertFalse(r1.equals(r2)); r2 = new BarRenderer3D(1.1, 2.2); assertEquals(r1, r2); r1.setWallPaint(new GradientPaint(1.0f, 2.0f, Color.RED, 4.0f, 3.0f, Color.BLUE)); assertFalse(r1.equals(r2)); r2.setWallPaint(new GradientPaint(1.0f, 2.0f, Color.RED, 4.0f, 3.0f, Color.BLUE)); assertEquals(r1, r2); }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof BarRenderer3D)) { return false; } BarRenderer3D that = (BarRenderer3D) obj; if (this.xOffset != that.xOffset) { return false; } if (this.yOffset != that.yOffset) { return false; } if (!PaintUtilities.equal(this.wallPaint, that.wallPaint)) { return false; } return super.equals(obj); }
BarRenderer3D extends BarRenderer implements Effect3D, Cloneable, PublicCloneable, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof BarRenderer3D)) { return false; } BarRenderer3D that = (BarRenderer3D) obj; if (this.xOffset != that.xOffset) { return false; } if (this.yOffset != that.yOffset) { return false; } if (!PaintUtilities.equal(this.wallPaint, that.wallPaint)) { return false; } return super.equals(obj); } }
BarRenderer3D extends BarRenderer implements Effect3D, Cloneable, PublicCloneable, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof BarRenderer3D)) { return false; } BarRenderer3D that = (BarRenderer3D) obj; if (this.xOffset != that.xOffset) { return false; } if (this.yOffset != that.yOffset) { return false; } if (!PaintUtilities.equal(this.wallPaint, that.wallPaint)) { return false; } return super.equals(obj); } BarRenderer3D();  BarRenderer3D(double xOffset, double yOffset); }
BarRenderer3D extends BarRenderer implements Effect3D, Cloneable, PublicCloneable, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof BarRenderer3D)) { return false; } BarRenderer3D that = (BarRenderer3D) obj; if (this.xOffset != that.xOffset) { return false; } if (this.yOffset != that.yOffset) { return false; } if (!PaintUtilities.equal(this.wallPaint, that.wallPaint)) { return false; } return super.equals(obj); } BarRenderer3D();  BarRenderer3D(double xOffset, double yOffset); @Override double getXOffset(); @Override double getYOffset(); Paint getWallPaint(); void setWallPaint(Paint paint); @Override CategoryItemRendererState initialise(Graphics2D g2,
                                                Rectangle2D dataArea,
                                                CategoryPlot plot,
                                                int rendererIndex,
                                                PlotRenderingInfo info); @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); @Override void drawRangeGridline(Graphics2D g2, CategoryPlot plot, ValueAxis axis,
            Rectangle2D dataArea, double value, Paint paint, Stroke stroke); @Override void drawRangeMarker(Graphics2D g2, CategoryPlot plot, 
            ValueAxis axis, Marker marker, Rectangle2D dataArea); @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); }
BarRenderer3D extends BarRenderer implements Effect3D, Cloneable, PublicCloneable, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof BarRenderer3D)) { return false; } BarRenderer3D that = (BarRenderer3D) obj; if (this.xOffset != that.xOffset) { return false; } if (this.yOffset != that.yOffset) { return false; } if (!PaintUtilities.equal(this.wallPaint, that.wallPaint)) { return false; } return super.equals(obj); } BarRenderer3D();  BarRenderer3D(double xOffset, double yOffset); @Override double getXOffset(); @Override double getYOffset(); Paint getWallPaint(); void setWallPaint(Paint paint); @Override CategoryItemRendererState initialise(Graphics2D g2,
                                                Rectangle2D dataArea,
                                                CategoryPlot plot,
                                                int rendererIndex,
                                                PlotRenderingInfo info); @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); @Override void drawRangeGridline(Graphics2D g2, CategoryPlot plot, ValueAxis axis,
            Rectangle2D dataArea, double value, Paint paint, Stroke stroke); @Override void drawRangeMarker(Graphics2D g2, CategoryPlot plot, 
            ValueAxis axis, Marker marker, Rectangle2D dataArea); @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); static final double DEFAULT_X_OFFSET; static final double DEFAULT_Y_OFFSET; static final Paint DEFAULT_WALL_PAINT; }