path = new Path(device);
path.addRectangle(100, 100, width - 200, height - 200);
path.addRectangle(120, 120, width - 240, height - 240);
path.addRectangle(140, 140, width - 280, height - 280);
gc.setClipping(path);
path.dispose();
break;
case 2: // circle
path = new Path(device);
path.addArc(100, 100, width - 200, height - 200, 0, 360);
path.addArc((width - width / 5) / 2, (height - height / 5) / 2, width / 5, height / 5, 0, 360);