本文整理匯總了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);
}