/** * Tests this renderer for equality with an arbitrary object. * * @param obj the object (<code>null</code> permitted). * * @return A boolean. */ public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof StackedBarRenderer3D)) { return false; } StackedBarRenderer3D that = (StackedBarRenderer3D) obj; if (this.renderAsPercentages != that.getRenderAsPercentages()) { return false; } if (this.ignoreZeroValues != that.ignoreZeroValues) { return false; } return super.equals(obj); }