@Test public void testEquals() { StandardDialScale s1 = new StandardDialScale(); StandardDialScale s2 = new StandardDialScale(); assertEquals(s1, s2); s1 = new StandardDialScale(10.0, 100.0, 0.0, 270.0, 10.0, 4); assertFalse(s1.equals(s2)); s2 = new StandardDialScale(10.0, 100.0, 0.0, 270.0, 10.0, 4); assertEquals(s1, s2); s1 = new StandardDialScale(10.0, 200.0, 0.0, 270.0, 10.0, 4); assertFalse(s1.equals(s2)); s2 = new StandardDialScale(10.0, 200.0, 0.0, 270.0, 10.0, 4); assertEquals(s1, s2); s1 = new StandardDialScale(10.0, 200.0, 20.0, 270.0, 10.0, 4); assertFalse(s1.equals(s2)); s2 = new StandardDialScale(10.0, 200.0, 20.0, 270.0, 10.0, 4); assertEquals(s1, s2); s1 = new StandardDialScale(10.0, 200.0, 20.0, 99.0, 10.0, 4); assertFalse(s1.equals(s2)); s2 = new StandardDialScale(10.0, 200.0, 20.0, 99.0, 10.0, 4); assertEquals(s1, s2); s1.setTickRadius(0.99); assertFalse(s1.equals(s2)); s2.setTickRadius(0.99); assertEquals(s1, s2); s1.setMajorTickIncrement(11.1); assertFalse(s1.equals(s2)); s2.setMajorTickIncrement(11.1); assertEquals(s1, s2); s1.setMajorTickLength(0.09); assertFalse(s1.equals(s2)); s2.setMajorTickLength(0.09); assertEquals(s1, s2); s1.setMajorTickPaint(new GradientPaint(1.0f, 2.0f, Color.RED, 3.0f, 4.0f, Color.yellow)); assertFalse(s1.equals(s2)); s2.setMajorTickPaint(new GradientPaint(1.0f, 2.0f, Color.RED, 3.0f, 4.0f, Color.yellow)); assertEquals(s1, s2); s1.setMajorTickStroke(new BasicStroke(1.1f)); assertFalse(s1.equals(s2)); s2.setMajorTickStroke(new BasicStroke(1.1f)); assertEquals(s1, s2); s1.setMinorTickCount(7); assertFalse(s1.equals(s2)); s2.setMinorTickCount(7); assertEquals(s1, s2); s1.setMinorTickLength(0.09); assertFalse(s1.equals(s2)); s2.setMinorTickLength(0.09); assertEquals(s1, s2); s1.setTickLabelOffset(0.11); assertFalse(s1.equals(s2)); s2.setTickLabelOffset(0.11); assertEquals(s1, s2); s1.setTickLabelFont(new Font("Dialog", Font.PLAIN, 15)); assertFalse(s1.equals(s2)); s2.setTickLabelFont(new Font("Dialog", Font.PLAIN, 15)); assertEquals(s1, s2); s1.setTickLabelPaint(new GradientPaint(1.0f, 2.0f, Color.WHITE, 3.0f, 4.0f, Color.green)); assertFalse(s1.equals(s2)); s2.setTickLabelPaint(new GradientPaint(1.0f, 2.0f, Color.WHITE, 3.0f, 4.0f, Color.green)); assertEquals(s1, s2); s1.setTickLabelsVisible(false); assertFalse(s1.equals(s2)); s2.setTickLabelsVisible(false); assertEquals(s1, s2); s1.setVisible(false); assertFalse(s1.equals(s2)); s2.setVisible(false); assertEquals(s1, s2); }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof StandardDialScale)) { return false; } StandardDialScale that = (StandardDialScale) obj; if (this.lowerBound != that.lowerBound) { return false; } if (this.upperBound != that.upperBound) { return false; } if (this.startAngle != that.startAngle) { return false; } if (this.extent != that.extent) { return false; } if (this.tickRadius != that.tickRadius) { return false; } if (this.majorTickIncrement != that.majorTickIncrement) { return false; } if (this.majorTickLength != that.majorTickLength) { return false; } if (!PaintUtilities.equal(this.majorTickPaint, that.majorTickPaint)) { return false; } if (!this.majorTickStroke.equals(that.majorTickStroke)) { return false; } if (this.minorTickCount != that.minorTickCount) { return false; } if (this.minorTickLength != that.minorTickLength) { return false; } if (!PaintUtilities.equal(this.minorTickPaint, that.minorTickPaint)) { return false; } if (!this.minorTickStroke.equals(that.minorTickStroke)) { return false; } if (this.tickLabelsVisible != that.tickLabelsVisible) { return false; } if (this.tickLabelOffset != that.tickLabelOffset) { return false; } if (!this.tickLabelFont.equals(that.tickLabelFont)) { return false; } if (!PaintUtilities.equal(this.tickLabelPaint, that.tickLabelPaint)) { return false; } return super.equals(obj); }
StandardDialScale extends AbstractDialLayer implements DialScale,
        Cloneable, PublicCloneable, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof StandardDialScale)) { return false; } StandardDialScale that = (StandardDialScale) obj; if (this.lowerBound != that.lowerBound) { return false; } if (this.upperBound != that.upperBound) { return false; } if (this.startAngle != that.startAngle) { return false; } if (this.extent != that.extent) { return false; } if (this.tickRadius != that.tickRadius) { return false; } if (this.majorTickIncrement != that.majorTickIncrement) { return false; } if (this.majorTickLength != that.majorTickLength) { return false; } if (!PaintUtilities.equal(this.majorTickPaint, that.majorTickPaint)) { return false; } if (!this.majorTickStroke.equals(that.majorTickStroke)) { return false; } if (this.minorTickCount != that.minorTickCount) { return false; } if (this.minorTickLength != that.minorTickLength) { return false; } if (!PaintUtilities.equal(this.minorTickPaint, that.minorTickPaint)) { return false; } if (!this.minorTickStroke.equals(that.minorTickStroke)) { return false; } if (this.tickLabelsVisible != that.tickLabelsVisible) { return false; } if (this.tickLabelOffset != that.tickLabelOffset) { return false; } if (!this.tickLabelFont.equals(that.tickLabelFont)) { return false; } if (!PaintUtilities.equal(this.tickLabelPaint, that.tickLabelPaint)) { return false; } return super.equals(obj); } }
