Package org.foray.fotree.fo.prop

Examples of org.foray.fotree.fo.prop.AbstractPause


     * @param context An object that knows how to resolve FO Tree context
     * issues.
     * @return The pause-before property.
     */
    public double traitPauseBefore(final FObj fobj, final FoContext context) {
        AbstractPause property = (AbstractPause) getProperty(
                FoProperty.PAUSE_BEFORE);
        if (property != null) {
            return property.getValue(context, fobj, FoProperty.PAUSE_BEFORE);
        }
        // Try the shorthand
        property = (AbstractPause) getProperty(FoProperty.PAUSE);
        if (property != null) {
            return property.getShorthandValue(context, fobj,
                    FoProperty.PAUSE_BEFORE);
        }
        return AbstractPause.getValueNoInstance();
    }
View Full Code Here


     * @param context An object that knows how to resolve FO Tree context
     * issues.
     * @return The pause-after property.
     */
    public double traitPauseAfter(final FObj fobj, final FoContext context) {
        AbstractPause property = (AbstractPause) getProperty(
                FoProperty.PAUSE_AFTER);
        if (property != null) {
            return property.getValue(context, fobj, FoProperty.PAUSE_AFTER);
        }
        // Try the shorthand
        property = (AbstractPause) getProperty(FoProperty.PAUSE);
        if (property != null) {
            return property.getShorthandValue(context, fobj,
                    FoProperty.PAUSE_AFTER);
        }
        return AbstractPause.getValueNoInstance();
    }
View Full Code Here

TOP

Related Classes of org.foray.fotree.fo.prop.AbstractPause

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.