本文整理汇总了Java中org.jfree.chart.renderer.category.LineAndShapeRenderer.getShapesFilled方法的典型用法代码示例。如果您正苦于以下问题:Java LineAndShapeRenderer.getShapesFilled方法的具体用法?Java LineAndShapeRenderer.getShapesFilled怎么用?Java LineAndShapeRenderer.getShapesFilled使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jfree.chart.renderer.category.LineAndShapeRenderer
的用法示例。
在下文中一共展示了LineAndShapeRenderer.getShapesFilled方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: checkIndependence
import org.jfree.chart.renderer.category.LineAndShapeRenderer; //导入方法依赖的package包/类
/**
* Checks that the two renderers are equal but independent of one another.
*
* @param r1 renderer 1.
* @param r2 renderer 2.
*
* @return A boolean.
*/
private boolean checkIndependence(LineAndShapeRenderer r1, LineAndShapeRenderer r2) {
// should be equal...
boolean b0 = r1.equals(r2);
// and independent...
r1.setDrawShapes(!r1.isDrawShapes());
boolean b1 = !r1.equals(r2);
r2.setDrawShapes(r1.isDrawShapes());
boolean b2 = r1.equals(r2);
r1.setDrawLines(!r1.isDrawLines());
boolean b3 = !r1.equals(r2);
r2.setDrawLines(r1.isDrawLines());
boolean b4 = r1.equals(r2);
boolean flag = true;
Boolean existing = r1.getShapesFilled();
if (existing != null) {
flag = !existing.booleanValue();
}
r1.setShapesFilled(flag);
boolean b5 = !r1.equals(r2);
r2.setShapesFilled(flag);
boolean b6 = r1.equals(r2);
r1.setShapesFilled(false);
r2.setShapesFilled(false);
r1.setSeriesShapesFilled(0, false);
r2.setSeriesShapesFilled(0, true);
boolean b7 = !r1.equals(r2);
r2.setSeriesShapesFilled(0, false);
boolean b8 = (r1.equals(r2));
r1.setDefaultShapesFilled(false);
r2.setDefaultShapesFilled(true);
boolean b9 = !r1.equals(r2);
r2.setDefaultShapesFilled(false);
boolean b10 = (r1.equals(r2));
return b0 && b1 && b2 && b3 && b4 && b5 && b6 && b7 && b8 && b9 && b10;
}