Package org.axsl.graphic

Examples of org.axsl.graphic.EpsGraphic


            return xObject;
        }

        /* ... 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);
View Full Code Here


    /**
     * {@inheritDoc}
     */
    public float getHorizontalScaling(
            final Rectangle2D.Float contentRectangle) {
        final EpsGraphic eps = this.getGraphic();
        final float graphicWidth = eps.getBoundingBox().width();
        return contentRectangle.width / graphicWidth;
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    public float getVerticalScaling(final Rectangle2D.Float contentRectangle) {
        final EpsGraphic eps = this.getGraphic();
        final float graphicHeight = eps.getBoundingBox().height();
        return contentRectangle.height / graphicHeight;
    }
View Full Code Here

TOP

Related Classes of org.axsl.graphic.EpsGraphic

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.