Example #1
0
  private void enableShadows(double thickness, PlotMode mode) {
    if (mode == PlotMode.LINE) {
      canvas.setShadow("#666", (int) thickness, 0, (int) Math.ceil(thickness / 2.0));

    } else if (mode == PlotMode.BAR) {
      canvas.setShadow("#666", 2, 2, 2);
    }
  }
Example #2
0
 private void disableShadows() {
   canvas.setShadow(null, 0, 0, 0);
 }