Package org.foray.fotree

Examples of org.foray.fotree.FObj.traitFontSize()


    /**
     * {@inheritDoc}
     */
    public int inlineFontSize(final FoContext context) {
        final FObj effectiveParent = effectiveParent(context);
        return effectiveParent.traitFontSize(context);
    }

    /**
     * {@inheritDoc}
     */
 
View Full Code Here


    /**
     * {@inheritDoc}
     */
    public int inlineFontSize(final FoContext context) {
        final FObj effectiveParent = effectiveParent(context);
        return effectiveParent.traitFontSize(context);
    }

    /**
     * {@inheritDoc}
     */
 
View Full Code Here

    private static int getBaseFontSize(final FoContext context,
            final FObj fobj) {
        final FObj parent = fobj.effectiveParent(context);
        int baseFontSize = getDefaultFontSize();
        if (parent != null) {
            baseFontSize = parent.traitFontSize(context);
        }
        return baseFontSize;
    }

    /**
 
View Full Code Here

     */
    static int computeSubscript(final FObj fobj, final FoContext context) {
        /* The subscript computations are computed based on the parent font and font-size. */
        final FObj parent = fobj.effectiveParent(context);
        final org.axsl.font.Font font = parent.getPrimaryFont(context).getFont();
        final int fontSize = parent.traitFontSize(context);
        return font.subscriptShift(fontSize);
    }

    /**
     * Computes the baseline-shift="super" value.
View Full Code Here

     */
    static int computeSuperscript(final FObj fobj, final FoContext context) {
        /* The superscript computations are computed based on the parent font and font-size. */
        final FObj parent = fobj.effectiveParent(context);
        final org.axsl.font.Font font = parent.getPrimaryFont(context).getFont();
        final int fontSize = parent.traitFontSize(context);
        return font.superscriptShift(fontSize);
    }

    /**
     * Returns the default (initial) value for this property.
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.