Package org.foray.fotree.fo.prop

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


        }
        case LETTER_VALUE: {
            return new PdLetterValue(fobj, propertyFullName, attributeValue);
        }
        case LINE_HEIGHT: {
            return new PdLineHeight(fobj, propertyFullName, attributeValue);
        }
        case LINE_HEIGHT_SHIFT_ADJUSTMENT: {
            return new PdLineHeightShiftAdjustment(fobj, propertyFullName,
                    attributeValue);
        }
View Full Code Here


     * @return The line-height multiplier value, expressed as a float. For
     * example, if the line-height should be computed
     */
    public float getLineHeightMultiplier(final FObj fobj,
            final FoContext context) {
        PdLineHeight property = (PdLineHeight) getProperty(
                FoProperty.LINE_HEIGHT);
        if (property != null) {
            return property.getValueMultiplier(context, fobj);
        }
        // Try the shorthand
        final PdFont fontProperty = (PdFont) getProperty(FoProperty.FONT);
        if (fontProperty != null) {
            property = fontProperty.getLineHeight();
            return property.getValueMultiplier(context, fobj);
        }
        return PdLineHeight.getValueMultiplierNoInstance(context, fobj);
    }
View Full Code Here

     * @param rangeID One of MINIMUM, OPTIMUM, OR MAXIMUM.
     * @return The line-height, in millipoints.
     */
    public int getLineHeight(final FObj fobj, final FoContext context,
            final LengthRange rangeID) {
        PdLineHeight property = (PdLineHeight) getProperty(
                FoProperty.LINE_HEIGHT);
        if (property != null) {
            return property.getValue(context, rangeID, fobj);
        }
        // Try the shorthand
        final PdFont fontProperty = (PdFont) getProperty(FoProperty.FONT);
        if (fontProperty != null) {
            property = fontProperty.getLineHeight();
            return property.getValue(context, rangeID, fobj);
        }
        return PdLineHeight.getValueNoInstance(context, fobj);
    }
View Full Code Here

     * issues.
     * @return The line-height.conditionality property.
     */
    public Conditionality getLineHeightConditionality(final FObj fobj,
            final FoContext context) {
        PdLineHeight property = (PdLineHeight) getProperty(
                FoProperty.LINE_HEIGHT);
        if (property != null) {
            return property.getConditionality(context, fobj);
        }
        // Try the shorthand
        final PdFont fontProperty = (PdFont) getProperty(FoProperty.FONT);
        if (fontProperty != null) {
            property = fontProperty.getLineHeight();
            return property.getConditionality(context, fobj);
        }
        return PdLineHeight.getConditionalityNoInstance(context, fobj);
    }
View Full Code Here

     * issues.
     * @return The line-height.precedence property.
     */
    public int getLineHeightPrecedence(final FObj fobj,
            final FoContext context) {
        PdLineHeight property = (PdLineHeight) getProperty(
                FoProperty.LINE_HEIGHT);
        if (property != null) {
            return property.getPrecedence(context, fobj);
        }
        // Try the shorthand
        final PdFont fontProperty = (PdFont) getProperty(FoProperty.FONT);
        if (fontProperty != null) {
            property = fontProperty.getLineHeight();
            return property.getPrecedence(context, fobj);
        }
        return PdLineHeight.getPrecedenceNoInstance(context, fobj);
    }
View Full Code Here

TOP

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

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.