StandardDialScale extends AbstractDialLayer implements DialScale,
        Cloneable, PublicCloneable, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof StandardDialScale)) { return false; } StandardDialScale that = (StandardDialScale) obj; if (this.lowerBound != that.lowerBound) { return false; } if (this.upperBound != that.upperBound) { return false; } if (this.startAngle != that.startAngle) { return false; } if (this.extent != that.extent) { return false; } if (this.tickRadius != that.tickRadius) { return false; } if (this.majorTickIncrement != that.majorTickIncrement) { return false; } if (this.majorTickLength != that.majorTickLength) { return false; } if (!PaintUtilities.equal(this.majorTickPaint, that.majorTickPaint)) { return false; } if (!this.majorTickStroke.equals(that.majorTickStroke)) { return false; } if (this.minorTickCount != that.minorTickCount) { return false; } if (this.minorTickLength != that.minorTickLength) { return false; } if (!PaintUtilities.equal(this.minorTickPaint, that.minorTickPaint)) { return false; } if (!this.minorTickStroke.equals(that.minorTickStroke)) { return false; } if (this.tickLabelsVisible != that.tickLabelsVisible) { return false; } if (this.tickLabelOffset != that.tickLabelOffset) { return false; } if (!this.tickLabelFont.equals(that.tickLabelFont)) { return false; } if (!PaintUtilities.equal(this.tickLabelPaint, that.tickLabelPaint)) { return false; } return super.equals(obj); } StandardDialScale();  StandardDialScale(double lowerBound, double upperBound,
            double startAngle, double extent, double majorTickIncrement,
            int minorTickCount); }
StandardDialScale extends AbstractDialLayer implements DialScale,
        Cloneable, PublicCloneable, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof StandardDialScale)) { return false; } StandardDialScale that = (StandardDialScale) obj; if (this.lowerBound != that.lowerBound) { return false; } if (this.upperBound != that.upperBound) { return false; } if (this.startAngle != that.startAngle) { return false; } if (this.extent != that.extent) { return false; } if (this.tickRadius != that.tickRadius) { return false; } if (this.majorTickIncrement != that.majorTickIncrement) { return false; } if (this.majorTickLength != that.majorTickLength) { return false; } if (!PaintUtilities.equal(this.majorTickPaint, that.majorTickPaint)) { return false; } if (!this.majorTickStroke.equals(that.majorTickStroke)) { return false; } if (this.minorTickCount != that.minorTickCount) { return false; } if (this.minorTickLength != that.minorTickLength) { return false; } if (!PaintUtilities.equal(this.minorTickPaint, that.minorTickPaint)) { return false; } if (!this.minorTickStroke.equals(that.minorTickStroke)) { return false; } if (this.tickLabelsVisible != that.tickLabelsVisible) { return false; } if (this.tickLabelOffset != that.tickLabelOffset) { return false; } if (!this.tickLabelFont.equals(that.tickLabelFont)) { return false; } if (!PaintUtilities.equal(this.tickLabelPaint, that.tickLabelPaint)) { return false; } return super.equals(obj); } StandardDialScale();  StandardDialScale(double lowerBound, double upperBound,
            double startAngle, double extent, double majorTickIncrement,
            int minorTickCount); double getLowerBound(); void setLowerBound(double lower); double getUpperBound(); void setUpperBound(double upper); double getStartAngle(); void setStartAngle(double angle); double getExtent(); void setExtent(double extent); double getTickRadius(); void setTickRadius(double radius); double getMajorTickIncrement(); void setMajorTickIncrement(double increment); double getMajorTickLength(); void setMajorTickLength(double length); Paint getMajorTickPaint(); void setMajorTickPaint(Paint paint); Stroke getMajorTickStroke(); void setMajorTickStroke(Stroke stroke); int getMinorTickCount(); void setMinorTickCount(int count); double getMinorTickLength(); void setMinorTickLength(double length); Paint getMinorTickPaint(); void setMinorTickPaint(Paint paint); Stroke getMinorTickStroke(); void setMinorTickStroke(Stroke stroke); double getTickLabelOffset(); void setTickLabelOffset(double offset); Font getTickLabelFont(); void setTickLabelFont(Font font); Paint getTickLabelPaint(); void setTickLabelPaint(Paint paint); boolean getTickLabelsVisible(); void setTickLabelsVisible(boolean visible); NumberFormat getTickLabelFormatter(); void setTickLabelFormatter(NumberFormat formatter); boolean getFirstTickLabelVisible(); void setFirstTickLabelVisible(boolean visible); @Override boolean isClippedToWindow(); @Override void draw(Graphics2D g2, DialPlot plot, Rectangle2D frame,
            Rectangle2D view); @Override double valueToAngle(double value); @Override double angleToValue(double angle); @Override boolean equals(Object obj); @Override int hashCode(); @Override Object clone(); }
