@Test public void testEquals() { StackedXYAreaRenderer2 r1 = new StackedXYAreaRenderer2(); StackedXYAreaRenderer2 r2 = new StackedXYAreaRenderer2(); assertEquals(r1, r2); assertEquals(r2, r1); r1.setRoundXCoordinates(!r1.getRoundXCoordinates()); assertFalse(r1.equals(r2)); r2.setRoundXCoordinates(r1.getRoundXCoordinates()); assertEquals(r1, r2); }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof StackedXYAreaRenderer2)) { return false; } StackedXYAreaRenderer2 that = (StackedXYAreaRenderer2) obj; if (this.roundXCoordinates != that.roundXCoordinates) { return false; } return super.equals(obj); }
StackedXYAreaRenderer2 extends XYAreaRenderer2 implements Cloneable, PublicCloneable, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof StackedXYAreaRenderer2)) { return false; } StackedXYAreaRenderer2 that = (StackedXYAreaRenderer2) obj; if (this.roundXCoordinates != that.roundXCoordinates) { return false; } return super.equals(obj); } }
StackedXYAreaRenderer2 extends XYAreaRenderer2 implements Cloneable, PublicCloneable, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof StackedXYAreaRenderer2)) { return false; } StackedXYAreaRenderer2 that = (StackedXYAreaRenderer2) obj; if (this.roundXCoordinates != that.roundXCoordinates) { return false; } return super.equals(obj); } StackedXYAreaRenderer2();  StackedXYAreaRenderer2(XYToolTipGenerator labelGenerator,
                                  XYURLGenerator urlGenerator); }
StackedXYAreaRenderer2 extends XYAreaRenderer2 implements Cloneable, PublicCloneable, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof StackedXYAreaRenderer2)) { return false; } StackedXYAreaRenderer2 that = (StackedXYAreaRenderer2) obj; if (this.roundXCoordinates != that.roundXCoordinates) { return false; } return super.equals(obj); } StackedXYAreaRenderer2();  StackedXYAreaRenderer2(XYToolTipGenerator labelGenerator,
                                  XYURLGenerator urlGenerator); boolean getRoundXCoordinates(); void setRoundXCoordinates(boolean round); @Override Range findRangeBounds(XYDataset dataset); @Override int getPassCount(); @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 boolean equals(Object obj); @Override Object clone(); }
StackedXYAreaRenderer2 extends XYAreaRenderer2 implements Cloneable, PublicCloneable, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof StackedXYAreaRenderer2)) { return false; } StackedXYAreaRenderer2 that = (StackedXYAreaRenderer2) obj; if (this.roundXCoordinates != that.roundXCoordinates) { return false; } return super.equals(obj); } StackedXYAreaRenderer2();  StackedXYAreaRenderer2(XYToolTipGenerator labelGenerator,
                                  XYURLGenerator urlGenerator); boolean getRoundXCoordinates(); void setRoundXCoordinates(boolean round); @Override Range findRangeBounds(XYDataset dataset); @Override int getPassCount(); @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 boolean equals(Object obj); @Override Object clone();  }