@Test public void testEquals() { DefaultPolarItemRenderer r1 = new DefaultPolarItemRenderer(); DefaultPolarItemRenderer r2 = new DefaultPolarItemRenderer(); assertEquals(r1, r2); r1.setSeriesFilled(1, true); assertFalse(r1.equals(r2)); r2.setSeriesFilled(1, true); assertEquals(r1, r2); }
@Override public boolean equals(Object obj) { if (obj == null) { return false; } if (!(obj instanceof DefaultPolarItemRenderer)) { return false; } DefaultPolarItemRenderer that = (DefaultPolarItemRenderer) obj; if (!this.seriesFilled.equals(that.seriesFilled)) { return false; } if (this.drawOutlineWhenFilled != that.drawOutlineWhenFilled) { return false; } if (!ObjectUtilities.equal(this.fillComposite, that.fillComposite)) { return false; } if (this.useFillPaint != that.useFillPaint) { return false; } if (!ShapeUtilities.equal(this.legendLine, that.legendLine)) { return false; } if (this.shapesVisible != that.shapesVisible) { return false; } if (this.connectFirstAndLastPoint != that.connectFirstAndLastPoint) { return false; } if (!this.toolTipGeneratorList.equals(that.toolTipGeneratorList)) { return false; } if (!ObjectUtilities.equal(this.baseToolTipGenerator, that.baseToolTipGenerator)) { return false; } if (!ObjectUtilities.equal(this.urlGenerator, that.urlGenerator)) { return false; } if (!ObjectUtilities.equal(this.legendItemToolTipGenerator, that.legendItemToolTipGenerator)) { return false; } if (!ObjectUtilities.equal(this.legendItemURLGenerator, that.legendItemURLGenerator)) { return false; } return super.equals(obj); }
DefaultPolarItemRenderer extends AbstractRenderer implements PolarItemRenderer { @Override public boolean equals(Object obj) { if (obj == null) { return false; } if (!(obj instanceof DefaultPolarItemRenderer)) { return false; } DefaultPolarItemRenderer that = (DefaultPolarItemRenderer) obj; if (!this.seriesFilled.equals(that.seriesFilled)) { return false; } if (this.drawOutlineWhenFilled != that.drawOutlineWhenFilled) { return false; } if (!ObjectUtilities.equal(this.fillComposite, that.fillComposite)) { return false; } if (this.useFillPaint != that.useFillPaint) { return false; } if (!ShapeUtilities.equal(this.legendLine, that.legendLine)) { return false; } if (this.shapesVisible != that.shapesVisible) { return false; } if (this.connectFirstAndLastPoint != that.connectFirstAndLastPoint) { return false; } if (!this.toolTipGeneratorList.equals(that.toolTipGeneratorList)) { return false; } if (!ObjectUtilities.equal(this.baseToolTipGenerator, that.baseToolTipGenerator)) { return false; } if (!ObjectUtilities.equal(this.urlGenerator, that.urlGenerator)) { return false; } if (!ObjectUtilities.equal(this.legendItemToolTipGenerator, that.legendItemToolTipGenerator)) { return false; } if (!ObjectUtilities.equal(this.legendItemURLGenerator, that.legendItemURLGenerator)) { return false; } return super.equals(obj); } }
DefaultPolarItemRenderer extends AbstractRenderer implements PolarItemRenderer { @Override public boolean equals(Object obj) { if (obj == null) { return false; } if (!(obj instanceof DefaultPolarItemRenderer)) { return false; } DefaultPolarItemRenderer that = (DefaultPolarItemRenderer) obj; if (!this.seriesFilled.equals(that.seriesFilled)) { return false; } if (this.drawOutlineWhenFilled != that.drawOutlineWhenFilled) { return false; } if (!ObjectUtilities.equal(this.fillComposite, that.fillComposite)) { return false; } if (this.useFillPaint != that.useFillPaint) { return false; } if (!ShapeUtilities.equal(this.legendLine, that.legendLine)) { return false; } if (this.shapesVisible != that.shapesVisible) { return false; } if (this.connectFirstAndLastPoint != that.connectFirstAndLastPoint) { return false; } if (!this.toolTipGeneratorList.equals(that.toolTipGeneratorList)) { return false; } if (!ObjectUtilities.equal(this.baseToolTipGenerator, that.baseToolTipGenerator)) { return false; } if (!ObjectUtilities.equal(this.urlGenerator, that.urlGenerator)) { return false; } if (!ObjectUtilities.equal(this.legendItemToolTipGenerator, that.legendItemToolTipGenerator)) { return false; } if (!ObjectUtilities.equal(this.legendItemURLGenerator, that.legendItemURLGenerator)) { return false; } return super.equals(obj); } DefaultPolarItemRenderer(); }
DefaultPolarItemRenderer extends AbstractRenderer implements PolarItemRenderer { @Override public boolean equals(Object obj) { if (obj == null) { return false; } if (!(obj instanceof DefaultPolarItemRenderer)) { return false; } DefaultPolarItemRenderer that = (DefaultPolarItemRenderer) obj; if (!this.seriesFilled.equals(that.seriesFilled)) { return false; } if (this.drawOutlineWhenFilled != that.drawOutlineWhenFilled) { return false; } if (!ObjectUtilities.equal(this.fillComposite, that.fillComposite)) { return false; } if (this.useFillPaint != that.useFillPaint) { return false; } if (!ShapeUtilities.equal(this.legendLine, that.legendLine)) { return false; } if (this.shapesVisible != that.shapesVisible) { return false; } if (this.connectFirstAndLastPoint != that.connectFirstAndLastPoint) { return false; } if (!this.toolTipGeneratorList.equals(that.toolTipGeneratorList)) { return false; } if (!ObjectUtilities.equal(this.baseToolTipGenerator, that.baseToolTipGenerator)) { return false; } if (!ObjectUtilities.equal(this.urlGenerator, that.urlGenerator)) { return false; } if (!ObjectUtilities.equal(this.legendItemToolTipGenerator, that.legendItemToolTipGenerator)) { return false; } if (!ObjectUtilities.equal(this.legendItemURLGenerator, that.legendItemURLGenerator)) { return false; } return super.equals(obj); } DefaultPolarItemRenderer(); @Override void setPlot(PolarPlot plot); @Override PolarPlot getPlot(); boolean getDrawOutlineWhenFilled(); void setDrawOutlineWhenFilled(boolean drawOutlineWhenFilled); Composite getFillComposite(); void setFillComposite(Composite composite); boolean getShapesVisible(); void setShapesVisible(boolean visible); boolean getConnectFirstAndLastPoint(); void setConnectFirstAndLastPoint(boolean connect); @Override DrawingSupplier getDrawingSupplier(); boolean isSeriesFilled(int series); void setSeriesFilled(int series, boolean filled); boolean getUseFillPaint(); void setUseFillPaint(boolean flag); Shape getLegendLine(); void setLegendLine(Shape line); @Override void drawSeries(Graphics2D g2, Rectangle2D dataArea,
            PlotRenderingInfo info, PolarPlot plot, XYDataset dataset,
            int seriesIndex); @Override void drawAngularGridLines(Graphics2D g2, PolarPlot plot,
                List<ValueTick> ticks, Rectangle2D dataArea); @Override void drawRadialGridLines(Graphics2D g2, PolarPlot plot,
            ValueAxis radialAxis, List<ValueTick> ticks, Rectangle2D dataArea); @Override LegendItem getLegendItem(int series); @Override XYToolTipGenerator getToolTipGenerator(int series, int item); @Override XYToolTipGenerator getSeriesToolTipGenerator(int series); @Override void setSeriesToolTipGenerator(int series,
            XYToolTipGenerator generator); @Override XYToolTipGenerator getBaseToolTipGenerator(); @Override void setBaseToolTipGenerator(XYToolTipGenerator generator); @Override XYURLGenerator getURLGenerator(); @Override void setURLGenerator(XYURLGenerator urlGenerator); XYSeriesLabelGenerator getLegendItemToolTipGenerator(); void setLegendItemToolTipGenerator(
            XYSeriesLabelGenerator generator); XYSeriesLabelGenerator getLegendItemURLGenerator(); void setLegendItemURLGenerator(XYSeriesLabelGenerator generator); @Override boolean equals(Object obj); @Override Object clone(); }
