Examples of InstreamForeignObject


Examples of org.apache.fop.fo.flow.InstreamForeignObject

        testAltTextGetter(new ExternalGraphic(mockFONode()));
    }

    @Test
    public void instreamForeignObjectHasAltText() throws FOPException {
        testAltTextGetter(new InstreamForeignObject(mockFONode()));
    }
View Full Code Here

Examples of org.axsl.fo.fo.InstreamForeignObject

    /**
     * Returns the bpd of the viewport for this area.
     * @return The bpd of the viewport for this area.
     */
    public int viewportBPD() {
        final InstreamForeignObject ifo = this.traitGeneratedBy();
        return ifo.viewportBpd(this);
    }
View Full Code Here

Examples of org.axsl.fo.fo.InstreamForeignObject

    /**
     * Returns the ipd of the viewport for this area.
     * @return The ipd of the viewport for this area.
     */
    public int viewportIPD() {
        final InstreamForeignObject ifo = this.traitGeneratedBy();
        return ifo.viewportIpd(this);
    }
View Full Code Here

Examples of org.axsl.fo.fo.InstreamForeignObject

        LineContentFactory factory = lineArea;
        if (this.areaStack.size() > 0) {
            factory = this.areaStack.peek();
        }
        if (nonTextToUse instanceof InstreamForeignObject) {
            final InstreamForeignObject ifo = (InstreamForeignObject)
                    nonTextToUse;
            factory.makeForeignObjectArea(ifo, sizeInline, graftingPoint);
        } else if (nonTextToUse instanceof ExternalGraphic) {
            final ExternalGraphic graphic = (ExternalGraphic) nonTextToUse;
            factory.makeExternalGraphicArea(graphic, sizeInline,
View Full Code Here

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

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

        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

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

        }
        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

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

        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
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.