本文整理汇总了Java中org.jfree.chart.renderer.xy.XYAreaRenderer2.setOutline方法的典型用法代码示例。如果您正苦于以下问题:Java XYAreaRenderer2.setOutline方法的具体用法?Java XYAreaRenderer2.setOutline怎么用?Java XYAreaRenderer2.setOutline使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jfree.chart.renderer.xy.XYAreaRenderer2
的用法示例。
在下文中一共展示了XYAreaRenderer2.setOutline方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testEquals
import org.jfree.chart.renderer.xy.XYAreaRenderer2; //导入方法依赖的package包/类
/**
* 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));
}
示例2: testEquals
import org.jfree.chart.renderer.xy.XYAreaRenderer2; //导入方法依赖的package包/类
/**
* 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));
}
示例3: configureXYAreaRenderer2
import org.jfree.chart.renderer.xy.XYAreaRenderer2; //导入方法依赖的package包/类
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);
}
示例4: configureXYAreaRenderer2
import org.jfree.chart.renderer.xy.XYAreaRenderer2; //导入方法依赖的package包/类
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);
}