当前位置: 首页>>代码示例>>Java>>正文


Java Outlier类代码示例

本文整理汇总了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));
}
 
开发者ID:SpoonLabs,项目名称:astor,代码行数:25,代码来源:OutlierTests.java

示例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);
}
 
开发者ID:SpoonLabs,项目名称:astor,代码行数:10,代码来源:OutlierTests.java

示例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);
}
 
开发者ID:SpoonLabs,项目名称:astor,代码行数:8,代码来源:OutlierTests.java

示例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);
}
 
开发者ID:SpoonLabs,项目名称:astor,代码行数:8,代码来源:OutlierTests.java


注:本文中的org.jfree.chart.renderer.Outlier类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。