DefaultPolarItemRenderer extends AbstractRenderer implements PolarItemRenderer { @Override public boolean equals(Object obj) { if (obj == null) { return false; } if (!(obj instanceof DefaultPolarItemRenderer)) { return false; } DefaultPolarItemRenderer that = (DefaultPolarItemRenderer) obj; if (!this.seriesFilled.equals(that.seriesFilled)) { return false; } if (this.drawOutlineWhenFilled != that.drawOutlineWhenFilled) { return false; } if (!ObjectUtilities.equal(this.fillComposite, that.fillComposite)) { return false; } if (this.useFillPaint != that.useFillPaint) { return false; } if (!ShapeUtilities.equal(this.legendLine, that.legendLine)) { return false; } if (this.shapesVisible != that.shapesVisible) { return false; } if (this.connectFirstAndLastPoint != that.connectFirstAndLastPoint) { return false; } if (!this.toolTipGeneratorList.equals(that.toolTipGeneratorList)) { return false; } if (!ObjectUtilities.equal(this.baseToolTipGenerator, that.baseToolTipGenerator)) { return false; } if (!ObjectUtilities.equal(this.urlGenerator, that.urlGenerator)) { return false; } if (!ObjectUtilities.equal(this.legendItemToolTipGenerator, that.legendItemToolTipGenerator)) { return false; } if (!ObjectUtilities.equal(this.legendItemURLGenerator, that.legendItemURLGenerator)) { return false; } return super.equals(obj); } DefaultPolarItemRenderer(); @Override void setPlot(PolarPlot plot); @Override PolarPlot getPlot(); boolean getDrawOutlineWhenFilled(); void setDrawOutlineWhenFilled(boolean drawOutlineWhenFilled); Composite getFillComposite(); void setFillComposite(Composite composite); boolean getShapesVisible(); void setShapesVisible(boolean visible); boolean getConnectFirstAndLastPoint(); void setConnectFirstAndLastPoint(boolean connect); @Override DrawingSupplier getDrawingSupplier(); boolean isSeriesFilled(int series); void setSeriesFilled(int series, boolean filled); boolean getUseFillPaint(); void setUseFillPaint(boolean flag); Shape getLegendLine(); void setLegendLine(Shape line); @Override void drawSeries(Graphics2D g2, Rectangle2D dataArea,
            PlotRenderingInfo info, PolarPlot plot, XYDataset dataset,
            int seriesIndex); @Override void drawAngularGridLines(Graphics2D g2, PolarPlot plot,
                List<ValueTick> ticks, Rectangle2D dataArea); @Override void drawRadialGridLines(Graphics2D g2, PolarPlot plot,
            ValueAxis radialAxis, List<ValueTick> ticks, Rectangle2D dataArea); @Override LegendItem getLegendItem(int series); @Override XYToolTipGenerator getToolTipGenerator(int series, int item); @Override XYToolTipGenerator getSeriesToolTipGenerator(int series); @Override void setSeriesToolTipGenerator(int series,
            XYToolTipGenerator generator); @Override XYToolTipGenerator getBaseToolTipGenerator(); @Override void setBaseToolTipGenerator(XYToolTipGenerator generator); @Override XYURLGenerator getURLGenerator(); @Override void setURLGenerator(XYURLGenerator urlGenerator); XYSeriesLabelGenerator getLegendItemToolTipGenerator(); void setLegendItemToolTipGenerator(
            XYSeriesLabelGenerator generator); XYSeriesLabelGenerator getLegendItemURLGenerator(); void setLegendItemURLGenerator(XYSeriesLabelGenerator generator); @Override boolean equals(Object obj); @Override Object clone();  }