@Test public void testEquals() { DialValueIndicator i1 = new DialValueIndicator(0); DialValueIndicator i2 = new DialValueIndicator(0); assertEquals(i1, i2); i1.setDatasetIndex(99); assertFalse(i1.equals(i2)); i2.setDatasetIndex(99); assertEquals(i1, i2); i1.setAngle(43); assertFalse(i1.equals(i2)); i2.setAngle(43); assertEquals(i1, i2); i1.setRadius(0.77); assertFalse(i1.equals(i2)); i2.setRadius(0.77); assertEquals(i1, i2); i1.setFrameAnchor(RectangleAnchor.TOP_LEFT); assertFalse(i1.equals(i2)); i2.setFrameAnchor(RectangleAnchor.TOP_LEFT); assertEquals(i1, i2); i1.setTemplateValue(1.23); assertFalse(i1.equals(i2)); i2.setTemplateValue(1.23); assertEquals(i1, i2); i1.setFont(new Font("Dialog", Font.PLAIN, 7)); assertFalse(i1.equals(i2)); i2.setFont(new Font("Dialog", Font.PLAIN, 7)); assertEquals(i1, i2); i1.setPaint(new GradientPaint(1.0f, 2.0f, Color.RED, 3.0f, 4.0f, Color.green)); assertFalse(i1.equals(i2)); i2.setPaint(new GradientPaint(1.0f, 2.0f, Color.RED, 3.0f, 4.0f, Color.green)); assertEquals(i1, i2); i1.setBackgroundPaint(new GradientPaint(1.0f, 2.0f, Color.RED, 3.0f, 4.0f, Color.green)); assertFalse(i1.equals(i2)); i2.setBackgroundPaint(new GradientPaint(1.0f, 2.0f, Color.RED, 3.0f, 4.0f, Color.green)); assertEquals(i1, i2); i1.setOutlineStroke(new BasicStroke(1.1f)); assertFalse(i1.equals(i2)); i2.setOutlineStroke(new BasicStroke(1.1f)); assertEquals(i1, i2); i1.setOutlinePaint(new GradientPaint(1.0f, 2.0f, Color.RED, 3.0f, 4.0f, Color.green)); assertFalse(i1.equals(i2)); i2.setOutlinePaint(new GradientPaint(1.0f, 2.0f, Color.RED, 3.0f, 4.0f, Color.green)); assertEquals(i1, i2); i1.setInsets(new RectangleInsets(1, 2, 3, 4)); assertFalse(i1.equals(i2)); i2.setInsets(new RectangleInsets(1, 2, 3, 4)); assertEquals(i1, i2); i1.setValueAnchor(RectangleAnchor.BOTTOM_LEFT); assertFalse(i1.equals(i2)); i2.setValueAnchor(RectangleAnchor.BOTTOM_LEFT); assertEquals(i1, i2); i1.setTextAnchor(TextAnchor.TOP_LEFT); assertFalse(i1.equals(i2)); i2.setTextAnchor(TextAnchor.TOP_LEFT); assertEquals(i1, i2); i1.setVisible(false); assertFalse(i1.equals(i2)); i2.setVisible(false); assertEquals(i1, i2); }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof DialValueIndicator)) { return false; } DialValueIndicator that = (DialValueIndicator) obj; if (this.datasetIndex != that.datasetIndex) { return false; } if (this.angle != that.angle) { return false; } if (this.radius != that.radius) { return false; } if (!this.frameAnchor.equals(that.frameAnchor)) { return false; } if (!this.templateValue.equals(that.templateValue)) { return false; } if (!ObjectUtilities.equal(this.maxTemplateValue, that.maxTemplateValue)) { return false; } if (!this.font.equals(that.font)) { return false; } if (!PaintUtilities.equal(this.paint, that.paint)) { return false; } if (!PaintUtilities.equal(this.backgroundPaint, that.backgroundPaint)) { return false; } if (!this.outlineStroke.equals(that.outlineStroke)) { return false; } if (!PaintUtilities.equal(this.outlinePaint, that.outlinePaint)) { return false; } if (!this.insets.equals(that.insets)) { return false; } if (!this.valueAnchor.equals(that.valueAnchor)) { return false; } if (!this.textAnchor.equals(that.textAnchor)) { return false; } return super.equals(obj); }
DialValueIndicator extends AbstractDialLayer implements DialLayer,
        Cloneable, PublicCloneable, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof DialValueIndicator)) { return false; } DialValueIndicator that = (DialValueIndicator) obj; if (this.datasetIndex != that.datasetIndex) { return false; } if (this.angle != that.angle) { return false; } if (this.radius != that.radius) { return false; } if (!this.frameAnchor.equals(that.frameAnchor)) { return false; } if (!this.templateValue.equals(that.templateValue)) { return false; } if (!ObjectUtilities.equal(this.maxTemplateValue, that.maxTemplateValue)) { return false; } if (!this.font.equals(that.font)) { return false; } if (!PaintUtilities.equal(this.paint, that.paint)) { return false; } if (!PaintUtilities.equal(this.backgroundPaint, that.backgroundPaint)) { return false; } if (!this.outlineStroke.equals(that.outlineStroke)) { return false; } if (!PaintUtilities.equal(this.outlinePaint, that.outlinePaint)) { return false; } if (!this.insets.equals(that.insets)) { return false; } if (!this.valueAnchor.equals(that.valueAnchor)) { return false; } if (!this.textAnchor.equals(that.textAnchor)) { return false; } return super.equals(obj); } }
