assertFalse(plot1.equals(plot2));
plot2.addRangeMarker(1, new ValueMarker(99.0), Layer.BACKGROUND);
assertTrue(plot1.equals(plot2));
// fixed legend items
plot1.setFixedLegendItems(new LegendItemCollection());
assertFalse(plot1.equals(plot2));
plot2.setFixedLegendItems(new LegendItemCollection());
assertTrue(plot1.equals(plot2));
// weight
plot1.setWeight(3);
assertFalse(plot1.equals(plot2));
plot2.setWeight(3);
assertTrue(plot1.equals(plot2));
// quadrant origin
plot1.setQuadrantOrigin(new Point2D.Double(12.3, 45.6));
assertFalse(plot1.equals(plot2));
plot2.setQuadrantOrigin(new Point2D.Double(12.3, 45.6));
assertTrue(plot1.equals(plot2));
// quadrant paint
plot1.setQuadrantPaint(0, new GradientPaint(1.0f, 2.0f, Color.red,
3.0f, 4.0f, Color.blue));
assertFalse(plot1.equals(plot2));
plot2.setQuadrantPaint(0, new GradientPaint(1.0f, 2.0f, Color.red,
3.0f, 4.0f, Color.blue));
assertTrue(plot1.equals(plot2));
plot1.setQuadrantPaint(1, new GradientPaint(2.0f, 3.0f, Color.red,
4.0f, 5.0f, Color.blue));
assertFalse(plot1.equals(plot2));
plot2.setQuadrantPaint(1, new GradientPaint(2.0f, 3.0f, Color.red,
4.0f, 5.0f, Color.blue));
assertTrue(plot1.equals(plot2));
plot1.setQuadrantPaint(2, new GradientPaint(3.0f, 4.0f, Color.red,
5.0f, 6.0f, Color.blue));
assertFalse(plot1.equals(plot2));
plot2.setQuadrantPaint(2, new GradientPaint(3.0f, 4.0f, Color.red,
5.0f, 6.0f, Color.blue));
assertTrue(plot1.equals(plot2));
plot1.setQuadrantPaint(3, new GradientPaint(4.0f, 5.0f, Color.red,
6.0f, 7.0f, Color.blue));
assertFalse(plot1.equals(plot2));
plot2.setQuadrantPaint(3, new GradientPaint(4.0f, 5.0f, Color.red,
6.0f, 7.0f, Color.blue));
assertTrue(plot1.equals(plot2));
plot1.setDomainTickBandPaint(Color.red);
assertFalse(plot1.equals(plot2));
plot2.setDomainTickBandPaint(Color.red);
assertTrue(plot1.equals(plot2));
plot1.setRangeTickBandPaint(Color.blue);
assertFalse(plot1.equals(plot2));
plot2.setRangeTickBandPaint(Color.blue);
assertTrue(plot1.equals(plot2));
plot1.setDomainMinorGridlinesVisible(true);
assertFalse(plot1.equals(plot2));
plot2.setDomainMinorGridlinesVisible(true);
assertTrue(plot1.equals(plot2));
plot1.setDomainMinorGridlinePaint(Color.red);
assertFalse(plot1.equals(plot2));
plot2.setDomainMinorGridlinePaint(Color.red);
assertTrue(plot1.equals(plot2));
plot1.setDomainGridlineStroke(new BasicStroke(1.1f));
assertFalse(plot1.equals(plot2));
plot2.setDomainGridlineStroke(new BasicStroke(1.1f));
assertTrue(plot1.equals(plot2));
plot1.setRangeMinorGridlinesVisible(true);
assertFalse(plot1.equals(plot2));
plot2.setRangeMinorGridlinesVisible(true);
assertTrue(plot1.equals(plot2));
plot1.setRangeMinorGridlinePaint(Color.blue);
assertFalse(plot1.equals(plot2));
plot2.setRangeMinorGridlinePaint(Color.blue);
assertTrue(plot1.equals(plot2));
plot1.setRangeMinorGridlineStroke(new BasicStroke(1.23f));
assertFalse(plot1.equals(plot2));
plot2.setRangeMinorGridlineStroke(new BasicStroke(1.23f));
assertTrue(plot1.equals(plot2));
List axisIndices = Arrays.asList(new Integer[] {new Integer(0),
new Integer(1)});
plot1.mapDatasetToDomainAxes(0, axisIndices);
assertFalse(plot1.equals(plot2));
plot2.mapDatasetToDomainAxes(0, axisIndices);
assertTrue(plot1.equals(plot2));
plot1.mapDatasetToRangeAxes(0, axisIndices);
assertFalse(plot1.equals(plot2));
plot2.mapDatasetToRangeAxes(0, axisIndices);
assertTrue(plot1.equals(plot2));
// shadowGenerator
plot1.setShadowGenerator(new DefaultShadowGenerator(5, Color.gray,
0.6f, 4, -Math.PI / 4));
assertFalse(plot1.equals(plot2));
plot2.setShadowGenerator(new DefaultShadowGenerator(5, Color.gray,
0.6f, 4, -Math.PI / 4));
assertTrue(plot1.equals(plot2));
plot1.setShadowGenerator(null);
assertFalse(plot1.equals(plot2));
plot2.setShadowGenerator(null);
assertTrue(plot1.equals(plot2));
LegendItemCollection lic1 = new LegendItemCollection();
lic1.add(new LegendItem("XYZ", Color.red));
plot1.setFixedLegendItems(lic1);
assertFalse(plot1.equals(plot2));
LegendItemCollection lic2 = new LegendItemCollection();
lic2.add(new LegendItem("XYZ", Color.red));
plot2.setFixedLegendItems(lic2);
assertTrue(plot1.equals(plot2));
}