Package org.axsl.fo

Examples of org.axsl.fo.FoContext


    /**
     * Render a given FOTree block.
     * @param block The FOtree block to be rendered.
     */
    public void render(final Block block) {
        final FoContext context = null;
        this.mifDoc.setBlockProp(block.traitStartIndent(context),
                block.traitEndIndent(context));
    }
View Full Code Here


        final PdInitialPageNumber property = (PdInitialPageNumber) getProperty(
                        FoProperty.INITIAL_PAGE_NUMBER);
        if (property != null) {
            /* Null context is OK here as this trait is not dependent on
             * context. */
            final FoContext context = null;
            return property.getValue(context, fobj, lastPageNumberUsed);
        }
        return PdInitialPageNumber.getValueNoInstance(lastPageNumberUsed);
    }
View Full Code Here

    public boolean getPrecedence(final FObj fobj) {
        final PdPrecedence property = (PdPrecedence) getProperty(
                FoProperty.PRECEDENCE);
        /* Null context is OK, because the object this applies to cannot be
         * insider a marker. */
        final FoContext context = null;
        if (property != null) {
            return property.getValue(context, fobj);
        }
        return PdPrecedence.getValueNoInstance();
    }
View Full Code Here

        if (property != null) {
            return property.getValue(fobj);
        }
        // Try the shorthand.
        /* Null context is OK, because the object can't be inside a marker. */
        final FoContext context = null;
        final PdSize sizeProperty = (PdSize) getProperty(FoProperty.SIZE);
        if (sizeProperty != null) {
            return sizeProperty.getValue(context, fobj, axis);
        }
        return AbstractPageDimension.getValueNoInstance(axis);
View Full Code Here

TOP

Related Classes of org.axsl.fo.FoContext

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.