Search in sources :

Example 1 with MultipageExporter

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);
}
Also used : MultipageExporter(net.sf.sdedit.multipage.MultipageExporter) PrintConfiguration(net.sf.sdedit.config.PrintConfiguration) Configuration(net.sf.sdedit.config.Configuration) SyntaxError(net.sf.sdedit.error.SyntaxError) SemanticError(net.sf.sdedit.error.SemanticError)

Aggregations

Configuration (net.sf.sdedit.config.Configuration)1 PrintConfiguration (net.sf.sdedit.config.PrintConfiguration)1 SemanticError (net.sf.sdedit.error.SemanticError)1 SyntaxError (net.sf.sdedit.error.SyntaxError)1 MultipageExporter (net.sf.sdedit.multipage.MultipageExporter)1