Examples of ForeignObjectArea


Examples of org.apache.fop.layout.ForeignObjectArea

        SVGDocument doc = new SVGDocumentImpl();
        svg.setSVGDocument(doc);
        svg.start();

        /* add the SVG area to the containing area */
        ForeignObjectArea foa = (ForeignObjectArea) area;
        foa.setObject(svg);
        foa.setIntrinsicWidth(svg.getWidth());
        foa.setIntrinsicHeight(svg.getHeight());

        doc.appendChild((SVGSVGElement) createGraphic());

        /* finish off the SVG area */
        svg.end();
View Full Code Here

Examples of org.apache.fop.layout.ForeignObjectArea

        SVGDocument doc = new SVGDocumentImpl();
        svg.setSVGDocument(doc);
        svg.start();

        /* add the SVG area to the containing area */
        ForeignObjectArea foa = (ForeignObjectArea) area;
        foa.setObject(svg);
        foa.setIntrinsicWidth(svg.getWidth());
        foa.setIntrinsicHeight(svg.getHeight());

        doc.appendChild((SVGSVGElement) createGraphic());

        /* finish off the SVG area */
        svg.end();
View Full Code Here

Examples of org.axsl.galley.ForeignObjectArea

    /**
     * {@inheritDoc}
     */
    public void render(final ForeignContentSvg area) throws GalleyVisitorException {
        final ForeignObjectArea foreign = area.getParent();
        final Rectangle2D.Float contentRectangle = new Rectangle2D.Float(
                toPoints(foreign.crOriginX()), toPoints(foreign.crOriginY()),
                toPoints(foreign.referenceIpd()),
                toPoints(foreign.referenceBpd()));
        try {
            renderSVGDocument(area.getGraphic(), contentRectangle, foreign);
        } catch (final IOException e) {
            throw new GalleyVisitorException(e);
        }
View Full Code Here

Examples of org.axsl.galley.ForeignObjectArea

    /**
     * {@inheritDoc}
     */
    public void render(final ForeignContentSvg area) {
        final ForeignObjectArea foreign = area.getParent();
        final Rectangle2D.Float contentRectangle = new Rectangle2D.Float(
                toPoints(foreign.crOriginX()), toPoints(foreign.crOriginY()),
                toPoints(foreign.referenceIpd()),
                toPoints(foreign.referenceBpd()));
        renderSVGDocument(area.getGraphic(), contentRectangle, null);
    }
View Full Code Here

Examples of org.axsl.galley.ForeignObjectArea

    /**
     * {@inheritDoc}
     */
    public void render(final ForeignContentSvg area) throws GalleyVisitorException {
        final ForeignObjectArea foreign = area.getParent();
        final Rectangle2D.Float contentRectangle = new Rectangle2D.Float(
                toPoints(foreign.crOriginX()), toPoints(foreign.crOriginY()),
                toPoints(foreign.referenceIpd()),
                toPoints(foreign.referenceBpd()));
        final SvgGraphic svgGraphic = area.getGraphic();
        try {
            getContentStream().drawGraphic(svgGraphic,
                    contentRectangle, null, this.getFontConsumer(),
                    getStrokeSVGText());
View Full Code Here

Examples of org.axsl.galley.ForeignObjectArea

    /**
     * {@inheritDoc}
     */
    public void render(final ForeignContentMath area) throws GalleyVisitorException {
        final ForeignObjectArea foreign = area.getParent();
        final Rectangle2D.Float contentRectangle = new Rectangle2D.Float(
                toPoints(foreign.crOriginX()), toPoints(foreign.crOriginY()),
                toPoints(foreign.referenceIpd()),
                toPoints(foreign.referenceBpd()));
        final MathGraphic mathGraphic = area.getGraphic();
        try {
            getContentStream().drawGraphic(mathGraphic,
                    contentRectangle, null, this.getFontConsumer(),
                    getStrokeSVGText());
View Full Code Here

Examples of org.axsl.galley.ForeignObjectArea

    /**
     * {@inheritDoc}
     */
    public void render(final ForeignContentSvg area) {
        final ForeignObjectArea foreign = area.getParent();
        final float x = toPoints(foreign.crOriginX());
        final float y = this.pageHeight - toPoints(foreign.crOriginY());
        final SvgGraphic svgGraphic = area.getGraphic();
        renderSVGDocument(svgGraphic, x, y);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.