DialValueIndicator extends AbstractDialLayer implements DialLayer,
        Cloneable, PublicCloneable, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof DialValueIndicator)) { return false; } DialValueIndicator that = (DialValueIndicator) obj; if (this.datasetIndex != that.datasetIndex) { return false; } if (this.angle != that.angle) { return false; } if (this.radius != that.radius) { return false; } if (!this.frameAnchor.equals(that.frameAnchor)) { return false; } if (!this.templateValue.equals(that.templateValue)) { return false; } if (!ObjectUtilities.equal(this.maxTemplateValue, that.maxTemplateValue)) { return false; } if (!this.font.equals(that.font)) { return false; } if (!PaintUtilities.equal(this.paint, that.paint)) { return false; } if (!PaintUtilities.equal(this.backgroundPaint, that.backgroundPaint)) { return false; } if (!this.outlineStroke.equals(that.outlineStroke)) { return false; } if (!PaintUtilities.equal(this.outlinePaint, that.outlinePaint)) { return false; } if (!this.insets.equals(that.insets)) { return false; } if (!this.valueAnchor.equals(that.valueAnchor)) { return false; } if (!this.textAnchor.equals(that.textAnchor)) { return false; } return super.equals(obj); } DialValueIndicator();  DialValueIndicator(int datasetIndex); }
