@Test public void testEquals() { SpiderWebPlot p1 = new SpiderWebPlot(new DefaultCategoryDataset()); SpiderWebPlot p2 = new SpiderWebPlot(new DefaultCategoryDataset()); assertEquals(p1, p2); assertEquals(p2, p1); p1.setDataExtractOrder(TableOrder.BY_COLUMN); assertFalse(p1.equals(p2)); p2.setDataExtractOrder(TableOrder.BY_COLUMN); assertEquals(p1, p2); p1.setHeadPercent(0.321); assertFalse(p1.equals(p2)); p2.setHeadPercent(0.321); assertEquals(p1, p2); p1.setInteriorGap(0.123); assertFalse(p1.equals(p2)); p2.setInteriorGap(0.123); assertEquals(p1, p2); p1.setStartAngle(0.456); assertFalse(p1.equals(p2)); p2.setStartAngle(0.456); assertEquals(p1, p2); p1.setDirection(Rotation.ANTICLOCKWISE); assertFalse(p1.equals(p2)); p2.setDirection(Rotation.ANTICLOCKWISE); assertEquals(p1, p2); p1.setMaxValue(123.4); assertFalse(p1.equals(p2)); p2.setMaxValue(123.4); assertEquals(p1, p2); p1.setLegendItemShape(new Rectangle(1, 2, 3, 4)); assertFalse(p1.equals(p2)); p2.setLegendItemShape(new Rectangle(1, 2, 3, 4)); assertEquals(p1, p2); p1.setSeriesPaint(new GradientPaint(1.0f, 2.0f, Color.RED, 3.0f, 4.0f, Color.WHITE)); assertFalse(p1.equals(p2)); p2.setSeriesPaint(new GradientPaint(1.0f, 2.0f, Color.RED, 3.0f, 4.0f, Color.WHITE)); assertEquals(p1, p2); p1.setSeriesPaint(1, new GradientPaint(1.0f, 2.0f, Color.yellow, 3.0f, 4.0f, Color.WHITE)); assertFalse(p1.equals(p2)); p2.setSeriesPaint(1, new GradientPaint(1.0f, 2.0f, Color.yellow, 3.0f, 4.0f, Color.WHITE)); assertEquals(p1, p2); p1.setBaseSeriesPaint(new GradientPaint(1.0f, 2.0f, Color.RED, 3.0f, 4.0f, Color.BLACK)); assertFalse(p1.equals(p2)); p2.setBaseSeriesPaint(new GradientPaint(1.0f, 2.0f, Color.RED, 3.0f, 4.0f, Color.BLACK)); assertEquals(p1, p2); p1.setSeriesOutlinePaint(new GradientPaint(1.0f, 2.0f, Color.BLUE, 3.0f, 4.0f, Color.BLACK)); assertFalse(p1.equals(p2)); p2.setSeriesOutlinePaint(new GradientPaint(1.0f, 2.0f, Color.BLUE, 3.0f, 4.0f, Color.BLACK)); assertEquals(p1, p2); p1.setSeriesOutlinePaint(1, new GradientPaint(1.0f, 2.0f, Color.BLUE, 3.0f, 4.0f, Color.green)); assertFalse(p1.equals(p2)); p2.setSeriesOutlinePaint(1, new GradientPaint(1.0f, 2.0f, Color.BLUE, 3.0f, 4.0f, Color.green)); assertEquals(p1, p2); p1.setBaseSeriesOutlinePaint(new GradientPaint(1.0f, 2.0f, Color.cyan, 3.0f, 4.0f, Color.green)); assertFalse(p1.equals(p2)); p2.setBaseSeriesOutlinePaint(new GradientPaint(1.0f, 2.0f, Color.cyan, 3.0f, 4.0f, Color.green)); assertEquals(p1, p2); BasicStroke s = new BasicStroke(1.23f); p1.setSeriesOutlineStroke(s); assertFalse(p1.equals(p2)); p2.setSeriesOutlineStroke(s); assertEquals(p1, p2); p1.setSeriesOutlineStroke(1, s); assertFalse(p1.equals(p2)); p2.setSeriesOutlineStroke(1, s); assertEquals(p1, p2); p1.setBaseSeriesOutlineStroke(s); assertFalse(p1.equals(p2)); p2.setBaseSeriesOutlineStroke(s); assertEquals(p1, p2); p1.setWebFilled(false); assertFalse(p1.equals(p2)); p2.setWebFilled(false); assertEquals(p1, p2); p1.setAxisLabelGap(0.11); assertFalse(p1.equals(p2)); p2.setAxisLabelGap(0.11); assertEquals(p1, p2); p1.setLabelFont(new Font("Serif", Font.PLAIN, 9)); assertFalse(p1.equals(p2)); p2.setLabelFont(new Font("Serif", Font.PLAIN, 9)); assertEquals(p1, p2); p1.setLabelPaint(new GradientPaint(1.0f, 2.0f, Color.RED, 3.0f, 4.0f, Color.BLUE)); assertFalse(p1.equals(p2)); p2.setLabelPaint(new GradientPaint(1.0f, 2.0f, Color.RED, 3.0f, 4.0f, Color.BLUE)); assertEquals(p1, p2); p1.setLabelGenerator(new StandardCategoryItemLabelGenerator("XYZ: {0}", new DecimalFormat("0.000"))); assertFalse(p1.equals(p2)); p2.setLabelGenerator(new StandardCategoryItemLabelGenerator("XYZ: {0}", new DecimalFormat("0.000"))); assertEquals(p1, p2); p1.setToolTipGenerator(new StandardCategoryToolTipGenerator()); assertFalse(p1.equals(p2)); p2.setToolTipGenerator(new StandardCategoryToolTipGenerator()); assertEquals(p1, p2); p1.setURLGenerator(new StandardCategoryURLGenerator()); assertFalse(p1.equals(p2)); p2.setURLGenerator(new StandardCategoryURLGenerator()); assertEquals(p1, p2); p1.setAxisLinePaint(Color.RED); assertFalse(p1.equals(p2)); p2.setAxisLinePaint(Color.RED); assertEquals(p1, p2); p1.setAxisLineStroke(new BasicStroke(1.1f)); assertFalse(p1.equals(p2)); p2.setAxisLineStroke(new BasicStroke(1.1f)); assertEquals(p1, p2); }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof SpiderWebPlot)) { return false; } if (!super.equals(obj)) { return false; } SpiderWebPlot that = (SpiderWebPlot) obj; if (!this.dataExtractOrder.equals(that.dataExtractOrder)) { return false; } if (this.headPercent != that.headPercent) { return false; } if (this.interiorGap != that.interiorGap) { return false; } if (this.startAngle != that.startAngle) { return false; } if (!this.direction.equals(that.direction)) { return false; } if (this.maxValue != that.maxValue) { return false; } if (this.webFilled != that.webFilled) { return false; } if (this.axisLabelGap != that.axisLabelGap) { return false; } if (!PaintUtilities.equal(this.axisLinePaint, that.axisLinePaint)) { return false; } if (!this.axisLineStroke.equals(that.axisLineStroke)) { return false; } if (!ShapeUtilities.equal(this.legendItemShape, that.legendItemShape)) { return false; } if (!PaintUtilities.equal(this.seriesPaint, that.seriesPaint)) { return false; } if (!this.seriesPaintList.equals(that.seriesPaintList)) { return false; } if (!PaintUtilities.equal(this.baseSeriesPaint, that.baseSeriesPaint)) { return false; } if (!PaintUtilities.equal(this.seriesOutlinePaint, that.seriesOutlinePaint)) { return false; } if (!this.seriesOutlinePaintList.equals(that.seriesOutlinePaintList)) { return false; } if (!PaintUtilities.equal(this.baseSeriesOutlinePaint, that.baseSeriesOutlinePaint)) { return false; } if (!ObjectUtilities.equal(this.seriesOutlineStroke, that.seriesOutlineStroke)) { return false; } if (!this.seriesOutlineStrokeList.equals( that.seriesOutlineStrokeList)) { return false; } if (!this.baseSeriesOutlineStroke.equals( that.baseSeriesOutlineStroke)) { return false; } if (!this.labelFont.equals(that.labelFont)) { return false; } if (!PaintUtilities.equal(this.labelPaint, that.labelPaint)) { return false; } if (!this.labelGenerator.equals(that.labelGenerator)) { return false; } if (!ObjectUtilities.equal(this.toolTipGenerator, that.toolTipGenerator)) { return false; } if (!ObjectUtilities.equal(this.urlGenerator, that.urlGenerator)) { return false; } return true; }
SpiderWebPlot extends Plot implements Cloneable, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof SpiderWebPlot)) { return false; } if (!super.equals(obj)) { return false; } SpiderWebPlot that = (SpiderWebPlot) obj; if (!this.dataExtractOrder.equals(that.dataExtractOrder)) { return false; } if (this.headPercent != that.headPercent) { return false; } if (this.interiorGap != that.interiorGap) { return false; } if (this.startAngle != that.startAngle) { return false; } if (!this.direction.equals(that.direction)) { return false; } if (this.maxValue != that.maxValue) { return false; } if (this.webFilled != that.webFilled) { return false; } if (this.axisLabelGap != that.axisLabelGap) { return false; } if (!PaintUtilities.equal(this.axisLinePaint, that.axisLinePaint)) { return false; } if (!this.axisLineStroke.equals(that.axisLineStroke)) { return false; } if (!ShapeUtilities.equal(this.legendItemShape, that.legendItemShape)) { return false; } if (!PaintUtilities.equal(this.seriesPaint, that.seriesPaint)) { return false; } if (!this.seriesPaintList.equals(that.seriesPaintList)) { return false; } if (!PaintUtilities.equal(this.baseSeriesPaint, that.baseSeriesPaint)) { return false; } if (!PaintUtilities.equal(this.seriesOutlinePaint, that.seriesOutlinePaint)) { return false; } if (!this.seriesOutlinePaintList.equals(that.seriesOutlinePaintList)) { return false; } if (!PaintUtilities.equal(this.baseSeriesOutlinePaint, that.baseSeriesOutlinePaint)) { return false; } if (!ObjectUtilities.equal(this.seriesOutlineStroke, that.seriesOutlineStroke)) { return false; } if (!this.seriesOutlineStrokeList.equals( that.seriesOutlineStrokeList)) { return false; } if (!this.baseSeriesOutlineStroke.equals( that.baseSeriesOutlineStroke)) { return false; } if (!this.labelFont.equals(that.labelFont)) { return false; } if (!PaintUtilities.equal(this.labelPaint, that.labelPaint)) { return false; } if (!this.labelGenerator.equals(that.labelGenerator)) { return false; } if (!ObjectUtilities.equal(this.toolTipGenerator, that.toolTipGenerator)) { return false; } if (!ObjectUtilities.equal(this.urlGenerator, that.urlGenerator)) { return false; } return true; } }
SpiderWebPlot extends Plot implements Cloneable, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof SpiderWebPlot)) { return false; } if (!super.equals(obj)) { return false; } SpiderWebPlot that = (SpiderWebPlot) obj; if (!this.dataExtractOrder.equals(that.dataExtractOrder)) { return false; } if (this.headPercent != that.headPercent) { return false; } if (this.interiorGap != that.interiorGap) { return false; } if (this.startAngle != that.startAngle) { return false; } if (!this.direction.equals(that.direction)) { return false; } if (this.maxValue != that.maxValue) { return false; } if (this.webFilled != that.webFilled) { return false; } if (this.axisLabelGap != that.axisLabelGap) { return false; } if (!PaintUtilities.equal(this.axisLinePaint, that.axisLinePaint)) { return false; } if (!this.axisLineStroke.equals(that.axisLineStroke)) { return false; } if (!ShapeUtilities.equal(this.legendItemShape, that.legendItemShape)) { return false; } if (!PaintUtilities.equal(this.seriesPaint, that.seriesPaint)) { return false; } if (!this.seriesPaintList.equals(that.seriesPaintList)) { return false; } if (!PaintUtilities.equal(this.baseSeriesPaint, that.baseSeriesPaint)) { return false; } if (!PaintUtilities.equal(this.seriesOutlinePaint, that.seriesOutlinePaint)) { return false; } if (!this.seriesOutlinePaintList.equals(that.seriesOutlinePaintList)) { return false; } if (!PaintUtilities.equal(this.baseSeriesOutlinePaint, that.baseSeriesOutlinePaint)) { return false; } if (!ObjectUtilities.equal(this.seriesOutlineStroke, that.seriesOutlineStroke)) { return false; } if (!this.seriesOutlineStrokeList.equals( that.seriesOutlineStrokeList)) { return false; } if (!this.baseSeriesOutlineStroke.equals( that.baseSeriesOutlineStroke)) { return false; } if (!this.labelFont.equals(that.labelFont)) { return false; } if (!PaintUtilities.equal(this.labelPaint, that.labelPaint)) { return false; } if (!this.labelGenerator.equals(that.labelGenerator)) { return false; } if (!ObjectUtilities.equal(this.toolTipGenerator, that.toolTipGenerator)) { return false; } if (!ObjectUtilities.equal(this.urlGenerator, that.urlGenerator)) { return false; } return true; } SpiderWebPlot();  SpiderWebPlot(CategoryDataset dataset);  SpiderWebPlot(CategoryDataset dataset, TableOrder extract); }
SpiderWebPlot extends Plot implements Cloneable, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof SpiderWebPlot)) { return false; } if (!super.equals(obj)) { return false; } SpiderWebPlot that = (SpiderWebPlot) obj; if (!this.dataExtractOrder.equals(that.dataExtractOrder)) { return false; } if (this.headPercent != that.headPercent) { return false; } if (this.interiorGap != that.interiorGap) { return false; } if (this.startAngle != that.startAngle) { return false; } if (!this.direction.equals(that.direction)) { return false; } if (this.maxValue != that.maxValue) { return false; } if (this.webFilled != that.webFilled) { return false; } if (this.axisLabelGap != that.axisLabelGap) { return false; } if (!PaintUtilities.equal(this.axisLinePaint, that.axisLinePaint)) { return false; } if (!this.axisLineStroke.equals(that.axisLineStroke)) { return false; } if (!ShapeUtilities.equal(this.legendItemShape, that.legendItemShape)) { return false; } if (!PaintUtilities.equal(this.seriesPaint, that.seriesPaint)) { return false; } if (!this.seriesPaintList.equals(that.seriesPaintList)) { return false; } if (!PaintUtilities.equal(this.baseSeriesPaint, that.baseSeriesPaint)) { return false; } if (!PaintUtilities.equal(this.seriesOutlinePaint, that.seriesOutlinePaint)) { return false; } if (!this.seriesOutlinePaintList.equals(that.seriesOutlinePaintList)) { return false; } if (!PaintUtilities.equal(this.baseSeriesOutlinePaint, that.baseSeriesOutlinePaint)) { return false; } if (!ObjectUtilities.equal(this.seriesOutlineStroke, that.seriesOutlineStroke)) { return false; } if (!this.seriesOutlineStrokeList.equals( that.seriesOutlineStrokeList)) { return false; } if (!this.baseSeriesOutlineStroke.equals( that.baseSeriesOutlineStroke)) { return false; } if (!this.labelFont.equals(that.labelFont)) { return false; } if (!PaintUtilities.equal(this.labelPaint, that.labelPaint)) { return false; } if (!this.labelGenerator.equals(that.labelGenerator)) { return false; } if (!ObjectUtilities.equal(this.toolTipGenerator, that.toolTipGenerator)) { return false; } if (!ObjectUtilities.equal(this.urlGenerator, that.urlGenerator)) { return false; } return true; } SpiderWebPlot();  SpiderWebPlot(CategoryDataset dataset);  SpiderWebPlot(CategoryDataset dataset, TableOrder extract); @Override String getPlotType(); CategoryDataset getDataset(); void setDataset(CategoryDataset dataset); boolean isWebFilled(); void setWebFilled(boolean flag); TableOrder getDataExtractOrder(); void setDataExtractOrder(TableOrder order); double getHeadPercent(); void setHeadPercent(double percent); double getStartAngle(); void setStartAngle(double angle); double getMaxValue(); void setMaxValue(double value); Rotation getDirection(); void setDirection(Rotation direction); double getInteriorGap(); void setInteriorGap(double percent); double getAxisLabelGap(); void setAxisLabelGap(double gap); Paint getAxisLinePaint(); void setAxisLinePaint(Paint paint); Stroke getAxisLineStroke(); void setAxisLineStroke(Stroke stroke); Paint getSeriesPaint(); void setSeriesPaint(Paint paint); Paint getSeriesPaint(int series); void setSeriesPaint(int series, Paint paint); Paint getBaseSeriesPaint(); void setBaseSeriesPaint(Paint paint); Paint getSeriesOutlinePaint(); void setSeriesOutlinePaint(Paint paint); Paint getSeriesOutlinePaint(int series); void setSeriesOutlinePaint(int series, Paint paint); Paint getBaseSeriesOutlinePaint(); void setBaseSeriesOutlinePaint(Paint paint); Stroke getSeriesOutlineStroke(); void setSeriesOutlineStroke(Stroke stroke); Stroke getSeriesOutlineStroke(int series); void setSeriesOutlineStroke(int series, Stroke stroke); Stroke getBaseSeriesOutlineStroke(); void setBaseSeriesOutlineStroke(Stroke stroke); Shape getLegendItemShape(); void setLegendItemShape(Shape shape); Font getLabelFont(); void setLabelFont(Font font); Paint getLabelPaint(); void setLabelPaint(Paint paint); CategoryItemLabelGenerator getLabelGenerator(); void setLabelGenerator(CategoryItemLabelGenerator generator); CategoryToolTipGenerator getToolTipGenerator(); void setToolTipGenerator(CategoryToolTipGenerator generator); CategoryURLGenerator getURLGenerator(); void setURLGenerator(CategoryURLGenerator generator); @Override List<LegendItem> getLegendItems(); @Override void draw(Graphics2D g2, Rectangle2D area, Point2D anchor,
            PlotState parentState, PlotRenderingInfo info); @Override boolean equals(Object obj); @Override Object clone(); }
