Java Code Examples for org.jfree.chart.renderer.category.BarRenderer#setLegendTextFont()

The following examples show how to use org.jfree.chart.renderer.category.BarRenderer#setLegendTextFont() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AbstractRendererTest.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
@Test
public void testEquals_ObjectList2() {
    BarRenderer r1 = new BarRenderer();
    r1.setLegendTextFont(0, new Font(Font.DIALOG, Font.BOLD, 10));
    BarRenderer r2 = new BarRenderer();
    r2.setLegendTextFont(0, new Font(Font.DIALOG, Font.BOLD, 10));
    assertEquals(r1, r2);
    r2.setLegendTextFont(1, new Font(Font.DIALOG, Font.PLAIN, 5));
    assertNotEquals(r1, r2);
}
 
Example 2
Source File: AbstractRendererTest.java    From ccu-historian with GNU General Public License v3.0 5 votes vote down vote up
@Test
public void testEquals_ObjectList2() {
    BarRenderer r1 = new BarRenderer();
    r1.setLegendTextFont(0, new Font(Font.DIALOG, Font.BOLD, 10));
    BarRenderer r2 = new BarRenderer();
    r2.setLegendTextFont(0, new Font(Font.DIALOG, Font.BOLD, 10));
    assertEquals(r1, r2);
    r2.setLegendTextFont(1, new Font(Font.DIALOG, Font.PLAIN, 5));
    assertNotEquals(r1, r2);
}
 
Example 3
Source File: AbstractRendererTest.java    From SIMVA-SoS with Apache License 2.0 5 votes vote down vote up
@Test
public void testEquals_ObjectList2() {
    BarRenderer r1 = new BarRenderer();
    r1.setLegendTextFont(0, new Font(Font.DIALOG, Font.BOLD, 10));
    BarRenderer r2 = new BarRenderer();
    r2.setLegendTextFont(0, new Font(Font.DIALOG, Font.BOLD, 10));
    assertEquals(r1, r2);
    r2.setLegendTextFont(1, new Font(Font.DIALOG, Font.PLAIN, 5));
    assertNotEquals(r1, r2);
}
 
Example 4
Source File: AbstractRendererTest.java    From ECG-Viewer with GNU General Public License v2.0 5 votes vote down vote up
@Test
public void testEquals_ObjectList2() {
    BarRenderer r1 = new BarRenderer();
    r1.setLegendTextFont(0, new Font(Font.DIALOG, Font.BOLD, 10));
    BarRenderer r2 = new BarRenderer();
    r2.setLegendTextFont(0, new Font(Font.DIALOG, Font.BOLD, 10));
    assertEquals(r1, r2);
    r2.setLegendTextFont(1, new Font(Font.DIALOG, Font.PLAIN, 5));
    assertNotEquals(r1, r2);
}
 
Example 5
Source File: AbstractRendererTest.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
@Test
public void testEquals_ObjectList2() {
    BarRenderer r1 = new BarRenderer();
    r1.setLegendTextFont(0, new Font(Font.DIALOG, Font.BOLD, 10));
    BarRenderer r2 = new BarRenderer();
    r2.setLegendTextFont(0, new Font(Font.DIALOG, Font.BOLD, 10));
    assertEquals(r1, r2);
    r2.setLegendTextFont(1, new Font(Font.DIALOG, Font.PLAIN, 5));
    assertNotEquals(r1, r2);
}