@Test public void testEquals() { BarRenderer r1 = new BarRenderer(); BarRenderer r2 = new BarRenderer(); assertEquals(r1, r2); assertEquals(r2, r1); r1.setSeriesVisible(2, Boolean.TRUE); assertFalse(r1.equals(r2)); r2.setSeriesVisible(2, Boolean.TRUE); assertEquals(r1, r2); r1.setDefaultSeriesVisible(false); assertFalse(r1.equals(r2)); r2.setDefaultSeriesVisible(false); assertEquals(r1, r2); r1.setSeriesVisibleInLegend(1, Boolean.TRUE); assertFalse(r1.equals(r2)); r2.setSeriesVisibleInLegend(1, Boolean.TRUE); assertEquals(r1, r2); r1.setDefaultSeriesVisibleInLegend(false); assertFalse(r1.equals(r2)); r2.setDefaultSeriesVisibleInLegend(false); assertEquals(r1, r2); r1.setSeriesPaint(0, new GradientPaint(1.0f, 2.0f, Color.RED, 3.0f, 4.0f, Color.WHITE)); assertFalse(r1.equals(r2)); r2.setSeriesPaint(0, new GradientPaint(1.0f, 2.0f, Color.RED, 3.0f, 4.0f, Color.WHITE)); assertEquals(r1, r2); r1.setDefaultPaint(new GradientPaint(1.0f, 2.0f, Color.BLUE, 3.0f, 4.0f, Color.RED)); assertFalse(r1.equals(r2)); r2.setDefaultPaint(new GradientPaint(1.0f, 2.0f, Color.BLUE, 3.0f, 4.0f, Color.RED)); assertEquals(r1, r2); r1.setSeriesFillPaint(0, new GradientPaint(1.0f, 2.0f, Color.BLUE, 3.0f, 4.0f, Color.RED)); assertFalse(r1.equals(r2)); r2.setSeriesFillPaint(0, new GradientPaint(1.0f, 2.0f, Color.BLUE, 3.0f, 4.0f, Color.RED)); assertEquals(r1, r2); r1.setDefaultFillPaint(new GradientPaint(1.0f, 2.0f, Color.BLUE, 3.0f, 4.0f, Color.RED)); assertFalse(r1.equals(r2)); r2.setDefaultFillPaint(new GradientPaint(1.0f, 2.0f, Color.BLUE, 3.0f, 4.0f, Color.RED)); assertEquals(r1, r2); r1.setSeriesOutlinePaint(0, new GradientPaint(1.0f, 2.0f, Color.BLUE, 3.0f, 4.0f, Color.RED)); assertFalse(r1.equals(r2)); r2.setSeriesOutlinePaint(0, new GradientPaint(1.0f, 2.0f, Color.BLUE, 3.0f, 4.0f, Color.RED)); assertEquals(r1, r2); r1.setDefaultOutlinePaint(new GradientPaint(1.0f, 2.0f, Color.BLUE, 3.0f, 4.0f, Color.RED)); assertFalse(r1.equals(r2)); r2.setDefaultOutlinePaint(new GradientPaint(1.0f, 2.0f, Color.BLUE, 3.0f, 4.0f, Color.RED)); assertEquals(r1, r2); Stroke s = new BasicStroke(3.21f); r1.setSeriesStroke(1, s); assertFalse(r1.equals(r2)); r2.setSeriesStroke(1, s); assertEquals(r1, r2); r1.setDefaultStroke(s); assertFalse(r1.equals(r2)); r2.setDefaultStroke(s); assertEquals(r1, r2); r1.setSeriesOutlineStroke(0, s); assertFalse(r1.equals(r2)); r2.setSeriesOutlineStroke(0, s); assertEquals(r1, r2); r1.setDefaultOutlineStroke(s); assertFalse(r1.equals(r2)); r2.setDefaultOutlineStroke(s); assertEquals(r1, r2); r1.setSeriesShape(1, new Ellipse2D.Double(1, 2, 3, 4)); assertFalse(r1.equals(r2)); r2.setSeriesShape(1, new Ellipse2D.Double(1, 2, 3, 4)); assertEquals(r1, r2); r1.setDefaultShape(new Ellipse2D.Double(1, 2, 3, 4)); assertFalse(r1.equals(r2)); r2.setDefaultShape(new Ellipse2D.Double(1, 2, 3, 4)); assertEquals(r1, r2); r1.setSeriesItemLabelsVisible(1, Boolean.TRUE); assertFalse(r1.equals(r2)); r2.setSeriesItemLabelsVisible(1, Boolean.TRUE); assertEquals(r1, r2); r1.setDefaultItemLabelsVisible(true); assertFalse(r1.equals(r2)); r2.setDefaultItemLabelsVisible(true); assertEquals(r1, r2); r1.setSeriesItemLabelFont(1, new Font("Serif", Font.BOLD, 9)); assertFalse(r1.equals(r2)); r2.setSeriesItemLabelFont(1, new Font("Serif", Font.BOLD, 9)); assertEquals(r1, r2); r1.setDefaultItemLabelFont(new Font("Serif", Font.PLAIN, 10)); assertFalse(r1.equals(r2)); r2.setDefaultItemLabelFont(new Font("Serif", Font.PLAIN, 10)); assertEquals(r1, r2); r1.setSeriesItemLabelPaint(0, new GradientPaint(1.0f, 2.0f, Color.RED, 3.0f, 4.0f, Color.gray)); assertFalse(r1.equals(r2)); r2.setSeriesItemLabelPaint(0, new GradientPaint(1.0f, 2.0f, Color.RED, 3.0f, 4.0f, Color.gray)); assertEquals(r1, r2); r1.setDefaultItemLabelPaint(new GradientPaint(1.0f, 2.0f, Color.RED, 3.0f, 4.0f, Color.gray)); assertFalse(r1.equals(r2)); r2.setDefaultItemLabelPaint(new GradientPaint(1.0f, 2.0f, Color.RED, 3.0f, 4.0f, Color.gray)); assertEquals(r1, r2); r1.setSeriesPositiveItemLabelPosition(0, new ItemLabelPosition()); assertFalse(r1.equals(r2)); r2.setSeriesPositiveItemLabelPosition(0, new ItemLabelPosition()); assertEquals(r1, r2); r1.setDefaultPositiveItemLabelPosition(new ItemLabelPosition( ItemLabelAnchor.INSIDE10, TextAnchor.BASELINE_RIGHT)); assertFalse(r1.equals(r2)); r2.setDefaultPositiveItemLabelPosition(new ItemLabelPosition( ItemLabelAnchor.INSIDE10, TextAnchor.BASELINE_RIGHT)); assertEquals(r1, r2); r1.setSeriesNegativeItemLabelPosition(1, new ItemLabelPosition( ItemLabelAnchor.INSIDE10, TextAnchor.BASELINE_RIGHT)); assertFalse(r1.equals(r2)); r2.setSeriesNegativeItemLabelPosition(1, new ItemLabelPosition( ItemLabelAnchor.INSIDE10, TextAnchor.BASELINE_RIGHT)); assertEquals(r1, r2); r1.setDefaultNegativeItemLabelPosition(new ItemLabelPosition( ItemLabelAnchor.INSIDE10, TextAnchor.BASELINE_RIGHT)); assertFalse(r1.equals(r2)); r2.setDefaultNegativeItemLabelPosition(new ItemLabelPosition( ItemLabelAnchor.INSIDE10, TextAnchor.BASELINE_RIGHT)); assertEquals(r1, r2); r1.setItemLabelAnchorOffset(3.0); assertFalse(r1.equals(r2)); r2.setItemLabelAnchorOffset(3.0); assertEquals(r1, r2); r1.setSeriesCreateEntities(0, Boolean.TRUE); assertFalse(r1.equals(r2)); r2.setSeriesCreateEntities(0, Boolean.TRUE); assertEquals(r1, r2); r1.setDefaultCreateEntities(false); assertFalse(r1.equals(r2)); r2.setDefaultCreateEntities(false); assertEquals(r1, r2); r1.setLegendShape(0, new Ellipse2D.Double(1.0, 2.0, 3.0, 4.0)); assertFalse(r1.equals(r2)); r2.setLegendShape(0, new Ellipse2D.Double(1.0, 2.0, 3.0, 4.0)); assertEquals(r1, r2); r1.setDefaultLegendShape(new Ellipse2D.Double(5.0, 6.0, 7.0, 8.0)); assertFalse(r1.equals(r2)); r2.setDefaultLegendShape(new Ellipse2D.Double(5.0, 6.0, 7.0, 8.0)); assertEquals(r1, r2); r1.setLegendTextFont(0, new Font("Dialog", Font.PLAIN, 7)); assertFalse(r1.equals(r2)); r2.setLegendTextFont(0, new Font("Dialog", Font.PLAIN, 7)); assertEquals(r1, r2); r1.setDefaultLegendTextFont(new Font("Dialog", Font.PLAIN, 7)); assertFalse(r1.equals(r2)); r2.setDefaultLegendTextFont(new Font("Dialog", Font.PLAIN, 7)); assertEquals(r1, r2); r1.setLegendTextPaint(0, new GradientPaint(1.0f, 2.0f, Color.BLUE, 3.0f, 4.0f, Color.RED)); assertFalse(r1.equals(r2)); r2.setLegendTextPaint(0, new GradientPaint(1.0f, 2.0f, Color.BLUE, 3.0f, 4.0f, Color.RED)); assertEquals(r1, r2); r1.setDefaultLegendTextPaint(new GradientPaint(1.0f, 2.0f, Color.BLUE, 3.0f, 4.0f, Color.RED)); assertFalse(r1.equals(r2)); r2.setDefaultLegendTextPaint(new GradientPaint(1.0f, 2.0f, Color.BLUE, 3.0f, 4.0f, Color.RED)); assertEquals(r1, r2); }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof AbstractRenderer)) { return false; } AbstractRenderer that = (AbstractRenderer) obj; if (this.dataBoundsIncludesVisibleSeriesOnly != that.dataBoundsIncludesVisibleSeriesOnly) { return false; } if (this.treatLegendShapeAsLine != that.treatLegendShapeAsLine) { return false; } if (this.defaultEntityRadius != that.defaultEntityRadius) { return false; } if (!this.seriesVisibleList.equals(that.seriesVisibleList)) { return false; } if (this.defaultSeriesVisible != that.defaultSeriesVisible) { return false; } if (!this.seriesVisibleInLegendList.equals( that.seriesVisibleInLegendList)) { return false; } if (this.defaultSeriesVisibleInLegend != that.defaultSeriesVisibleInLegend) { return false; } if (!ObjectUtilities.equal(this.paintList, that.paintList)) { return false; } if (!PaintUtilities.equal(this.defaultPaint, that.defaultPaint)) { return false; } if (!ObjectUtilities.equal(this.fillPaintList, that.fillPaintList)) { return false; } if (!PaintUtilities.equal(this.defaultFillPaint, that.defaultFillPaint)) { return false; } if (!ObjectUtilities.equal(this.outlinePaintList, that.outlinePaintList)) { return false; } if (!PaintUtilities.equal(this.defaultOutlinePaint, that.defaultOutlinePaint)) { return false; } if (!ObjectUtilities.equal(this.strokeList, that.strokeList)) { return false; } if (!ObjectUtilities.equal(this.defaultStroke, that.defaultStroke)) { return false; } if (!ObjectUtilities.equal(this.outlineStrokeList, that.outlineStrokeList)) { return false; } if (!ObjectUtilities.equal(this.defaultOutlineStroke, that.defaultOutlineStroke)) { return false; } if (!ObjectUtilities.equal(this.shapeList, that.shapeList)) { return false; } if (!ShapeUtilities.equal(this.defaultShape, that.defaultShape)) { return false; } if (!ObjectUtilities.equal(this.itemLabelsVisibleList, that.itemLabelsVisibleList)) { return false; } if (!ObjectUtilities.equal(this.defaultItemLabelsVisible, that.defaultItemLabelsVisible)) { return false; } if (!ObjectUtilities.equal(this.itemLabelFontList, that.itemLabelFontList)) { return false; } if (!ObjectUtilities.equal(this.defaultItemLabelFont, that.defaultItemLabelFont)) { return false; } if (!ObjectUtilities.equal(this.itemLabelPaintList, that.itemLabelPaintList)) { return false; } if (!PaintUtilities.equal(this.defaultItemLabelPaint, that.defaultItemLabelPaint)) { return false; } if (!ObjectUtilities.equal(this.positiveItemLabelPositionList, that.positiveItemLabelPositionList)) { return false; } if (!ObjectUtilities.equal(this.defaultPositiveItemLabelPosition, that.defaultPositiveItemLabelPosition)) { return false; } if (!ObjectUtilities.equal(this.negativeItemLabelPositionList, that.negativeItemLabelPositionList)) { return false; } if (!ObjectUtilities.equal(this.defaultNegativeItemLabelPosition, that.defaultNegativeItemLabelPosition)) { return false; } if (this.itemLabelAnchorOffset != that.itemLabelAnchorOffset) { return false; } if (!ObjectUtilities.equal(this.createEntitiesList, that.createEntitiesList)) { return false; } if (this.defaultCreateEntities != that.defaultCreateEntities) { return false; } if (!ObjectUtilities.equal(this.legendShapeList, that.legendShapeList)) { return false; } if (!ShapeUtilities.equal(this.defaultLegendShape, that.defaultLegendShape)) { return false; } if (!ObjectUtilities.equal(this.legendTextFont, that.legendTextFont)) { return false; } if (!ObjectUtilities.equal(this.defaultLegendTextFont, that.defaultLegendTextFont)) { return false; } if (!ObjectUtilities.equal(this.legendTextPaint, that.legendTextPaint)) { return false; } if (!PaintUtilities.equal(this.defaultLegendTextPaint, that.defaultLegendTextPaint)) { return false; } return true; }
AbstractRenderer implements Cloneable, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof AbstractRenderer)) { return false; } AbstractRenderer that = (AbstractRenderer) obj; if (this.dataBoundsIncludesVisibleSeriesOnly != that.dataBoundsIncludesVisibleSeriesOnly) { return false; } if (this.treatLegendShapeAsLine != that.treatLegendShapeAsLine) { return false; } if (this.defaultEntityRadius != that.defaultEntityRadius) { return false; } if (!this.seriesVisibleList.equals(that.seriesVisibleList)) { return false; } if (this.defaultSeriesVisible != that.defaultSeriesVisible) { return false; } if (!this.seriesVisibleInLegendList.equals( that.seriesVisibleInLegendList)) { return false; } if (this.defaultSeriesVisibleInLegend != that.defaultSeriesVisibleInLegend) { return false; } if (!ObjectUtilities.equal(this.paintList, that.paintList)) { return false; } if (!PaintUtilities.equal(this.defaultPaint, that.defaultPaint)) { return false; } if (!ObjectUtilities.equal(this.fillPaintList, that.fillPaintList)) { return false; } if (!PaintUtilities.equal(this.defaultFillPaint, that.defaultFillPaint)) { return false; } if (!ObjectUtilities.equal(this.outlinePaintList, that.outlinePaintList)) { return false; } if (!PaintUtilities.equal(this.defaultOutlinePaint, that.defaultOutlinePaint)) { return false; } if (!ObjectUtilities.equal(this.strokeList, that.strokeList)) { return false; } if (!ObjectUtilities.equal(this.defaultStroke, that.defaultStroke)) { return false; } if (!ObjectUtilities.equal(this.outlineStrokeList, that.outlineStrokeList)) { return false; } if (!ObjectUtilities.equal(this.defaultOutlineStroke, that.defaultOutlineStroke)) { return false; } if (!ObjectUtilities.equal(this.shapeList, that.shapeList)) { return false; } if (!ShapeUtilities.equal(this.defaultShape, that.defaultShape)) { return false; } if (!ObjectUtilities.equal(this.itemLabelsVisibleList, that.itemLabelsVisibleList)) { return false; } if (!ObjectUtilities.equal(this.defaultItemLabelsVisible, that.defaultItemLabelsVisible)) { return false; } if (!ObjectUtilities.equal(this.itemLabelFontList, that.itemLabelFontList)) { return false; } if (!ObjectUtilities.equal(this.defaultItemLabelFont, that.defaultItemLabelFont)) { return false; } if (!ObjectUtilities.equal(this.itemLabelPaintList, that.itemLabelPaintList)) { return false; } if (!PaintUtilities.equal(this.defaultItemLabelPaint, that.defaultItemLabelPaint)) { return false; } if (!ObjectUtilities.equal(this.positiveItemLabelPositionList, that.positiveItemLabelPositionList)) { return false; } if (!ObjectUtilities.equal(this.defaultPositiveItemLabelPosition, that.defaultPositiveItemLabelPosition)) { return false; } if (!ObjectUtilities.equal(this.negativeItemLabelPositionList, that.negativeItemLabelPositionList)) { return false; } if (!ObjectUtilities.equal(this.defaultNegativeItemLabelPosition, that.defaultNegativeItemLabelPosition)) { return false; } if (this.itemLabelAnchorOffset != that.itemLabelAnchorOffset) { return false; } if (!ObjectUtilities.equal(this.createEntitiesList, that.createEntitiesList)) { return false; } if (this.defaultCreateEntities != that.defaultCreateEntities) { return false; } if (!ObjectUtilities.equal(this.legendShapeList, that.legendShapeList)) { return false; } if (!ShapeUtilities.equal(this.defaultLegendShape, that.defaultLegendShape)) { return false; } if (!ObjectUtilities.equal(this.legendTextFont, that.legendTextFont)) { return false; } if (!ObjectUtilities.equal(this.defaultLegendTextFont, that.defaultLegendTextFont)) { return false; } if (!ObjectUtilities.equal(this.legendTextPaint, that.legendTextPaint)) { return false; } if (!PaintUtilities.equal(this.defaultLegendTextPaint, that.defaultLegendTextPaint)) { return false; } return true; } }
AbstractRenderer implements Cloneable, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof AbstractRenderer)) { return false; } AbstractRenderer that = (AbstractRenderer) obj; if (this.dataBoundsIncludesVisibleSeriesOnly != that.dataBoundsIncludesVisibleSeriesOnly) { return false; } if (this.treatLegendShapeAsLine != that.treatLegendShapeAsLine) { return false; } if (this.defaultEntityRadius != that.defaultEntityRadius) { return false; } if (!this.seriesVisibleList.equals(that.seriesVisibleList)) { return false; } if (this.defaultSeriesVisible != that.defaultSeriesVisible) { return false; } if (!this.seriesVisibleInLegendList.equals( that.seriesVisibleInLegendList)) { return false; } if (this.defaultSeriesVisibleInLegend != that.defaultSeriesVisibleInLegend) { return false; } if (!ObjectUtilities.equal(this.paintList, that.paintList)) { return false; } if (!PaintUtilities.equal(this.defaultPaint, that.defaultPaint)) { return false; } if (!ObjectUtilities.equal(this.fillPaintList, that.fillPaintList)) { return false; } if (!PaintUtilities.equal(this.defaultFillPaint, that.defaultFillPaint)) { return false; } if (!ObjectUtilities.equal(this.outlinePaintList, that.outlinePaintList)) { return false; } if (!PaintUtilities.equal(this.defaultOutlinePaint, that.defaultOutlinePaint)) { return false; } if (!ObjectUtilities.equal(this.strokeList, that.strokeList)) { return false; } if (!ObjectUtilities.equal(this.defaultStroke, that.defaultStroke)) { return false; } if (!ObjectUtilities.equal(this.outlineStrokeList, that.outlineStrokeList)) { return false; } if (!ObjectUtilities.equal(this.defaultOutlineStroke, that.defaultOutlineStroke)) { return false; } if (!ObjectUtilities.equal(this.shapeList, that.shapeList)) { return false; } if (!ShapeUtilities.equal(this.defaultShape, that.defaultShape)) { return false; } if (!ObjectUtilities.equal(this.itemLabelsVisibleList, that.itemLabelsVisibleList)) { return false; } if (!ObjectUtilities.equal(this.defaultItemLabelsVisible, that.defaultItemLabelsVisible)) { return false; } if (!ObjectUtilities.equal(this.itemLabelFontList, that.itemLabelFontList)) { return false; } if (!ObjectUtilities.equal(this.defaultItemLabelFont, that.defaultItemLabelFont)) { return false; } if (!ObjectUtilities.equal(this.itemLabelPaintList, that.itemLabelPaintList)) { return false; } if (!PaintUtilities.equal(this.defaultItemLabelPaint, that.defaultItemLabelPaint)) { return false; } if (!ObjectUtilities.equal(this.positiveItemLabelPositionList, that.positiveItemLabelPositionList)) { return false; } if (!ObjectUtilities.equal(this.defaultPositiveItemLabelPosition, that.defaultPositiveItemLabelPosition)) { return false; } if (!ObjectUtilities.equal(this.negativeItemLabelPositionList, that.negativeItemLabelPositionList)) { return false; } if (!ObjectUtilities.equal(this.defaultNegativeItemLabelPosition, that.defaultNegativeItemLabelPosition)) { return false; } if (this.itemLabelAnchorOffset != that.itemLabelAnchorOffset) { return false; } if (!ObjectUtilities.equal(this.createEntitiesList, that.createEntitiesList)) { return false; } if (this.defaultCreateEntities != that.defaultCreateEntities) { return false; } if (!ObjectUtilities.equal(this.legendShapeList, that.legendShapeList)) { return false; } if (!ShapeUtilities.equal(this.defaultLegendShape, that.defaultLegendShape)) { return false; } if (!ObjectUtilities.equal(this.legendTextFont, that.legendTextFont)) { return false; } if (!ObjectUtilities.equal(this.defaultLegendTextFont, that.defaultLegendTextFont)) { return false; } if (!ObjectUtilities.equal(this.legendTextPaint, that.legendTextPaint)) { return false; } if (!PaintUtilities.equal(this.defaultLegendTextPaint, that.defaultLegendTextPaint)) { return false; } return true; } AbstractRenderer(); }
AbstractRenderer implements Cloneable, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof AbstractRenderer)) { return false; } AbstractRenderer that = (AbstractRenderer) obj; if (this.dataBoundsIncludesVisibleSeriesOnly != that.dataBoundsIncludesVisibleSeriesOnly) { return false; } if (this.treatLegendShapeAsLine != that.treatLegendShapeAsLine) { return false; } if (this.defaultEntityRadius != that.defaultEntityRadius) { return false; } if (!this.seriesVisibleList.equals(that.seriesVisibleList)) { return false; } if (this.defaultSeriesVisible != that.defaultSeriesVisible) { return false; } if (!this.seriesVisibleInLegendList.equals( that.seriesVisibleInLegendList)) { return false; } if (this.defaultSeriesVisibleInLegend != that.defaultSeriesVisibleInLegend) { return false; } if (!ObjectUtilities.equal(this.paintList, that.paintList)) { return false; } if (!PaintUtilities.equal(this.defaultPaint, that.defaultPaint)) { return false; } if (!ObjectUtilities.equal(this.fillPaintList, that.fillPaintList)) { return false; } if (!PaintUtilities.equal(this.defaultFillPaint, that.defaultFillPaint)) { return false; } if (!ObjectUtilities.equal(this.outlinePaintList, that.outlinePaintList)) { return false; } if (!PaintUtilities.equal(this.defaultOutlinePaint, that.defaultOutlinePaint)) { return false; } if (!ObjectUtilities.equal(this.strokeList, that.strokeList)) { return false; } if (!ObjectUtilities.equal(this.defaultStroke, that.defaultStroke)) { return false; } if (!ObjectUtilities.equal(this.outlineStrokeList, that.outlineStrokeList)) { return false; } if (!ObjectUtilities.equal(this.defaultOutlineStroke, that.defaultOutlineStroke)) { return false; } if (!ObjectUtilities.equal(this.shapeList, that.shapeList)) { return false; } if (!ShapeUtilities.equal(this.defaultShape, that.defaultShape)) { return false; } if (!ObjectUtilities.equal(this.itemLabelsVisibleList, that.itemLabelsVisibleList)) { return false; } if (!ObjectUtilities.equal(this.defaultItemLabelsVisible, that.defaultItemLabelsVisible)) { return false; } if (!ObjectUtilities.equal(this.itemLabelFontList, that.itemLabelFontList)) { return false; } if (!ObjectUtilities.equal(this.defaultItemLabelFont, that.defaultItemLabelFont)) { return false; } if (!ObjectUtilities.equal(this.itemLabelPaintList, that.itemLabelPaintList)) { return false; } if (!PaintUtilities.equal(this.defaultItemLabelPaint, that.defaultItemLabelPaint)) { return false; } if (!ObjectUtilities.equal(this.positiveItemLabelPositionList, that.positiveItemLabelPositionList)) { return false; } if (!ObjectUtilities.equal(this.defaultPositiveItemLabelPosition, that.defaultPositiveItemLabelPosition)) { return false; } if (!ObjectUtilities.equal(this.negativeItemLabelPositionList, that.negativeItemLabelPositionList)) { return false; } if (!ObjectUtilities.equal(this.defaultNegativeItemLabelPosition, that.defaultNegativeItemLabelPosition)) { return false; } if (this.itemLabelAnchorOffset != that.itemLabelAnchorOffset) { return false; } if (!ObjectUtilities.equal(this.createEntitiesList, that.createEntitiesList)) { return false; } if (this.defaultCreateEntities != that.defaultCreateEntities) { return false; } if (!ObjectUtilities.equal(this.legendShapeList, that.legendShapeList)) { return false; } if (!ShapeUtilities.equal(this.defaultLegendShape, that.defaultLegendShape)) { return false; } if (!ObjectUtilities.equal(this.legendTextFont, that.legendTextFont)) { return false; } if (!ObjectUtilities.equal(this.defaultLegendTextFont, that.defaultLegendTextFont)) { return false; } if (!ObjectUtilities.equal(this.legendTextPaint, that.legendTextPaint)) { return false; } if (!PaintUtilities.equal(this.defaultLegendTextPaint, that.defaultLegendTextPaint)) { return false; } return true; } AbstractRenderer(); abstract DrawingSupplier getDrawingSupplier(); void setLabelIRS(LabelIRS labelIRS); void setPaintIRS(PaintIRS paintIRS); void setShapeIRS(ShapeIRS shapeIRS); void setStrokeIRS(StrokeIRS strokeIRS); void setVisibilityIRS(VisibilityIRS visibilityIRS); boolean getItemVisible(int series, int item); boolean isSeriesVisible(int series); Boolean getSeriesVisible(int series); void setSeriesVisible(int series, Boolean visible); void setSeriesVisible(int series, Boolean visible, boolean notify); boolean getDefaultSeriesVisible(); void setDefaultSeriesVisible(boolean visible); void setDefaultSeriesVisible(boolean visible, boolean notify); boolean isSeriesVisibleInLegend(int series); Boolean getSeriesVisibleInLegend(int series); void setSeriesVisibleInLegend(int series, Boolean visible); void setSeriesVisibleInLegend(int series, Boolean visible,
                                         boolean notify); boolean getDefaultSeriesVisibleInLegend(); void setDefaultSeriesVisibleInLegend(boolean visible); void setDefaultSeriesVisibleInLegend(boolean visible, 
            boolean notify); Paint getItemPaint(int row, int column); Paint lookupSeriesPaint(int series); Paint getSeriesPaint(int series); void setSeriesPaint(int series, Paint paint); void setSeriesPaint(int series, Paint paint, boolean notify); void clearSeriesPaints(boolean notify); Paint getDefaultPaint(); void setDefaultPaint(Paint paint); void setDefaultPaint(Paint paint, boolean notify); boolean getAutoPopulateSeriesPaint(); void setAutoPopulateSeriesPaint(boolean auto); Paint getItemFillPaint(int row, int column); Paint lookupSeriesFillPaint(int series); Paint getSeriesFillPaint(int series); void setSeriesFillPaint(int series, Paint paint); void setSeriesFillPaint(int series, Paint paint, boolean notify); Paint getDefaultFillPaint(); void setDefaultFillPaint(Paint paint); void setDefaultFillPaint(Paint paint, boolean notify); boolean getAutoPopulateSeriesFillPaint(); void setAutoPopulateSeriesFillPaint(boolean auto); Paint getItemOutlinePaint(int row, int column); Paint lookupSeriesOutlinePaint(int series); Paint getSeriesOutlinePaint(int series); void setSeriesOutlinePaint(int series, Paint paint); void setSeriesOutlinePaint(int series, Paint paint, boolean notify); Paint getDefaultOutlinePaint(); void setDefaultOutlinePaint(Paint paint); void setDefaultOutlinePaint(Paint paint, boolean notify); boolean getAutoPopulateSeriesOutlinePaint(); void setAutoPopulateSeriesOutlinePaint(boolean auto); Stroke getItemStroke(int row, int column); Stroke lookupSeriesStroke(int series); Stroke getSeriesStroke(int series); void setSeriesStroke(int series, Stroke stroke); void setSeriesStroke(int series, Stroke stroke, boolean notify); void clearSeriesStrokes(boolean notify); Stroke getDefaultStroke(); void setDefaultStroke(Stroke stroke); void setDefaultStroke(Stroke stroke, boolean notify); boolean getAutoPopulateSeriesStroke(); void setAutoPopulateSeriesStroke(boolean auto); Stroke getItemOutlineStroke(int row, int column); Stroke lookupSeriesOutlineStroke(int series); Stroke getSeriesOutlineStroke(int series); void setSeriesOutlineStroke(int series, Stroke stroke); void setSeriesOutlineStroke(int series, Stroke stroke,
                                       boolean notify); Stroke getDefaultOutlineStroke(); void setDefaultOutlineStroke(Stroke stroke); void setDefaultOutlineStroke(Stroke stroke, boolean notify); boolean getAutoPopulateSeriesOutlineStroke(); void setAutoPopulateSeriesOutlineStroke(boolean auto); Shape getItemShape(int row, int column); Shape lookupSeriesShape(int series); Shape getSeriesShape(int series); void setSeriesShape(int series, Shape shape); void setSeriesShape(int series, Shape shape, boolean notify); Shape getDefaultShape(); void setDefaultShape(Shape shape); void setDefaultShape(Shape shape, boolean notify); boolean getAutoPopulateSeriesShape(); void setAutoPopulateSeriesShape(boolean auto); boolean isItemLabelVisible(int row, int column); boolean isSeriesItemLabelsVisible(int series); void setSeriesItemLabelsVisible(int series, boolean visible); void setSeriesItemLabelsVisible(int series, Boolean visible); void setSeriesItemLabelsVisible(int series, Boolean visible,
                                           boolean notify); boolean getDefaultItemLabelsVisible(); void setDefaultItemLabelsVisible(boolean visible); void setDefaultItemLabelsVisible(boolean visible, boolean notify); Font getItemLabelFont(int row, int column); Font getSeriesItemLabelFont(int series); void setSeriesItemLabelFont(int series, Font font); void setSeriesItemLabelFont(int series, Font font, boolean notify); Font getDefaultItemLabelFont(); void setDefaultItemLabelFont(Font font); void setDefaultItemLabelFont(Font font, boolean notify); Paint getItemLabelPaint(int row, int column); Paint getSeriesItemLabelPaint(int series); void setSeriesItemLabelPaint(int series, Paint paint); void setSeriesItemLabelPaint(int series, Paint paint,
                                        boolean notify); Paint getDefaultItemLabelPaint(); void setDefaultItemLabelPaint(Paint paint); void setDefaultItemLabelPaint(Paint paint, boolean notify); ItemLabelPosition getPositiveItemLabelPosition(int row, int column); ItemLabelPosition getSeriesPositiveItemLabelPosition(int series); void setSeriesPositiveItemLabelPosition(int series,
            ItemLabelPosition position); void setSeriesPositiveItemLabelPosition(int series,
            ItemLabelPosition position, boolean notify); ItemLabelPosition getDefaultPositiveItemLabelPosition(); void setDefaultPositiveItemLabelPosition(
            ItemLabelPosition position); void setDefaultPositiveItemLabelPosition(ItemLabelPosition position,
            boolean notify); ItemLabelPosition getNegativeItemLabelPosition(int row, int column); ItemLabelPosition getSeriesNegativeItemLabelPosition(int series); void setSeriesNegativeItemLabelPosition(int series,
            ItemLabelPosition position); void setSeriesNegativeItemLabelPosition(int series,
            ItemLabelPosition position, boolean notify); ItemLabelPosition getDefaultNegativeItemLabelPosition(); void setDefaultNegativeItemLabelPosition(
            ItemLabelPosition position); void setDefaultNegativeItemLabelPosition(ItemLabelPosition position,
            boolean notify); double getItemLabelAnchorOffset(); void setItemLabelAnchorOffset(double offset); boolean getItemCreateEntity(int series, int item); Boolean getSeriesCreateEntities(int series); void setSeriesCreateEntities(int series, Boolean create); void setSeriesCreateEntities(int series, Boolean create,
                                        boolean notify); boolean getDefaultCreateEntities(); void setDefaultCreateEntities(boolean create); void setDefaultCreateEntities(boolean create, boolean notify); int getDefaultEntityRadius(); void setDefaultEntityRadius(int radius); Shape lookupLegendShape(int series); Shape getLegendShape(int series); void setLegendShape(int series, Shape shape); Shape getDefaultLegendShape(); void setDefaultLegendShape(Shape shape); Font lookupLegendTextFont(int series); Font getLegendTextFont(int series); void setLegendTextFont(int series, Font font); Font getDefaultLegendTextFont(); void setDefaultLegendTextFont(Font font); Paint lookupLegendTextPaint(int series); Paint getLegendTextPaint(int series); void setLegendTextPaint(int series, Paint paint); Paint getDefaultLegendTextPaint(); void setDefaultLegendTextPaint(Paint paint); boolean getDataBoundsIncludesVisibleSeriesOnly(); void setDataBoundsIncludesVisibleSeriesOnly(boolean visibleOnly); void addChangeListener(RendererChangeListener listener); void removeChangeListener(RendererChangeListener listener); boolean hasListener(EventListener listener); void notifyListeners(RendererChangeEvent event); @Override boolean equals(Object obj); @Override int hashCode(); }
