public HTMLSheetInformation(ShapesContainer sheet, DiagramComponent d) throws IOException{
// Create current sheet snapshot with points for links
_imageFile = new File(resources.getString("imageFileName")).getCanonicalFile();
// Clear cache for image (bug in JTextPane)
Image oldImage = Toolkit.getDefaultToolkit().getImage(_imageFile.toURL());
if (oldImage!=null){
oldImage.flush();
}
sheetInformationTitle = resources.getString("htmlFileTitle");
Rectangle r=d.getBounds();
r.width=(int)((double)r.width/d.getZoom());