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

The following examples show how to use org.jfree.chart.renderer.category.BarRenderer#setSeriesVisible() . 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 series visibility for ALL series does in fact work.
 */
@Test
public void testSetSeriesVisible() {
    BarRenderer r = new BarRenderer();
    r.setSeriesVisible(Boolean.TRUE);
    assertTrue(r.getItemVisible(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 series visibility for ALL series does in fact work.
 */
@Test
public void testSetSeriesVisible() {
    BarRenderer r = new BarRenderer();
    r.setSeriesVisible(Boolean.TRUE);
    assertTrue(r.getItemVisible(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 series visibility for ALL series does in fact work.
 */
@Test
public void testSetSeriesVisible() {
    BarRenderer r = new BarRenderer();
    r.setSeriesVisible(Boolean.TRUE);
    assertTrue(r.getItemVisible(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 series visibility for ALL series does in fact work.
 */
@Test
public void testSetSeriesVisible() {
    BarRenderer r = new BarRenderer();
    r.setSeriesVisible(Boolean.TRUE);
    assertTrue(r.getItemVisible(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 series visibility for ALL series does in fact work.
 */
@Test
public void testSetSeriesVisible() {
    BarRenderer r = new BarRenderer();
    r.setSeriesVisible(Boolean.TRUE);
    assertTrue(r.getItemVisible(0, 0));
}
 
Example 6
Source File: AbstractRendererTests.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Some checks for the hashCode() method.
 */
public void testHashCode() {
    BarRenderer r1 = new BarRenderer();
    BarRenderer r2 = new BarRenderer();
    assertTrue(r1.hashCode() == r2.hashCode());

    r1.setSeriesVisible(1, Boolean.FALSE);
    assertFalse(r1.hashCode() == r2.hashCode());
    r2.setSeriesVisible(1, Boolean.FALSE);
    assertTrue(r1.hashCode() == r2.hashCode());

    r1.setBaseSeriesVisible(false);
    assertFalse(r1.hashCode() == r2.hashCode());
    r2.setBaseSeriesVisible(false);
    assertTrue(r1.hashCode() == r2.hashCode());

    r1.setSeriesVisibleInLegend(1, Boolean.FALSE);
    assertFalse(r1.hashCode() == r2.hashCode());
    r2.setSeriesVisibleInLegend(1, Boolean.FALSE);
    assertTrue(r1.hashCode() == r2.hashCode());

    r1.setBaseSeriesVisibleInLegend(false);
    assertFalse(r1.hashCode() == r2.hashCode());
    r2.setBaseSeriesVisibleInLegend(false);
    assertTrue(r1.hashCode() == r2.hashCode());

    r1.setSeriesPaint(0, new GradientPaint(1.0f, 2.0f, Color.RED, 3.0f,
            4.0f, Color.BLUE));
    assertFalse(r1.hashCode() == r2.hashCode());
    r2.setSeriesPaint(0, new GradientPaint(1.0f, 2.0f, Color.RED, 3.0f,
            4.0f, Color.BLUE));
    assertTrue(r1.hashCode() == r2.hashCode());

    r1.setBasePaint(new GradientPaint(1.0f, 2.0f, Color.RED, 3.0f,
            4.0f, Color.BLUE));
    assertFalse(r1.hashCode() == r2.hashCode());
    r2.setBasePaint(new GradientPaint(1.0f, 2.0f, Color.RED, 3.0f,
            4.0f, Color.BLUE));
    assertTrue(r1.hashCode() == r2.hashCode());

    r1.setSeriesFillPaint(0, new GradientPaint(1.0f, 2.0f, Color.RED, 3.0f,
            4.0f, Color.BLUE));
    assertFalse(r1.hashCode() == r2.hashCode());
    r2.setSeriesFillPaint(0, new GradientPaint(1.0f, 2.0f, Color.RED, 3.0f,
            4.0f, Color.BLUE));
    assertTrue(r1.hashCode() == r2.hashCode());

    r1.setBaseFillPaint(new GradientPaint(1.0f, 2.0f, Color.RED, 3.0f,
            4.0f, Color.BLUE));
    assertFalse(r1.hashCode() == r2.hashCode());
    r2.setBaseFillPaint(new GradientPaint(1.0f, 2.0f, Color.RED, 3.0f,
            4.0f, Color.BLUE));
    assertTrue(r1.hashCode() == r2.hashCode());

    r1.setSeriesOutlinePaint(0, new GradientPaint(1.0f, 2.0f, Color.RED,
            3.0f, 4.0f, Color.BLUE));
    assertFalse(r1.hashCode() == r2.hashCode());
    r2.setSeriesOutlinePaint(0, new GradientPaint(1.0f, 2.0f, Color.RED,
            3.0f, 4.0f, Color.BLUE));
    assertTrue(r1.hashCode() == r2.hashCode());

    r1.setBaseOutlinePaint(new GradientPaint(1.0f, 2.0f, Color.RED, 3.0f,
            4.0f, Color.BLUE));
    assertFalse(r1.hashCode() == r2.hashCode());
    r2.setBaseOutlinePaint(new GradientPaint(1.0f, 2.0f, Color.RED, 3.0f,
            4.0f, Color.BLUE));
    assertTrue(r1.hashCode() == r2.hashCode());

    r1.setSeriesStroke(0, new BasicStroke(1.1f));
    assertFalse(r1.hashCode() == r2.hashCode());
    r2.setSeriesStroke(0, new BasicStroke(1.1f));
    assertTrue(r1.hashCode() == r2.hashCode());

    r1.setBaseStroke(new BasicStroke(1.5f));
    assertFalse(r1.hashCode() == r2.hashCode());
    r2.setBaseStroke(new BasicStroke(1.5f));
    assertTrue(r1.hashCode() == r2.hashCode());

    r1.setSeriesOutlineStroke(1, new BasicStroke(1.5f));
    assertFalse(r1.hashCode() == r2.hashCode());
    r2.setSeriesOutlineStroke(1, new BasicStroke(1.5f));
    assertTrue(r1.hashCode() == r2.hashCode());

    r1.setBaseOutlineStroke(new BasicStroke(2.0f));
    assertFalse(r1.hashCode() == r2.hashCode());
    r2.setBaseOutlineStroke(new BasicStroke(2.0f));
    assertTrue(r1.hashCode() == r2.hashCode());

    r1.setSeriesItemLabelsVisible(1, true);
    assertFalse(r1.hashCode() == r2.hashCode());
    r2.setSeriesItemLabelsVisible(1, true);
    assertTrue(r1.hashCode() == r2.hashCode());

    r1.setBaseItemLabelsVisible(true);
    assertFalse(r1.hashCode() == r2.hashCode());
    r2.setBaseItemLabelsVisible(true);
    assertTrue(r1.hashCode() == r2.hashCode());
}