r = resource.setZoom(originalWidth, maximumWidth);
}
preferredSize.width = (int) (Math.rint(originalWidth * r));
preferredSize.height = (int) (Math.rint(preferredSize.height * r));
canvas.setPreferredSize(preferredSize);
canvas.setLayout(new ViewerLayoutManager(1f));
canvas.revalidate();
canvas.removeGVTTreeRendererListener(this);
}
});
return canvas;