use of net.sf.sdedit.multipage.MultipageExporter in project abstools by abstools.
the class PrintDialog method reinitialize.
private void reinitialize() {
String source = ui.getCode();
Configuration configuration = ui.getConfiguration().getDataObject();
exporter = new MultipageExporter(printerProperties.getDataObject(), source, configuration);
try {
exporter.init();
} catch (RuntimeException re) {
throw re;
} catch (SemanticError se) {
/* ignored */
} catch (SyntaxError se) {
/* ignored */
}
int scale = (int) (100 * exporter.getScale());
scaleLabel.setText("Zoom factor: " + scale + " %");
preview.setViewportView(exporter);
}
Aggregations