AbstractRenderer implements Cloneable, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof AbstractRenderer)) { return false; } AbstractRenderer that = (AbstractRenderer) obj; if (this.dataBoundsIncludesVisibleSeriesOnly != that.dataBoundsIncludesVisibleSeriesOnly) { return false; } if (this.treatLegendShapeAsLine != that.treatLegendShapeAsLine) { return false; } if (this.defaultEntityRadius != that.defaultEntityRadius) { return false; } if (!this.seriesVisibleList.equals(that.seriesVisibleList)) { return false; } if (this.defaultSeriesVisible != that.defaultSeriesVisible) { return false; } if (!this.seriesVisibleInLegendList.equals( that.seriesVisibleInLegendList)) { return false; } if (this.defaultSeriesVisibleInLegend != that.defaultSeriesVisibleInLegend) { return false; } if (!ObjectUtilities.equal(this.paintList, that.paintList)) { return false; } if (!PaintUtilities.equal(this.defaultPaint, that.defaultPaint)) { return false; } if (!ObjectUtilities.equal(this.fillPaintList, that.fillPaintList)) { return false; } if (!PaintUtilities.equal(this.defaultFillPaint, that.defaultFillPaint)) { return false; } if (!ObjectUtilities.equal(this.outlinePaintList, that.outlinePaintList)) { return false; } if (!PaintUtilities.equal(this.defaultOutlinePaint, that.defaultOutlinePaint)) { return false; } if (!ObjectUtilities.equal(this.strokeList, that.strokeList)) { return false; } if (!ObjectUtilities.equal(this.defaultStroke, that.defaultStroke)) { return false; } if (!ObjectUtilities.equal(this.outlineStrokeList, that.outlineStrokeList)) { return false; } if (!ObjectUtilities.equal(this.defaultOutlineStroke, that.defaultOutlineStroke)) { return false; } if (!ObjectUtilities.equal(this.shapeList, that.shapeList)) { return false; } if (!ShapeUtilities.equal(this.defaultShape, that.defaultShape)) { return false; } if (!ObjectUtilities.equal(this.itemLabelsVisibleList, that.itemLabelsVisibleList)) { return false; } if (!ObjectUtilities.equal(this.defaultItemLabelsVisible, that.defaultItemLabelsVisible)) { return false; } if (!ObjectUtilities.equal(this.itemLabelFontList, that.itemLabelFontList)) { return false; } if (!ObjectUtilities.equal(this.defaultItemLabelFont, that.defaultItemLabelFont)) { return false; } if (!ObjectUtilities.equal(this.itemLabelPaintList, that.itemLabelPaintList)) { return false; } if (!PaintUtilities.equal(this.defaultItemLabelPaint, that.defaultItemLabelPaint)) { return false; } if (!ObjectUtilities.equal(this.positiveItemLabelPositionList, that.positiveItemLabelPositionList)) { return false; } if (!ObjectUtilities.equal(this.defaultPositiveItemLabelPosition, that.defaultPositiveItemLabelPosition)) { return false; } if (!ObjectUtilities.equal(this.negativeItemLabelPositionList, that.negativeItemLabelPositionList)) { return false; } if (!ObjectUtilities.equal(this.defaultNegativeItemLabelPosition, that.defaultNegativeItemLabelPosition)) { return false; } if (this.itemLabelAnchorOffset != that.itemLabelAnchorOffset) { return false; } if (!ObjectUtilities.equal(this.createEntitiesList, that.createEntitiesList)) { return false; } if (this.defaultCreateEntities != that.defaultCreateEntities) { return false; } if (!ObjectUtilities.equal(this.legendShapeList, that.legendShapeList)) { return false; } if (!ShapeUtilities.equal(this.defaultLegendShape, that.defaultLegendShape)) { return false; } if (!ObjectUtilities.equal(this.legendTextFont, that.legendTextFont)) { return false; } if (!ObjectUtilities.equal(this.defaultLegendTextFont, that.defaultLegendTextFont)) { return false; } if (!ObjectUtilities.equal(this.legendTextPaint, that.legendTextPaint)) { return false; } if (!PaintUtilities.equal(this.defaultLegendTextPaint, that.defaultLegendTextPaint)) { return false; } return true; } AbstractRenderer(); abstract DrawingSupplier getDrawingSupplier(); void setLabelIRS(LabelIRS labelIRS); void setPaintIRS(PaintIRS paintIRS); void setShapeIRS(ShapeIRS shapeIRS); void setStrokeIRS(StrokeIRS strokeIRS); void setVisibilityIRS(VisibilityIRS visibilityIRS); boolean getItemVisible(int series, int item); boolean isSeriesVisible(int series); Boolean getSeriesVisible(int series); void setSeriesVisible(int series, Boolean visible); void setSeriesVisible(int series, Boolean visible, boolean notify); boolean getDefaultSeriesVisible(); void setDefaultSeriesVisible(boolean visible); void setDefaultSeriesVisible(boolean visible, boolean notify); boolean isSeriesVisibleInLegend(int series); Boolean getSeriesVisibleInLegend(int series); void setSeriesVisibleInLegend(int series, Boolean visible); void setSeriesVisibleInLegend(int series, Boolean visible,
                                         boolean notify); boolean getDefaultSeriesVisibleInLegend(); void setDefaultSeriesVisibleInLegend(boolean visible); void setDefaultSeriesVisibleInLegend(boolean visible, 
            boolean notify); Paint getItemPaint(int row, int column); Paint lookupSeriesPaint(int series); Paint getSeriesPaint(int series); void setSeriesPaint(int series, Paint paint); void setSeriesPaint(int series, Paint paint, boolean notify); void clearSeriesPaints(boolean notify); Paint getDefaultPaint(); void setDefaultPaint(Paint paint); void setDefaultPaint(Paint paint, boolean notify); boolean getAutoPopulateSeriesPaint(); void setAutoPopulateSeriesPaint(boolean auto); Paint getItemFillPaint(int row, int column); Paint lookupSeriesFillPaint(int series); Paint getSeriesFillPaint(int series); void setSeriesFillPaint(int series, Paint paint); void setSeriesFillPaint(int series, Paint paint, boolean notify); Paint getDefaultFillPaint(); void setDefaultFillPaint(Paint paint); void setDefaultFillPaint(Paint paint, boolean notify); boolean getAutoPopulateSeriesFillPaint(); void setAutoPopulateSeriesFillPaint(boolean auto); Paint getItemOutlinePaint(int row, int column); Paint lookupSeriesOutlinePaint(int series); Paint getSeriesOutlinePaint(int series); void setSeriesOutlinePaint(int series, Paint paint); void setSeriesOutlinePaint(int series, Paint paint, boolean notify); Paint getDefaultOutlinePaint(); void setDefaultOutlinePaint(Paint paint); void setDefaultOutlinePaint(Paint paint, boolean notify); boolean getAutoPopulateSeriesOutlinePaint(); void setAutoPopulateSeriesOutlinePaint(boolean auto); Stroke getItemStroke(int row, int column); Stroke lookupSeriesStroke(int series); Stroke getSeriesStroke(int series); void setSeriesStroke(int series, Stroke stroke); void setSeriesStroke(int series, Stroke stroke, boolean notify); void clearSeriesStrokes(boolean notify); Stroke getDefaultStroke(); void setDefaultStroke(Stroke stroke); void setDefaultStroke(Stroke stroke, boolean notify); boolean getAutoPopulateSeriesStroke(); void setAutoPopulateSeriesStroke(boolean auto); Stroke getItemOutlineStroke(int row, int column); Stroke lookupSeriesOutlineStroke(int series); Stroke getSeriesOutlineStroke(int series); void setSeriesOutlineStroke(int series, Stroke stroke); void setSeriesOutlineStroke(int series, Stroke stroke,
                                       boolean notify); Stroke getDefaultOutlineStroke(); void setDefaultOutlineStroke(Stroke stroke); void setDefaultOutlineStroke(Stroke stroke, boolean notify); boolean getAutoPopulateSeriesOutlineStroke(); void setAutoPopulateSeriesOutlineStroke(boolean auto); Shape getItemShape(int row, int column); Shape lookupSeriesShape(int series); Shape getSeriesShape(int series); void setSeriesShape(int series, Shape shape); void setSeriesShape(int series, Shape shape, boolean notify); Shape getDefaultShape(); void setDefaultShape(Shape shape); void setDefaultShape(Shape shape, boolean notify); boolean getAutoPopulateSeriesShape(); void setAutoPopulateSeriesShape(boolean auto); boolean isItemLabelVisible(int row, int column); boolean isSeriesItemLabelsVisible(int series); void setSeriesItemLabelsVisible(int series, boolean visible); void setSeriesItemLabelsVisible(int series, Boolean visible); void setSeriesItemLabelsVisible(int series, Boolean visible,
                                           boolean notify); boolean getDefaultItemLabelsVisible(); void setDefaultItemLabelsVisible(boolean visible); void setDefaultItemLabelsVisible(boolean visible, boolean notify); Font getItemLabelFont(int row, int column); Font getSeriesItemLabelFont(int series); void setSeriesItemLabelFont(int series, Font font); void setSeriesItemLabelFont(int series, Font font, boolean notify); Font getDefaultItemLabelFont(); void setDefaultItemLabelFont(Font font); void setDefaultItemLabelFont(Font font, boolean notify); Paint getItemLabelPaint(int row, int column); Paint getSeriesItemLabelPaint(int series); void setSeriesItemLabelPaint(int series, Paint paint); void setSeriesItemLabelPaint(int series, Paint paint,
                                        boolean notify); Paint getDefaultItemLabelPaint(); void setDefaultItemLabelPaint(Paint paint); void setDefaultItemLabelPaint(Paint paint, boolean notify); ItemLabelPosition getPositiveItemLabelPosition(int row, int column); ItemLabelPosition getSeriesPositiveItemLabelPosition(int series); void setSeriesPositiveItemLabelPosition(int series,
            ItemLabelPosition position); void setSeriesPositiveItemLabelPosition(int series,
            ItemLabelPosition position, boolean notify); ItemLabelPosition getDefaultPositiveItemLabelPosition(); void setDefaultPositiveItemLabelPosition(
            ItemLabelPosition position); void setDefaultPositiveItemLabelPosition(ItemLabelPosition position,
            boolean notify); ItemLabelPosition getNegativeItemLabelPosition(int row, int column); ItemLabelPosition getSeriesNegativeItemLabelPosition(int series); void setSeriesNegativeItemLabelPosition(int series,
            ItemLabelPosition position); void setSeriesNegativeItemLabelPosition(int series,
            ItemLabelPosition position, boolean notify); ItemLabelPosition getDefaultNegativeItemLabelPosition(); void setDefaultNegativeItemLabelPosition(
            ItemLabelPosition position); void setDefaultNegativeItemLabelPosition(ItemLabelPosition position,
            boolean notify); double getItemLabelAnchorOffset(); void setItemLabelAnchorOffset(double offset); boolean getItemCreateEntity(int series, int item); Boolean getSeriesCreateEntities(int series); void setSeriesCreateEntities(int series, Boolean create); void setSeriesCreateEntities(int series, Boolean create,
                                        boolean notify); boolean getDefaultCreateEntities(); void setDefaultCreateEntities(boolean create); void setDefaultCreateEntities(boolean create, boolean notify); int getDefaultEntityRadius(); void setDefaultEntityRadius(int radius); Shape lookupLegendShape(int series); Shape getLegendShape(int series); void setLegendShape(int series, Shape shape); Shape getDefaultLegendShape(); void setDefaultLegendShape(Shape shape); Font lookupLegendTextFont(int series); Font getLegendTextFont(int series); void setLegendTextFont(int series, Font font); Font getDefaultLegendTextFont(); void setDefaultLegendTextFont(Font font); Paint lookupLegendTextPaint(int series); Paint getLegendTextPaint(int series); void setLegendTextPaint(int series, Paint paint); Paint getDefaultLegendTextPaint(); void setDefaultLegendTextPaint(Paint paint); boolean getDataBoundsIncludesVisibleSeriesOnly(); void setDataBoundsIncludesVisibleSeriesOnly(boolean visibleOnly); void addChangeListener(RendererChangeListener listener); void removeChangeListener(RendererChangeListener listener); boolean hasListener(EventListener listener); void notifyListeners(RendererChangeEvent event); @Override boolean equals(Object obj); @Override int hashCode(); static final Double ZERO; static final Paint DEFAULT_PAINT; static final Paint DEFAULT_OUTLINE_PAINT; static final Stroke DEFAULT_STROKE; static final Stroke DEFAULT_OUTLINE_STROKE; static final Shape DEFAULT_SHAPE; static final Font DEFAULT_VALUE_LABEL_FONT; static final Paint DEFAULT_VALUE_LABEL_PAINT; }