@Test public void testEquals() { StandardXYItemRenderer r1 = new StandardXYItemRenderer(); StandardXYItemRenderer r2 = new StandardXYItemRenderer(); assertEquals(r1, r2); r1.setBaseShapesVisible(true); assertFalse(r1.equals(r2)); r2.setBaseShapesVisible(true); assertEquals(r1, r2); r1.setPlotLines(false); assertFalse(r1.equals(r2)); r2.setPlotLines(false); assertEquals(r1, r2); r1.setPlotImages(true); assertFalse(r1.equals(r2)); r2.setPlotImages(true); assertEquals(r1, r2); r1.setPlotDiscontinuous(true); assertFalse(r1.equals(r2)); r2.setPlotDiscontinuous(true); assertEquals(r1, r2); r1.setGapThresholdType(UnitType.ABSOLUTE); assertFalse(r1.equals(r2)); r2.setGapThresholdType(UnitType.ABSOLUTE); assertEquals(r1, r2); r1.setGapThreshold(1.23); assertFalse(r1.equals(r2)); r2.setGapThreshold(1.23); assertEquals(r1, r2); r1.setLegendLine(new Line2D.Double(1.0, 2.0, 3.0, 4.0)); assertFalse(r1.equals(r2)); r2.setLegendLine(new Line2D.Double(1.0, 2.0, 3.0, 4.0)); assertEquals(r1, r2); r1.setSeriesShapesFilled(1, Boolean.TRUE); assertFalse(r1.equals(r2)); r2.setSeriesShapesFilled(1, Boolean.TRUE); assertEquals(r1, r2); r1.setBaseShapesFilled(false); assertFalse(r1.equals(r2)); r2.setBaseShapesFilled(false); assertEquals(r1, r2); r1.setDrawSeriesLineAsPath(true); assertFalse(r1.equals(r2)); r2.setDrawSeriesLineAsPath(true); assertEquals(r1, r2); }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof StandardXYItemRenderer)) { return false; } StandardXYItemRenderer that = (StandardXYItemRenderer) obj; if (this.baseShapesVisible != that.baseShapesVisible) { return false; } if (this.plotLines != that.plotLines) { return false; } if (this.plotImages != that.plotImages) { return false; } if (this.plotDiscontinuous != that.plotDiscontinuous) { return false; } if (this.gapThresholdType != that.gapThresholdType) { return false; } if (this.gapThreshold != that.gapThreshold) { return false; } if (!this.seriesShapesFilled.equals(that.seriesShapesFilled)) { return false; } if (this.baseShapesFilled != that.baseShapesFilled) { return false; } if (this.drawSeriesLineAsPath != that.drawSeriesLineAsPath) { return false; } if (!ShapeUtilities.equal(this.legendLine, that.legendLine)) { return false; } return super.equals(obj); }
StandardXYItemRenderer extends AbstractXYItemRenderer implements XYItemRenderer, Cloneable, PublicCloneable, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof StandardXYItemRenderer)) { return false; } StandardXYItemRenderer that = (StandardXYItemRenderer) obj; if (this.baseShapesVisible != that.baseShapesVisible) { return false; } if (this.plotLines != that.plotLines) { return false; } if (this.plotImages != that.plotImages) { return false; } if (this.plotDiscontinuous != that.plotDiscontinuous) { return false; } if (this.gapThresholdType != that.gapThresholdType) { return false; } if (this.gapThreshold != that.gapThreshold) { return false; } if (!this.seriesShapesFilled.equals(that.seriesShapesFilled)) { return false; } if (this.baseShapesFilled != that.baseShapesFilled) { return false; } if (this.drawSeriesLineAsPath != that.drawSeriesLineAsPath) { return false; } if (!ShapeUtilities.equal(this.legendLine, that.legendLine)) { return false; } return super.equals(obj); } }
StandardXYItemRenderer extends AbstractXYItemRenderer implements XYItemRenderer, Cloneable, PublicCloneable, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof StandardXYItemRenderer)) { return false; } StandardXYItemRenderer that = (StandardXYItemRenderer) obj; if (this.baseShapesVisible != that.baseShapesVisible) { return false; } if (this.plotLines != that.plotLines) { return false; } if (this.plotImages != that.plotImages) { return false; } if (this.plotDiscontinuous != that.plotDiscontinuous) { return false; } if (this.gapThresholdType != that.gapThresholdType) { return false; } if (this.gapThreshold != that.gapThreshold) { return false; } if (!this.seriesShapesFilled.equals(that.seriesShapesFilled)) { return false; } if (this.baseShapesFilled != that.baseShapesFilled) { return false; } if (this.drawSeriesLineAsPath != that.drawSeriesLineAsPath) { return false; } if (!ShapeUtilities.equal(this.legendLine, that.legendLine)) { return false; } return super.equals(obj); } StandardXYItemRenderer();  StandardXYItemRenderer(int type);  StandardXYItemRenderer(int type,
                                  XYToolTipGenerator toolTipGenerator);  StandardXYItemRenderer(int type,
                                  XYToolTipGenerator toolTipGenerator,
                                  XYURLGenerator urlGenerator); }
