Package org.axsl.galley

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


    /**
     * {@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

    /**
     * {@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

    /**
     * {@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

    /**
     * {@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

Related Classes of org.axsl.galley.ForeignObjectArea

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.