Java Code Examples for org.jfree.chart.renderer.xy.XYAreaRenderer2#setOutline()

The following examples show how to use org.jfree.chart.renderer.xy.XYAreaRenderer2#setOutline() . 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: XYAreaRenderer2Tests.java    From astor with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Check that the equals() method distinguishes all fields.
 */
public void testEquals() {
    XYAreaRenderer2 r1 = new XYAreaRenderer2();
    XYAreaRenderer2 r2 = new XYAreaRenderer2();
    assertEquals(r1, r2);

    r1.setOutline(!r1.isOutline());
    assertFalse(r1.equals(r2));
    r2.setOutline(r1.isOutline());
    assertTrue(r1.equals(r2));

    r1.setLegendArea(new Rectangle(1, 2, 3, 4));
    assertFalse(r1.equals(r2));
    r2.setLegendArea(new Rectangle(1, 2, 3, 4));
    assertTrue(r1.equals(r2));
}
 
Example 2
Source File: XYAreaRenderer2Tests.java    From astor with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Check that the equals() method distinguishes all fields.
 */
public void testEquals() {
    XYAreaRenderer2 r1 = new XYAreaRenderer2();
    XYAreaRenderer2 r2 = new XYAreaRenderer2();
    assertEquals(r1, r2);
    
    r1.setOutline(!r1.isOutline());
    assertFalse(r1.equals(r2));
    r2.setOutline(r1.isOutline());
    assertTrue(r1.equals(r2));
    
    r1.setLegendArea(new Rectangle(1, 2, 3, 4));
    assertFalse(r1.equals(r2));
    r2.setLegendArea(new Rectangle(1, 2, 3, 4));
    assertTrue(r1.equals(r2));
}
 
Example 3
Source File: ChartRendererFactory.java    From rapidminer-studio with GNU Affero General Public License v3.0 5 votes vote down vote up
private static void configureXYAreaRenderer2(ValueSourceData valueSourceData, XYAreaRenderer2 renderer) {
	int seriesCount = valueSourceData.getSeriesCount();
	SeriesFormat seriesFormat = valueSourceData.getValueSource().getSeriesFormat();
	// Loop all series and set series format.
	// Format based on dimension configs will be set later on in initFormatDelegate().
	for (int seriesIdx = 0; seriesIdx < seriesCount; ++seriesIdx) {
		renderer.setSeriesPaint(seriesIdx, seriesFormat.getAreaFillPaint());
	}
	// don't use outline paint, otherwise the plot shows vertical lines
	renderer.setOutline(false);
}