Package org.foray.fotree.svg.obj

Examples of org.foray.fotree.svg.obj.InstreamSvgElement


        final InstreamForeignObject ifo = (InstreamForeignObject) node;

        /* ... which contains an SVGElement ... */
        node = ifo.getChildAt(0);
        assertTrue(node instanceof InstreamSvgElement);
        final InstreamSvgElement svgElement = (InstreamSvgElement) node;

        /* ... for which we can find the width and height. */

        /* The pixel width is 20. At the default screen resolution of 96 dpi,
         * the millipoints are (20 / 96) * 72000 = 15000. */
        assertEquals(15000, svgElement.intrinsicContentWidth());
        assertEquals(15000, svgElement.intrinsicContentHeight());
    }
View Full Code Here


        switch (enumeration) {
        default: {
            if (parent instanceof InstreamForeignObject) {
                final InstreamForeignObject ifo =
                        (InstreamForeignObject) parent;
                return new InstreamSvgElement(ifo, propertyListUnparsed);
            } else {
                parent.throwException("Instream SVG content must be inside "
                        + "an fo:instream-foreign-object.");
                return null;
            }
View Full Code Here

TOP

Related Classes of org.foray.fotree.svg.obj.InstreamSvgElement

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.