public void printCanvasFrame(ServletInput input) throws JAXBException, IOException { final ApplicationState state = input.getState(); final HtmlWriter writer = new HtmlWriter(input.getResponse().getWriter()); final String diagramKey = "'" + diagram.getKey() + "'"; Img img = new FrameServlet.Image(diagram, null, "frameImage", ID_IMAGE_MAP); img.setOnMouseOver("hideCaret()"); Tr tr = new Tr(); Td td = new Td(); td.add(img); final DiagramImageMap map = DiagramImageMap.create(state); td.add(map); tr.add(td); SectionHeader header = createToolbar(state, diagram, diagramKey); Td headerTd = new Td(); headerTd.setStyle("vertical-align:top"); headerTd.add(header); tr.add(headerTd); Table table = new Table(); table.add(tr); writer.write(table); }