StandardXYItemRenderer extends AbstractXYItemRenderer implements XYItemRenderer, Cloneable, PublicCloneable, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof StandardXYItemRenderer)) { return false; } StandardXYItemRenderer that = (StandardXYItemRenderer) obj; if (this.baseShapesVisible != that.baseShapesVisible) { return false; } if (this.plotLines != that.plotLines) { return false; } if (this.plotImages != that.plotImages) { return false; } if (this.plotDiscontinuous != that.plotDiscontinuous) { return false; } if (this.gapThresholdType != that.gapThresholdType) { return false; } if (this.gapThreshold != that.gapThreshold) { return false; } if (!this.seriesShapesFilled.equals(that.seriesShapesFilled)) { return false; } if (this.baseShapesFilled != that.baseShapesFilled) { return false; } if (this.drawSeriesLineAsPath != that.drawSeriesLineAsPath) { return false; } if (!ShapeUtilities.equal(this.legendLine, that.legendLine)) { return false; } return super.equals(obj); } StandardXYItemRenderer();  StandardXYItemRenderer(int type);  StandardXYItemRenderer(int type,
                                  XYToolTipGenerator toolTipGenerator);  StandardXYItemRenderer(int type,
                                  XYToolTipGenerator toolTipGenerator,
                                  XYURLGenerator urlGenerator); boolean getBaseShapesVisible(); void setBaseShapesVisible(boolean flag); boolean getItemShapeFilled(int series, int item); Boolean getSeriesShapesFilled(int series); void setSeriesShapesFilled(int series, Boolean flag); boolean getBaseShapesFilled(); void setBaseShapesFilled(boolean flag); boolean getPlotLines(); void setPlotLines(boolean flag); UnitType getGapThresholdType(); void setGapThresholdType(UnitType thresholdType); double getGapThreshold(); void setGapThreshold(double t); boolean getPlotImages(); void setPlotImages(boolean flag); boolean getPlotDiscontinuous(); void setPlotDiscontinuous(boolean flag); boolean getDrawSeriesLineAsPath(); void setDrawSeriesLineAsPath(boolean flag); Shape getLegendLine(); void setLegendLine(Shape line); @Override LegendItem getLegendItem(int datasetIndex, int series); @Override XYItemRendererState initialise(Graphics2D g2,
                                          Rectangle2D dataArea,
                                          XYPlot plot,
                                          XYDataset data,
                                          PlotRenderingInfo info); @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(); }
StandardXYItemRenderer extends AbstractXYItemRenderer implements XYItemRenderer, Cloneable, PublicCloneable, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof StandardXYItemRenderer)) { return false; } StandardXYItemRenderer that = (StandardXYItemRenderer) obj; if (this.baseShapesVisible != that.baseShapesVisible) { return false; } if (this.plotLines != that.plotLines) { return false; } if (this.plotImages != that.plotImages) { return false; } if (this.plotDiscontinuous != that.plotDiscontinuous) { return false; } if (this.gapThresholdType != that.gapThresholdType) { return false; } if (this.gapThreshold != that.gapThreshold) { return false; } if (!this.seriesShapesFilled.equals(that.seriesShapesFilled)) { return false; } if (this.baseShapesFilled != that.baseShapesFilled) { return false; } if (this.drawSeriesLineAsPath != that.drawSeriesLineAsPath) { return false; } if (!ShapeUtilities.equal(this.legendLine, that.legendLine)) { return false; } return super.equals(obj); } StandardXYItemRenderer();  StandardXYItemRenderer(int type);  StandardXYItemRenderer(int type,
                                  XYToolTipGenerator toolTipGenerator);  StandardXYItemRenderer(int type,
                                  XYToolTipGenerator toolTipGenerator,
                                  XYURLGenerator urlGenerator); boolean getBaseShapesVisible(); void setBaseShapesVisible(boolean flag); boolean getItemShapeFilled(int series, int item); Boolean getSeriesShapesFilled(int series); void setSeriesShapesFilled(int series, Boolean flag); boolean getBaseShapesFilled(); void setBaseShapesFilled(boolean flag); boolean getPlotLines(); void setPlotLines(boolean flag); UnitType getGapThresholdType(); void setGapThresholdType(UnitType thresholdType); double getGapThreshold(); void setGapThreshold(double t); boolean getPlotImages(); void setPlotImages(boolean flag); boolean getPlotDiscontinuous(); void setPlotDiscontinuous(boolean flag); boolean getDrawSeriesLineAsPath(); void setDrawSeriesLineAsPath(boolean flag); Shape getLegendLine(); void setLegendLine(Shape line); @Override LegendItem getLegendItem(int datasetIndex, int series); @Override XYItemRendererState initialise(Graphics2D g2,
                                          Rectangle2D dataArea,
                                          XYPlot plot,
                                          XYDataset data,
                                          PlotRenderingInfo info); @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(); static final int SHAPES; static final int LINES; static final int SHAPES_AND_LINES; static final int IMAGES; static final int DISCONTINUOUS; static final int DISCONTINUOUS_LINES; }