/* The format is based on 1.5 release behavior
* which can be revealed by the following code:
*
* ComponentEvent e = new ComponentEvent(new Button("Button"),
* ComponentEvent.COMPONENT_SHOWN);
* System.out.println(e);
*/
String idString = null;
Component c = getComponent();
switch (id) {
case COMPONENT_MOVED:
idString = "COMPONENT_MOVED"; //$NON-NLS-1$
break;
case COMPONENT_RESIZED:
idString = "COMPONENT_RESIZED"; //$NON-NLS-1$
break;
case COMPONENT_SHOWN:
return "COMPONENT_SHOWN"; //$NON-NLS-1$
case COMPONENT_HIDDEN:
return "COMPONENT_HIDDEN"; //$NON-NLS-1$
default:
return "unknown type"; //$NON-NLS-1$
}
return (idString + " (" + c.getX() + "," + c.getY() + //$NON-NLS-1$ //$NON-NLS-2$
" " + c.getWidth()+ "x" + c.getHeight() + ")"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$