SpiderWebPlot extends Plot implements Cloneable, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof SpiderWebPlot)) { return false; } if (!super.equals(obj)) { return false; } SpiderWebPlot that = (SpiderWebPlot) obj; if (!this.dataExtractOrder.equals(that.dataExtractOrder)) { return false; } if (this.headPercent != that.headPercent) { return false; } if (this.interiorGap != that.interiorGap) { return false; } if (this.startAngle != that.startAngle) { return false; } if (!this.direction.equals(that.direction)) { return false; } if (this.maxValue != that.maxValue) { return false; } if (this.webFilled != that.webFilled) { return false; } if (this.axisLabelGap != that.axisLabelGap) { return false; } if (!PaintUtilities.equal(this.axisLinePaint, that.axisLinePaint)) { return false; } if (!this.axisLineStroke.equals(that.axisLineStroke)) { return false; } if (!ShapeUtilities.equal(this.legendItemShape, that.legendItemShape)) { return false; } if (!PaintUtilities.equal(this.seriesPaint, that.seriesPaint)) { return false; } if (!this.seriesPaintList.equals(that.seriesPaintList)) { return false; } if (!PaintUtilities.equal(this.baseSeriesPaint, that.baseSeriesPaint)) { return false; } if (!PaintUtilities.equal(this.seriesOutlinePaint, that.seriesOutlinePaint)) { return false; } if (!this.seriesOutlinePaintList.equals(that.seriesOutlinePaintList)) { return false; } if (!PaintUtilities.equal(this.baseSeriesOutlinePaint, that.baseSeriesOutlinePaint)) { return false; } if (!ObjectUtilities.equal(this.seriesOutlineStroke, that.seriesOutlineStroke)) { return false; } if (!this.seriesOutlineStrokeList.equals( that.seriesOutlineStrokeList)) { return false; } if (!this.baseSeriesOutlineStroke.equals( that.baseSeriesOutlineStroke)) { return false; } if (!this.labelFont.equals(that.labelFont)) { return false; } if (!PaintUtilities.equal(this.labelPaint, that.labelPaint)) { return false; } if (!this.labelGenerator.equals(that.labelGenerator)) { return false; } if (!ObjectUtilities.equal(this.toolTipGenerator, that.toolTipGenerator)) { return false; } if (!ObjectUtilities.equal(this.urlGenerator, that.urlGenerator)) { return false; } return true; } SpiderWebPlot();  SpiderWebPlot(CategoryDataset dataset);  SpiderWebPlot(CategoryDataset dataset, TableOrder extract); @Override String getPlotType(); CategoryDataset getDataset(); void setDataset(CategoryDataset dataset); boolean isWebFilled(); void setWebFilled(boolean flag); TableOrder getDataExtractOrder(); void setDataExtractOrder(TableOrder order); double getHeadPercent(); void setHeadPercent(double percent); double getStartAngle(); void setStartAngle(double angle); double getMaxValue(); void setMaxValue(double value); Rotation getDirection(); void setDirection(Rotation direction); double getInteriorGap(); void setInteriorGap(double percent); double getAxisLabelGap(); void setAxisLabelGap(double gap); Paint getAxisLinePaint(); void setAxisLinePaint(Paint paint); Stroke getAxisLineStroke(); void setAxisLineStroke(Stroke stroke); Paint getSeriesPaint(); void setSeriesPaint(Paint paint); Paint getSeriesPaint(int series); void setSeriesPaint(int series, Paint paint); Paint getBaseSeriesPaint(); void setBaseSeriesPaint(Paint paint); Paint getSeriesOutlinePaint(); void setSeriesOutlinePaint(Paint paint); Paint getSeriesOutlinePaint(int series); void setSeriesOutlinePaint(int series, Paint paint); Paint getBaseSeriesOutlinePaint(); void setBaseSeriesOutlinePaint(Paint paint); Stroke getSeriesOutlineStroke(); void setSeriesOutlineStroke(Stroke stroke); Stroke getSeriesOutlineStroke(int series); void setSeriesOutlineStroke(int series, Stroke stroke); Stroke getBaseSeriesOutlineStroke(); void setBaseSeriesOutlineStroke(Stroke stroke); Shape getLegendItemShape(); void setLegendItemShape(Shape shape); Font getLabelFont(); void setLabelFont(Font font); Paint getLabelPaint(); void setLabelPaint(Paint paint); CategoryItemLabelGenerator getLabelGenerator(); void setLabelGenerator(CategoryItemLabelGenerator generator); CategoryToolTipGenerator getToolTipGenerator(); void setToolTipGenerator(CategoryToolTipGenerator generator); CategoryURLGenerator getURLGenerator(); void setURLGenerator(CategoryURLGenerator generator); @Override List<LegendItem> getLegendItems(); @Override void draw(Graphics2D g2, Rectangle2D area, Point2D anchor,
            PlotState parentState, PlotRenderingInfo info); @Override boolean equals(Object obj); @Override Object clone(); static final double DEFAULT_HEAD; static final double DEFAULT_AXIS_LABEL_GAP; static final double DEFAULT_INTERIOR_GAP; static final double MAX_INTERIOR_GAP; static final double DEFAULT_START_ANGLE; static final Font DEFAULT_LABEL_FONT; static final Paint DEFAULT_LABEL_PAINT; static final Paint DEFAULT_LABEL_BACKGROUND_PAINT; static final Paint DEFAULT_LABEL_OUTLINE_PAINT; static final Stroke DEFAULT_LABEL_OUTLINE_STROKE; static final Paint DEFAULT_LABEL_SHADOW_PAINT; static final double DEFAULT_MAX_VALUE; }