本文整理汇总了Java中org.jfree.chart.renderer.Outlier类的典型用法代码示例。如果您正苦于以下问题:Java Outlier类的具体用法?Java Outlier怎么用?Java Outlier使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Outlier类属于org.jfree.chart.renderer包,在下文中一共展示了Outlier类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testEquals
import org.jfree.chart.renderer.Outlier; //导入依赖的package包/类
/**
* 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));
}
示例2: testConstructor
import org.jfree.chart.renderer.Outlier; //导入依赖的package包/类
/**
* 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);
}
示例3: testCloning
import org.jfree.chart.renderer.Outlier; //导入依赖的package包/类
/**
* Confirm that cloning is not implemented.
*/
public void testCloning() {
Outlier out1 = new Outlier(1.0, 2.0, 3.0);
assertFalse(out1 instanceof Cloneable);
}
示例4: testSerialization
import org.jfree.chart.renderer.Outlier; //导入依赖的package包/类
/**
* Confirm that serialization is not implemented.
*/
public void testSerialization() {
Outlier out1 = new Outlier(1.0, 2.0, 3.0);
assertFalse(out1 instanceof Serializable);
}