Java 类org.jfree.chart.renderer.Outlier 实例源码

项目:astor    文件:OutlierTests.java   
/**
 * A test for the equals() method.
 */
public void testEquals() {
    Outlier out1 = new Outlier(1.0, 2.0, 3.0);
    Outlier out2 = new Outlier(1.0, 2.0, 3.0);
    assertTrue(out1.equals(out2));
    assertTrue(out2.equals(out1));

    out1.setPoint(new Point2D.Double(2.0, 2.0));
    assertFalse(out1.equals(out2));
    out2.setPoint(new Point2D.Double(2.0, 2.0));
    assertTrue(out1.equals(out2));

    out1.setPoint(new Point2D.Double(2.0, 3.0));
    assertFalse(out1.equals(out2));
    out2.setPoint(new Point2D.Double(2.0, 3.0));
    assertTrue(out1.equals(out2));

    out1.setRadius(4.0);
    assertFalse(out1.equals(out2));
    out2.setRadius(4.0);
    assertTrue(out1.equals(out2));
}
项目:astor    文件:OutlierTests.java   
/**
 * Simple check for the default constructor.
 */
public void testConstructor() {
    Outlier out = new Outlier(1.0, 2.0, 3.0);
    assertEquals(-2.0, out.getX(), EPSILON);
    assertEquals(-1.0, out.getY(), EPSILON);
    assertEquals(3.0, out.getRadius(), EPSILON);
}
项目:astor    文件:OutlierTests.java   
/**
 * Confirm that cloning is not implemented.
 */
public void testCloning() {
    Outlier out1 = new Outlier(1.0, 2.0, 3.0);
    assertFalse(out1 instanceof Cloneable);
}
项目:astor    文件:OutlierTests.java   
/**
 * Confirm that serialization is not implemented.
 */
public void testSerialization() {
    Outlier out1 = new Outlier(1.0, 2.0, 3.0);
    assertFalse(out1 instanceof Serializable);
}