/** * A utility method for testing the equality of two arrays of shapes. * * @param s1 the first array (<code>null</code> permitted). * @param s2 the second array (<code>null</code> permitted). * * @return A boolean. */ private boolean equalShapes(Shape[] s1, Shape[] s2) { if (s1 == null) { return s2 == null; } if (s2 == null) { return false; } if (s1.length != s2.length) { return false; } for (int i = 0; i < s1.length; i++) { if (!ShapeUtilities.equal(s1[i], s2[i])) { return false; } } return true; }
return false; if (!ShapeUtilities.equal(this.legendArea, that.legendArea)) { return false;
/** * Tests this renderer for equality with an arbitrary object. * * @param obj the object (<code>null</code> not permitted). * * @return A boolean. */ public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof XYAreaRenderer2)) { return false; } XYAreaRenderer2 that = (XYAreaRenderer2) obj; if (this.showOutline != that.showOutline) { return false; } if (!ShapeUtilities.equal(this.legendArea, that.legendArea)) { return false; } return super.equals(obj); }
/** * Tests this renderer for equality with an arbitrary object. * * @param obj the object (<code>null</code> permitted). * * @return <code>true</code> or <code>false</code>. */ public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof SamplingXYLineRenderer)) { return false; } if (!super.equals(obj)) { return false; } SamplingXYLineRenderer that = (SamplingXYLineRenderer) obj; if (!ShapeUtilities.equal(this.legendLine, that.legendLine)) { return false; } return true; }
return false; if (!ShapeUtilities.equal(this.legendShape, that.legendShape)) { return false;
/** * Tests the list for equality with another object (typically also a list). * * @param obj the other object (<code>null</code> permitted). * * @return A boolean. */ public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof ShapeList)) { return false; } ShapeList that = (ShapeList) obj; int listSize = size(); for (int i = 0; i < listSize; i++) { if (!ShapeUtilities.equal((Shape) get(i), (Shape) that.get(i))) { return false; } } return true; }
/** * Tests the list for equality with another object (typically also a list). * * @param obj the other object (<code>null</code> permitted). * * @return A boolean. */ public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof ShapeList)) { return false; } ShapeList that = (ShapeList) obj; int listSize = size(); for (int i = 0; i < listSize; i++) { if (!ShapeUtilities.equal((Shape) get(i), (Shape) that.get(i))) { return false; } } return true; }
return false; if (!ShapeUtilities.equal(this.legendItemShape, that.legendItemShape)) { return false;
return false; if (!ShapeUtilities.equal(this.legendLine, that.legendLine)) { return false;
return false; if (!ShapeUtilities.equal(this.legendLine, that.legendLine)) { return false;
return false; if (!ShapeUtilities.equal(this.legendBar, that.legendBar)) { return false;
return false; if (!ShapeUtilities.equal(this.legendLine, that.legendLine)) { return false;
return false; if (!ShapeUtilities.equal(this.legendItemShape, that.legendItemShape)) { return false;
return false; if (!ShapeUtilities.equal(this.legendItemShape, that.legendItemShape)) { return false;