DialValueIndicator extends AbstractDialLayer implements DialLayer,
        Cloneable, PublicCloneable, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof DialValueIndicator)) { return false; } DialValueIndicator that = (DialValueIndicator) obj; if (this.datasetIndex != that.datasetIndex) { return false; } if (this.angle != that.angle) { return false; } if (this.radius != that.radius) { return false; } if (!this.frameAnchor.equals(that.frameAnchor)) { return false; } if (!this.templateValue.equals(that.templateValue)) { return false; } if (!ObjectUtilities.equal(this.maxTemplateValue, that.maxTemplateValue)) { return false; } if (!this.font.equals(that.font)) { return false; } if (!PaintUtilities.equal(this.paint, that.paint)) { return false; } if (!PaintUtilities.equal(this.backgroundPaint, that.backgroundPaint)) { return false; } if (!this.outlineStroke.equals(that.outlineStroke)) { return false; } if (!PaintUtilities.equal(this.outlinePaint, that.outlinePaint)) { return false; } if (!this.insets.equals(that.insets)) { return false; } if (!this.valueAnchor.equals(that.valueAnchor)) { return false; } if (!this.textAnchor.equals(that.textAnchor)) { return false; } return super.equals(obj); } DialValueIndicator();  DialValueIndicator(int datasetIndex); int getDatasetIndex(); void setDatasetIndex(int index); double getAngle(); void setAngle(double angle); double getRadius(); void setRadius(double radius); RectangleAnchor getFrameAnchor(); void setFrameAnchor(RectangleAnchor anchor); Number getTemplateValue(); void setTemplateValue(Number value); Number getMaxTemplateValue(); void setMaxTemplateValue(Number value); NumberFormat getNumberFormat(); void setNumberFormat(NumberFormat formatter); Font getFont(); void setFont(Font font); Paint getPaint(); void setPaint(Paint paint); Paint getBackgroundPaint(); void setBackgroundPaint(Paint paint); Stroke getOutlineStroke(); void setOutlineStroke(Stroke stroke); Paint getOutlinePaint(); void setOutlinePaint(Paint paint); RectangleInsets getInsets(); void setInsets(RectangleInsets insets); RectangleAnchor getValueAnchor(); void setValueAnchor(RectangleAnchor anchor); TextAnchor getTextAnchor(); void setTextAnchor(TextAnchor anchor); @Override boolean isClippedToWindow(); @Override void draw(Graphics2D g2, DialPlot plot, Rectangle2D frame,
            Rectangle2D view); @Override boolean equals(Object obj); @Override int hashCode(); @Override Object clone(); }
DialValueIndicator extends AbstractDialLayer implements DialLayer,
        Cloneable, PublicCloneable, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof DialValueIndicator)) { return false; } DialValueIndicator that = (DialValueIndicator) obj; if (this.datasetIndex != that.datasetIndex) { return false; } if (this.angle != that.angle) { return false; } if (this.radius != that.radius) { return false; } if (!this.frameAnchor.equals(that.frameAnchor)) { return false; } if (!this.templateValue.equals(that.templateValue)) { return false; } if (!ObjectUtilities.equal(this.maxTemplateValue, that.maxTemplateValue)) { return false; } if (!this.font.equals(that.font)) { return false; } if (!PaintUtilities.equal(this.paint, that.paint)) { return false; } if (!PaintUtilities.equal(this.backgroundPaint, that.backgroundPaint)) { return false; } if (!this.outlineStroke.equals(that.outlineStroke)) { return false; } if (!PaintUtilities.equal(this.outlinePaint, that.outlinePaint)) { return false; } if (!this.insets.equals(that.insets)) { return false; } if (!this.valueAnchor.equals(that.valueAnchor)) { return false; } if (!this.textAnchor.equals(that.textAnchor)) { return false; } return super.equals(obj); } DialValueIndicator();  DialValueIndicator(int datasetIndex); int getDatasetIndex(); void setDatasetIndex(int index); double getAngle(); void setAngle(double angle); double getRadius(); void setRadius(double radius); RectangleAnchor getFrameAnchor(); void setFrameAnchor(RectangleAnchor anchor); Number getTemplateValue(); void setTemplateValue(Number value); Number getMaxTemplateValue(); void setMaxTemplateValue(Number value); NumberFormat getNumberFormat(); void setNumberFormat(NumberFormat formatter); Font getFont(); void setFont(Font font); Paint getPaint(); void setPaint(Paint paint); Paint getBackgroundPaint(); void setBackgroundPaint(Paint paint); Stroke getOutlineStroke(); void setOutlineStroke(Stroke stroke); Paint getOutlinePaint(); void setOutlinePaint(Paint paint); RectangleInsets getInsets(); void setInsets(RectangleInsets insets); RectangleAnchor getValueAnchor(); void setValueAnchor(RectangleAnchor anchor); TextAnchor getTextAnchor(); void setTextAnchor(TextAnchor anchor); @Override boolean isClippedToWindow(); @Override void draw(Graphics2D g2, DialPlot plot, Rectangle2D frame,
            Rectangle2D view); @Override boolean equals(Object obj); @Override int hashCode(); @Override Object clone();  }