Package org.axsl.graphic

Examples of org.axsl.graphic.SvgGraphic


        /* ... otherwise, create a new one. */
        if (img instanceof EpsGraphic) {
            final EpsGraphic epsGraphic = (EpsGraphic) img;
            xObject = new PDFXFormEps(pdfDoc, epsGraphic);
        } else if (img instanceof SvgGraphic) {
            final SvgGraphic svgGraphic = (SvgGraphic) img;
            xObject = new PDFXFormSvg(pdfDoc, svgGraphic, fontConsumer,
                    strokeText);
        } else if (img instanceof MathGraphic) {
            final MathGraphic mathGraphic = (MathGraphic) img;
            xObject = new PdfXFormMath(pdfDoc, mathGraphic, fontConsumer,
View Full Code Here


                    contentRectangle.y, clipRectangle.width,
                    clipRectangle.height);
            return;
        }
        if (image instanceof SvgGraphic) {
            final SvgGraphic svgGraphic = (SvgGraphic) image;
            try {
                renderSVGDocument(svgGraphic, contentRectangle, area);
            } catch (final IOException e) {
                throw new GalleyVisitorException(e);
            }
View Full Code Here

                    this.pageHeight - Math.round(toPoints(y)));

            this.graphics.setFont(f);
        } else {
            if (img instanceof SvgGraphic) {
                final SvgGraphic svg = (SvgGraphic) img;
                final Rectangle contentRect = new Rectangle(area.crOriginX(),
                        area.crOriginY(), area.crIpd(), area.crBpd());
                renderSVGDocument(svg,
                        Renderer.convertMillipointRectangle(contentRect), null);
            } else {
View Full Code Here

            addRect(x, y, w, h, true);    // use helper function

        } else {
            if (img instanceof SvgGraphic) {
                final SvgGraphic svgGraphic = (SvgGraphic) img;
                renderSVGDocument(svgGraphic, toPoints(x),
                        this.pageHeight - toPoints(y));
//            } else {
//
//                String urlString = img.getURL().toString();
View Full Code Here

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

        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());
        } catch (final PdfException e) {
View Full Code Here

TOP

Related Classes of org.axsl.graphic.SvgGraphic

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.