| | | | Browse by category |
Question
Why my nodes, that are outside the visible view, are not printed in the IlvDiagrammer.printToBitmap() method?
Answer
The IlvDiagrammer.printToBitmap
prints the diagram component to a bitmap file, according to the page setup parameters and the print area. If the print area is the size of the reference view, any nodes that are outside the main view will not be printed out.
You can control the print area using theIlvManagerPrintableDocument.setPrintArea(IlvRect)
method.
To ensure that all nodes in the diagram (within the visible area or not) will be printed out, you need to reset the printed area to null.
IlvManagerPrintingController printControler = diagrammer.getPrintingController();
IlvManagerPrintableDocument document = (IlvManagerPrintableDocument)printControler.getDocument();
document.setPrintArea(null);