Package org.foray.fotree.fo.prop

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


        if (absoluteProperty != null) {
            return absoluteProperty.getValue(context, fobj);
        }

        /* Now try the relative-direction property. */
        final AbstractRelativeSpace relativeProperty =
                (AbstractRelativeSpace) getProperty(relativePropertyEnum);
        if (relativeProperty != null) {
            return relativeProperty.getValue(context, subProperty, fobj);
        }

        /* Now try the shorthand property. */
        final PdMargin shorthandProperty = (PdMargin) getProperty(
                FoProperty.MARGIN);
View Full Code Here


     * issues.
     * @return The space-before.conditionality property.
     */
    public Conditionality traitSpaceBeforeConditionality(final FObj fobj,
            final FoContext context) {
        final AbstractRelativeSpace property =
            (AbstractRelativeSpace) getProperty(FoProperty.SPACE_BEFORE);
        if (property != null) {
            return property.getConditionality();
        }
        /*
         * If a corresponding margin property exists, conditionality must be
         * set to "retain". See XSL-FO Std. 1.0, Section 5.3.2, Para 1.
         */
 
View Full Code Here

    /**
     * Returns the space-before.precedence property.
     * @return The space-before.precedence property.
     */
    public int traitSpaceBeforePrecedence() {
        final AbstractRelativeSpace property =
                (AbstractRelativeSpace) getProperty(FoProperty.SPACE_BEFORE);
        if (property == null) {
            return AbstractRelativeSpace.getPrecedenceNoInstance();
        }
        return property.getPrecedence();
    }
View Full Code Here

     * issues.
     * @return The space-after.conditionality property.
     */
    public Conditionality traitSpaceAfterConditionality(final FObj fobj,
            final FoContext context) {
        final AbstractRelativeSpace property =
                (AbstractRelativeSpace) getProperty(FoProperty.SPACE_AFTER);
        if (property != null) {
            return property.getConditionality();
        }
        /*
         * If a corresponding margin property exists, conditionality must be
         * set to "retain". See XSL-FO Std. 1.0, Section 5.3.2, Para 1.
         */
 
View Full Code Here

    /**
     * Returns the space-after.precedence property.
     * @return The space-after.precedence property.
     */
    public int traitSpaceAfterPrecedence() {
        final AbstractRelativeSpace property =
                (AbstractRelativeSpace) getProperty(FoProperty.SPACE_AFTER);
        if (property == null) {
            return AbstractRelativeSpace.getPrecedenceNoInstance();
        }
        return property.getPrecedence();
    }
View Full Code Here

    /**
     * Returns the space-start.conditionality property.
     * @return The space-start.conditionality property.
     */
    public Conditionality traitSpaceStartConditionality() {
        final AbstractRelativeSpace property =
                (AbstractRelativeSpace) getProperty(FoProperty.SPACE_START);
        if (property == null) {
            return AbstractRelativeSpace.getConditionalityNoInstance();
        }
        return property.getConditionality();
    }
View Full Code Here

    /**
     * Returns the space-start.precedence property.
     * @return The space-start.precedence property.
     */
    public int traitSpaceStartPrecedence() {
        final AbstractRelativeSpace property =
                (AbstractRelativeSpace) getProperty(FoProperty.SPACE_START);
        if (property == null) {
            return AbstractRelativeSpace.getPrecedenceNoInstance();
        }
        return property.getPrecedence();
    }
View Full Code Here

    /**
     * Returns the space-end.conditionality property.
     * @return The space-end.conditionality property.
     */
    public Conditionality traitSpaceEndConditionality() {
        final AbstractRelativeSpace property =
                (AbstractRelativeSpace) getProperty(FoProperty.SPACE_END);
        if (property == null) {
            return AbstractRelativeSpace.getConditionalityNoInstance();
        }
        return property.getConditionality();
    }
View Full Code Here

    /**
     * Returns the space-end.precedence property.
     * @return The space-end.precedence property.
     */
    public int traitSpaceEndPrecedence() {
        final AbstractRelativeSpace property =
                (AbstractRelativeSpace) getProperty(FoProperty.SPACE_END);
        if (property == null) {
            return AbstractRelativeSpace.getPrecedenceNoInstance();
        }
        return property.getPrecedence();
    }
View Full Code Here

TOP

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

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.