Examples of SVGGraphic


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

Examples of org.axsl.graphic.SvgGraphic

                    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

Examples of org.axsl.graphic.SvgGraphic

                    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

Examples of org.axsl.graphic.SvgGraphic

            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

Examples of org.axsl.graphic.SvgGraphic

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

Examples of org.axsl.graphic.SvgGraphic

        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

Examples of org.foray.graphic.SVGGraphic

     */
    public GraphicPdf4a createGraphicOutput(final Graphic graphic)
            throws GraphicException {
        final Graphic4a graphic4a = super.getGraphic4a(graphic);
        if (graphic4a instanceof SVGGraphic) {
            final SVGGraphic svgGraphic = (SVGGraphic) graphic4a;
            return new SvgPdf(svgGraphic);
        }
        if (graphic4a instanceof MathGraphic4a) {
            final MathGraphic4a mathGraphic = (MathGraphic4a) graphic4a;
            return new SvgPdf(mathGraphic.getSvgGraphic());
View Full Code Here

Examples of org.foray.graphic.SVGGraphic

        final String headerString = new String(header);
        final int svgStringIndex = headerString.indexOf("<svg");
        if (svgStringIndex < 0) {
            return null;
        }
        return new SVGGraphic(this.getServer(), url, bis);
    }
View Full Code Here

Examples of org.foray.graphic.SVGGraphic

     */
    public GraphicPs4a createGraphicOutput(final Graphic graphic)
            throws GraphicException {
        final Graphic4a graphic4a = super.getGraphic4a(graphic);
        if (graphic4a instanceof SVGGraphic) {
            final SVGGraphic svgGraphic = (SVGGraphic) graphic4a;
            return new SvgPs(svgGraphic);
        }
        return null;
    }
View Full Code Here

Examples of org.foray.graphic.SVGGraphic

     */
    public GraphicJava2d4a createGraphicOutput(final Graphic graphic)
            throws GraphicException {
        final Graphic4a graphic4a = super.getGraphic4a(graphic);
        if (graphic4a instanceof SVGGraphic) {
            final SVGGraphic svgGraphic = (SVGGraphic) graphic4a;
            return new SvgJava2d(svgGraphic);
        }
        return null;
    }
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.