assertFalse(plot1.equals(plot2));
plot2.setExplodePercent("A", 0.33);
assertTrue(plot1.equals(plot2));
// labelGenerator
plot1.setLabelGenerator(new StandardPieSectionLabelGenerator(
"{2}{1}{0}"));
assertFalse(plot1.equals(plot2));
plot2.setLabelGenerator(new StandardPieSectionLabelGenerator(
"{2}{1}{0}"));
assertTrue(plot1.equals(plot2));
// labelFont
Font f = new Font("SansSerif", Font.PLAIN, 20);
plot1.setLabelFont(f);
assertFalse(plot1.equals(plot2));
plot2.setLabelFont(f);
assertTrue(plot1.equals(plot2));
// labelPaint
plot1.setLabelPaint(new GradientPaint(1.0f, 2.0f, Color.magenta,
3.0f, 4.0f, Color.white));
assertFalse(plot1.equals(plot2));
plot2.setLabelPaint(new GradientPaint(1.0f, 2.0f, Color.magenta,
3.0f, 4.0f, Color.white));
assertTrue(plot1.equals(plot2));
// maximumLabelWidth
plot1.setMaximumLabelWidth(0.33);
assertFalse(plot1.equals(plot2));
plot2.setMaximumLabelWidth(0.33);
assertTrue(plot1.equals(plot2));
// labelGap
plot1.setLabelGap(0.11);
assertFalse(plot1.equals(plot2));
plot2.setLabelGap(0.11);
assertTrue(plot1.equals(plot2));
// links visible
plot1.setLabelLinksVisible(false);
assertFalse(plot1.equals(plot2));
plot2.setLabelLinksVisible(false);
assertTrue(plot1.equals(plot2));
plot1.setLabelLinkStyle(PieLabelLinkStyle.QUAD_CURVE);
assertFalse(plot1.equals(plot2));
plot2.setLabelLinkStyle(PieLabelLinkStyle.QUAD_CURVE);
assertTrue(plot1.equals(plot2));
// linkMargin
plot1.setLabelLinkMargin(0.11);
assertFalse(plot1.equals(plot2));
plot2.setLabelLinkMargin(0.11);
assertTrue(plot1.equals(plot2));
// labelLinkPaint
plot1.setLabelLinkPaint(new GradientPaint(1.0f, 2.0f, Color.magenta,
3.0f, 4.0f, Color.white));
assertFalse(plot1.equals(plot2));
plot2.setLabelLinkPaint(new GradientPaint(1.0f, 2.0f, Color.magenta,
3.0f, 4.0f, Color.white));
assertTrue(plot1.equals(plot2));
// labelLinkStroke
plot1.setLabelLinkStroke(new BasicStroke(1.0f));
assertFalse(plot1.equals(plot2));
plot2.setLabelLinkStroke(new BasicStroke(1.0f));
assertTrue(plot1.equals(plot2));
// toolTipGenerator
plot1.setToolTipGenerator(
new StandardPieToolTipGenerator("{2}{1}{0}")
);
assertFalse(plot1.equals(plot2));
plot2.setToolTipGenerator(
new StandardPieToolTipGenerator("{2}{1}{0}")
);
assertTrue(plot1.equals(plot2));
// urlGenerator
plot1.setURLGenerator(new StandardPieURLGenerator("xx"));
assertFalse(plot1.equals(plot2));
plot2.setURLGenerator(new StandardPieURLGenerator("xx"));
assertTrue(plot1.equals(plot2));
// minimumArcAngleToDraw
plot1.setMinimumArcAngleToDraw(1.0);
assertFalse(plot1.equals(plot2));
plot2.setMinimumArcAngleToDraw(1.0);
assertTrue(plot1.equals(plot2));
// legendItemShape
plot1.setLegendItemShape(new Rectangle2D.Double(1.0, 2.0, 3.0, 4.0));
assertFalse(plot1.equals(plot2));
plot2.setLegendItemShape(new Rectangle2D.Double(1.0, 2.0, 3.0, 4.0));
assertTrue(plot1.equals(plot2));
// legendLabelGenerator
plot1.setLegendLabelGenerator(new StandardPieSectionLabelGenerator(
"{0} --> {1}"));
assertFalse(plot1.equals(plot2));
plot2.setLegendLabelGenerator(new StandardPieSectionLabelGenerator(
"{0} --> {1}"));
assertTrue(plot1.equals(plot2));
// legendLabelToolTipGenerator
plot1.setLegendLabelToolTipGenerator(
new StandardPieSectionLabelGenerator("{0} is {1}"));
assertFalse(plot1.equals(plot2));
plot2.setLegendLabelToolTipGenerator(
new StandardPieSectionLabelGenerator("{0} is {1}"));
assertTrue(plot1.equals(plot2));
// legendLabelURLGenerator
plot1.setLegendLabelURLGenerator(new StandardPieURLGenerator(
"index.html"));