Package org.foray.fotree

Examples of org.foray.fotree.FObj


    /**
     * {@inheritDoc}
     */
    public int inlineLetterSpacingOptimum(final FoContext context) {
        final FObj effectiveParent = effectiveParent(context);
        return effectiveParent.traitLetterSpacingOpt(context);
    }
View Full Code Here


    /**
     * {@inheritDoc}
     */
    public int inlineWordSpacingOptimum(final FoContext context) {
        final FObj effectiveParent = effectiveParent(context);
        return effectiveParent.traitWordSpacingOpt(context);
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    public boolean inlineWrapOption(final FoContext context) {
        final FObj effectiveParent = effectiveParent(context);
        return effectiveParent.traitWrapOption(context)
                == WrapOption.WRAP;
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    public boolean inlineHyphenate(final FoContext context) {
        final FObj effectiveParent = effectiveParent(context);
        return effectiveParent.traitHyphenate(context);
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    public Language inlineLanguage(final FoContext context) {
        final FObj effectiveParent = effectiveParent(context);
        return effectiveParent.traitLanguage(context);
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    public Country inlineCountry(final FoContext context) {
        final FObj effectiveParent = effectiveParent(context);
        return effectiveParent.traitCountry(context);
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    public int inlineHyphenationRemainCount(final FoContext context) {
        final FObj effectiveParent = effectiveParent(context);
        return effectiveParent.traitHyphenationRemainCharacterCount(context);
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    public int inlineHyphenationPushCount(final FoContext context) {
        final FObj effectiveParent = effectiveParent(context);
        return effectiveParent.traitHyphenationPushCharacterCount(context);
    }
View Full Code Here

     * @param fobj The FO for which this value is needed.
     * @return The initial value for this property.
     */
    public static FoValue getValueNoInstance(final FoContext context,
            final FObj fobj) {
        final FObj parent = fobj.effectiveParent(context);
        if (parent != null) {
            return parent.getPropertyList().getBorderCollapse(parent, context);
        }
        return FoValue.COLLAPSE;
    }
View Full Code Here

     */
    public FoValue getValue(final FoContext context, final FObj fobj) {
        if (value().canEvalKeyword()) {
            final FoValue keyword = ((FoPropertyKeyword) value()).getValue();
            if (keyword == FoValue.INHERIT) {
                final FObj parent = fobj.effectiveParent(context);
                if (parent != null) {
                    return getInheritedValue(context, parent);
                }
                return getValueNoInstance(context, fobj);
            }
View Full Code Here

TOP

Related Classes of org.foray.fotree.FObj

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.