StandardDialScale extends AbstractDialLayer implements DialScale,
        Cloneable, PublicCloneable, Serializable { @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof StandardDialScale)) { return false; } StandardDialScale that = (StandardDialScale) obj; if (this.lowerBound != that.lowerBound) { return false; } if (this.upperBound != that.upperBound) { return false; } if (this.startAngle != that.startAngle) { return false; } if (this.extent != that.extent) { return false; } if (this.tickRadius != that.tickRadius) { return false; } if (this.majorTickIncrement != that.majorTickIncrement) { return false; } if (this.majorTickLength != that.majorTickLength) { return false; } if (!PaintUtilities.equal(this.majorTickPaint, that.majorTickPaint)) { return false; } if (!this.majorTickStroke.equals(that.majorTickStroke)) { return false; } if (this.minorTickCount != that.minorTickCount) { return false; } if (this.minorTickLength != that.minorTickLength) { return false; } if (!PaintUtilities.equal(this.minorTickPaint, that.minorTickPaint)) { return false; } if (!this.minorTickStroke.equals(that.minorTickStroke)) { return false; } if (this.tickLabelsVisible != that.tickLabelsVisible) { return false; } if (this.tickLabelOffset != that.tickLabelOffset) { return false; } if (!this.tickLabelFont.equals(that.tickLabelFont)) { return false; } if (!PaintUtilities.equal(this.tickLabelPaint, that.tickLabelPaint)) { return false; } return super.equals(obj); } StandardDialScale();  StandardDialScale(double lowerBound, double upperBound,
            double startAngle, double extent, double majorTickIncrement,
            int minorTickCount); double getLowerBound(); void setLowerBound(double lower); double getUpperBound(); void setUpperBound(double upper); double getStartAngle(); void setStartAngle(double angle); double getExtent(); void setExtent(double extent); double getTickRadius(); void setTickRadius(double radius); double getMajorTickIncrement(); void setMajorTickIncrement(double increment); double getMajorTickLength(); void setMajorTickLength(double length); Paint getMajorTickPaint(); void setMajorTickPaint(Paint paint); Stroke getMajorTickStroke(); void setMajorTickStroke(Stroke stroke); int getMinorTickCount(); void setMinorTickCount(int count); double getMinorTickLength(); void setMinorTickLength(double length); Paint getMinorTickPaint(); void setMinorTickPaint(Paint paint); Stroke getMinorTickStroke(); void setMinorTickStroke(Stroke stroke); double getTickLabelOffset(); void setTickLabelOffset(double offset); Font getTickLabelFont(); void setTickLabelFont(Font font); Paint getTickLabelPaint(); void setTickLabelPaint(Paint paint); boolean getTickLabelsVisible(); void setTickLabelsVisible(boolean visible); NumberFormat getTickLabelFormatter(); void setTickLabelFormatter(NumberFormat formatter); boolean getFirstTickLabelVisible(); void setFirstTickLabelVisible(boolean visible); @Override boolean isClippedToWindow(); @Override void draw(Graphics2D g2, DialPlot plot, Rectangle2D frame,
            Rectangle2D view); @Override double valueToAngle(double value); @Override double angleToValue(double angle); @Override boolean equals(Object obj); @Override int hashCode(); @Override Object clone();  }