本文整理汇总了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));
}
示例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);
}
示例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);
}