Package org.foray.render.awt

Examples of org.foray.render.awt.AWTRenderer


        final InputSource inputSource = new InputSource(fo.openStream());
        final FOrayDocument document = new FOrayDocument(session, inputSource,
                null);

        //Setup renderer
        final AWTRenderer renderer = new AWTRenderer(getLogger(), null);

        //Setup FOrayTarget
        new FOrayTarget(document, renderer, null, null);

        //Create preview dialog (target for the AWTRenderer)
        PreviewDialog frame;
        try {
            frame = createPreviewDialog(renderer, translator);
        } catch (final OutputException e) {
            throw new FOrayException(e);
        }
        renderer.setComponent(frame);

        // TODO: This is probably not right. Needs to run session.process().
        // build FO tree: time
        frame.progress(translator.getString("Build FO tree") + " ...");
View Full Code Here


            final Log logger, final GraphicServer graphicServer)
            throws FOrayException {
        OutputTarget renderer = null;
        switch (rendererType) {
        case AWT: {
            renderer = new AWTRenderer(logger, outputOptions);
            break;
        }
        case PRINT: {
            throw new FOrayException("Print renderer cannot be instantiated "
                    + "from the standard method.");
View Full Code Here

        this.document = new FOrayDocument(session, getInputSource(), null);

        final OutputConfig renderOptions =
                getCommandLineOptions().getRendererOptions();
        this.renderer = new AWTRenderer(this.getLogger(), renderOptions);
        try {
            this.frame = createPreviewDialog(this.renderer, this.resource);
        } catch (final OutputException e) {
            throw new FOrayException(e);
        }
View Full Code Here

TOP

Related Classes of org.foray.render.awt.AWTRenderer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.