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

The following examples show how to use org.jfree.chart.renderer.category.BarRenderer#setNegativeItemLabelPosition() . 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 that setting the negative item label position for ALL series does
 * in fact work.
 */
@Test
public void testSetNegativeItemLabelPosition() {
    BarRenderer r = new BarRenderer();
    r.setNegativeItemLabelPosition(new ItemLabelPosition(
            ItemLabelAnchor.INSIDE1, TextAnchor.BASELINE_LEFT));
    assertEquals(new ItemLabelPosition(
            ItemLabelAnchor.INSIDE1, TextAnchor.BASELINE_LEFT),
            r.getNegativeItemLabelPosition(0, 0));
}
 
Example 2
Source File: AbstractRendererTest.java    From ccu-historian with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Test that setting the negative item label position for ALL series does
 * in fact work.
 */
@Test
public void testSetNegativeItemLabelPosition() {
    BarRenderer r = new BarRenderer();
    r.setNegativeItemLabelPosition(new ItemLabelPosition(
            ItemLabelAnchor.INSIDE1, TextAnchor.BASELINE_LEFT));
    assertEquals(new ItemLabelPosition(
            ItemLabelAnchor.INSIDE1, TextAnchor.BASELINE_LEFT),
            r.getNegativeItemLabelPosition(0, 0));
}
 
Example 3
Source File: AbstractRendererTest.java    From SIMVA-SoS with Apache License 2.0 5 votes vote down vote up
/**
 * Test that setting the negative item label position for ALL series does
 * in fact work.
 */
@Test
public void testSetNegativeItemLabelPosition() {
    BarRenderer r = new BarRenderer();
    r.setNegativeItemLabelPosition(new ItemLabelPosition(
            ItemLabelAnchor.INSIDE1, TextAnchor.BASELINE_LEFT));
    assertEquals(new ItemLabelPosition(
            ItemLabelAnchor.INSIDE1, TextAnchor.BASELINE_LEFT),
            r.getNegativeItemLabelPosition(0, 0));
}
 
Example 4
Source File: AbstractRendererTest.java    From ECG-Viewer with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Test that setting the negative item label position for ALL series does
 * in fact work.
 */
@Test
public void testSetNegativeItemLabelPosition() {
    BarRenderer r = new BarRenderer();
    r.setNegativeItemLabelPosition(new ItemLabelPosition(
            ItemLabelAnchor.INSIDE1, TextAnchor.BASELINE_LEFT));
    assertEquals(new ItemLabelPosition(
            ItemLabelAnchor.INSIDE1, TextAnchor.BASELINE_LEFT),
            r.getNegativeItemLabelPosition(0, 0));
}
 
Example 5
Source File: AbstractRendererTest.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Test that setting the negative item label position for ALL series does
 * in fact work.
 */
@Test
public void testSetNegativeItemLabelPosition() {
    BarRenderer r = new BarRenderer();
    r.setNegativeItemLabelPosition(new ItemLabelPosition(
            ItemLabelAnchor.INSIDE1, TextAnchor.BASELINE_LEFT));
    assertEquals(new ItemLabelPosition(
            ItemLabelAnchor.INSIDE1, TextAnchor.BASELINE_LEFT),
            r.getNegativeItemLabelPosition(0, 0));
}