// clipping region and the current shape but without the overlapping areas.
else if(mode == EMFConstants.RGN_XOR) {
Shape clip = renderer.getClip();
if (clip != null) {
Area a = new Area(shape);
a.exclusiveOr(new Area(clip));
renderer.setClip(a);
} else {
renderer.setClip(shape);
}
}