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


Java VectorRenderer类代码示例

本文整理汇总了Java中org.jfree.chart.renderer.xy.VectorRenderer的典型用法代码示例。如果您正苦于以下问题:Java VectorRenderer类的具体用法?Java VectorRenderer怎么用?Java VectorRenderer使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


VectorRenderer类属于org.jfree.chart.renderer.xy包,在下文中一共展示了VectorRenderer类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: testEquals

import org.jfree.chart.renderer.xy.VectorRenderer; //导入依赖的package包/类
/**
 * Test that the equals() method distinguishes all fields.
 */
public void testEquals() {
    // default instances
    VectorRenderer r1 = new VectorRenderer();
    VectorRenderer r2 = new VectorRenderer();
    assertTrue(r1.equals(r2));
    assertTrue(r2.equals(r1));

    // check that super class fields are being looked at...
    r1.setSeriesFillPaint(0, Color.green);
    assertFalse(r1.equals(r2));
    r2.setSeriesFillPaint(0, Color.green);
    assertTrue(r1.equals(r2));
}
 
开发者ID:SpoonLabs,项目名称:astor,代码行数:17,代码来源:VectorRendererTests.java

示例2: testHashcode

import org.jfree.chart.renderer.xy.VectorRenderer; //导入依赖的package包/类
/**
 * Two objects that are equal are required to return the same hashCode.
 */
public void testHashcode() {
    VectorRenderer r1 = new VectorRenderer();
    VectorRenderer r2 = new VectorRenderer();
    assertTrue(r1.equals(r2));
    int h1 = r1.hashCode();
    int h2 = r2.hashCode();
    assertEquals(h1, h2);
}
 
开发者ID:SpoonLabs,项目名称:astor,代码行数:12,代码来源:VectorRendererTests.java

示例3: testPublicCloneable

import org.jfree.chart.renderer.xy.VectorRenderer; //导入依赖的package包/类
/**
 * Verify that this class implements {@link PublicCloneable}.
 */
public void testPublicCloneable() {
    VectorRenderer r1 = new VectorRenderer();
    assertTrue(r1 instanceof PublicCloneable);
}
 
开发者ID:SpoonLabs,项目名称:astor,代码行数:8,代码来源:VectorRendererTests.java


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