* @throws RemoteImagingException if a RemoteException is thrown
* during the RMI communication.
*/
public ImageLayout getImageLayout() throws RemoteImagingException {
ImageLayout layout = new ImageLayout();
try {
layout.setMinX(remoteImage.getMinX(id));
layout.setMinY(remoteImage.getMinY(id));
layout.setWidth(remoteImage.getWidth(id));
layout.setHeight(remoteImage.getHeight(id));
layout.setTileWidth(remoteImage.getTileWidth(id));
layout.setTileHeight(remoteImage.getTileHeight(id));
layout.setTileGridXOffset(remoteImage.getTileGridXOffset(id));
layout.setTileGridYOffset(remoteImage.getTileGridYOffset(id));
SerializableState smState = remoteImage.getSampleModel(id);
layout.setSampleModel((SampleModel)(smState.getObject()));
SerializableState cmState = remoteImage.getColorModel(id);
layout.setColorModel((ColorModel)(cmState.getObject()));
return layout;
} catch (RemoteException re) {
String message = JaiI18N.getString("RMIServerProxy14");
listener.errorOccurred(message,
new RemoteImagingException(message, re),