Package org.foray.fotree.fo.obj

Examples of org.foray.fotree.fo.obj.InstreamForeignObject


        }
        /* The PropertyList must be of the unparsed variety. */
        final PropertyListUnparsed propertyListUnparsed
                = (PropertyListUnparsed) propertyList;
        if (parent instanceof InstreamForeignObject) {
            final InstreamForeignObject ifo =
                    (InstreamForeignObject) parent;
            return new InstreamMathElement(ifo, propertyListUnparsed);
        } else {
            parent.throwException("Instream MathML content must be inside "
                    + "an fo:instream-foreign-object.");
View Full Code Here


        final Block block = (Block) node;

        /* ... which contains an InstreamForeignObject ... */
        node = block.getChildAt(0);
        assertTrue(node instanceof InstreamForeignObject);
        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. */

 
View Full Code Here

        }
        case INLINE_CONTAINER: {
            return new InlineContainer(parent, propertyList);
        }
        case INSTREAM_FOREIGN_OBJECT: {
            return new InstreamForeignObject(parent, propertyList);
        }
        case LAYOUT_MASTER_SET: {
            final Root root = parentRoot(enumeration, parent, locator);
            return new LayoutMasterSet(root, propertyList);
        }
View Full Code Here

        final PropertyListUnparsed propertyListUnparsed
                = (PropertyListUnparsed) propertyList;
        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.");
View Full Code Here

TOP

Related Classes of org.foray.fotree.fo.obj.InstreamForeignObject

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.