/* The format is based on 1.5 release behavior
* which can be revealed by the following code:
*
* PaintEvent e = new PaintEvent(new Component(){},
* PaintEvent.PAINT, new Rectangle(0, 0, 10, 20));
* System.out.println(e);
*/
String typeString = null;
switch (id) {
case PAINT:
typeString = "PAINT"; //$NON-NLS-1$
break;
case UPDATE:
typeString = "UPDATE"; //$NON-NLS-1$
break;
default:
typeString = "unknown type"; //$NON-NLS-1$
}
return typeString + ",updateRect=" + updateRect; //$NON-NLS-1$