public void repaintRequest(int x, int y, int width, int height)
{
MIDletAccess ma = MIDletBridge.getMIDletAccess();
if (ma == null) {
return;
}
DisplayAccess da = ma.getDisplayAccess();
if (da == null) {
return;
}
Displayable current = da.getCurrent();
if (current == null) {
return;
}
Device device = DeviceFactory.getDevice();
if (device != null) {
if (displayImage == null) {
displayImage = new J2SEMutableImage(
device.getDeviceDisplay().getFullWidth(), device.getDeviceDisplay().getFullHeight());
}
Graphics gc = displayImage.getImage().getGraphics();
J2SEDeviceDisplay deviceDisplay = (J2SEDeviceDisplay) device.getDeviceDisplay();
if (!deviceDisplay.isFullScreenMode()) {
deviceDisplay.paintControls(gc);
}
deviceDisplay.paintDisplayable(gc, x, y, width, height);
fireDisplayRepaint(displayImage);
}
}