當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。