Search in sources :

Example 6 with TextBox

use of org.jfree.text.TextBox in project SIMVA-SoS by SESoS.

the class PieLabelRecordTest method testCloning.

/**
 * Confirm that cloning is not implemented.
 */
@Test
public void testCloning() {
    PieLabelRecord p1 = new PieLabelRecord("A", 1.0, 2.0, new TextBox("B"), 3.0, 4.0, 5.0);
    assertFalse(p1 instanceof Cloneable);
}
Also used : TextBox(org.jfree.text.TextBox) Test(org.junit.Test)

Example 7 with TextBox

use of org.jfree.text.TextBox in project SIMVA-SoS by SESoS.

the class PieLabelRecordTest method testSerialization.

/**
 * Serialize an instance, restore it, and check for equality.
 */
@Test
public void testSerialization() {
    PieLabelRecord p1 = new PieLabelRecord("A", 1.0, 2.0, new TextBox("B"), 3.0, 4.0, 5.0);
    PieLabelRecord p2 = (PieLabelRecord) TestUtilities.serialised(p1);
    boolean b = p1.equals(p2);
    assertTrue(b);
}
Also used : TextBox(org.jfree.text.TextBox) Test(org.junit.Test)

Aggregations

TextBox (org.jfree.text.TextBox)7 Test (org.junit.Test)3 Paint (java.awt.Paint)2 RadialGradientPaint (java.awt.RadialGradientPaint)2 CubicCurve2D (java.awt.geom.CubicCurve2D)2 Line2D (java.awt.geom.Line2D)2 QuadCurve2D (java.awt.geom.QuadCurve2D)2 G2TextMeasurer (org.jfree.text.G2TextMeasurer)2 TextBlock (org.jfree.text.TextBlock)2