The clear function seems to keep the pen color for drawing commands but not for fill commands?!
The following example does show all elements except the filled rectangle. This behaviour changes when the setColor() is done again after the clear() call.
dc.setColor(0xFFFF00,0x0000FF);
dc.clear();
// dc.setColor(0xFFFF00,0x0000FF);
dc.drawLine(0,0,240,240); // ok
dc.drawRectangle(0,60,20,200); // ok
dc.fillRectangle(0,60,240,20); // background color!