Examples of PdContentHeight


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

     * @return True iff the viewport dimension must be known before the
     * content-height can be computed.
     */
    public boolean isContentHeightDependent(final FObj fobj,
            final FoContext context) {
        final PdContentHeight property = (PdContentHeight) getProperty(
                FoProperty.CONTENT_HEIGHT);
        if (property != null) {
            return property.dependsOnPd(fobj, context);
        }
        /* Initial value is "auto", which makes the scaling factor fixed. */
        return false;
    }
View Full Code Here

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

                FoProperty.CONTENT_WIDTH);
        if (property == null) {
            /* Width scaling is not set. If we are scaling uniformly, use the
             * height scaling if available. */
            if (fobj.scalingUniform(context)) {
                final PdContentHeight heightProperty =
                        (PdContentHeight) getProperty(
                                FoProperty.CONTENT_HEIGHT);
                if (heightProperty == null) {
                    return AbstractContentDimension.getValueNoInstance();
                } else {
                    return heightProperty.getValue(context, fobj, fobjScaled);
                }
            } else {
                /* Scaling is not uniform. Just return the default. */
                return AbstractContentDimension.getValueNoInstance();
            }
View Full Code Here

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

     * @return The scaling factor that should be applied to the intrinsic
     * height of the content.
     */
    public float getContentHeight(final FObj fobj, final FoContext context,
            final FObjScaled fobjScaled) {
        final PdContentHeight property = (PdContentHeight) getProperty(
                FoProperty.CONTENT_HEIGHT);
        if (property == null) {
            /* Height scaling is not set. If we are scaling uniformly, use the
             * width scaling if available. */
            if (fobj.scalingUniform(context)) {
                final PdContentWidth widthProperty =
                        (PdContentWidth) getProperty(FoProperty.CONTENT_WIDTH);
                if (widthProperty == null) {
                    return AbstractContentDimension.getValueNoInstance();
                } else {
                    return widthProperty.getValue(context, fobj, fobjScaled);
                }
            } else {
                /* Scaling is not uniform. Just return the default. */
                return AbstractContentDimension.getValueNoInstance();
            }
        } else {
            return property.getValue(context, fobj, fobjScaled);
        }
    }
View Full Code Here

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

        }
        case COLUMN_WIDTH: {
            return new PdColumnWidth(fobj, propertyFullName, attributeValue);
        }
        case CONTENT_HEIGHT: {
            return new PdContentHeight(fobj, propertyFullName, attributeValue);
        }
        case CONTENT_TYPE: {
            return new PdContentType(fobj, propertyFullName, attributeValue);
        }
        case CONTENT_WIDTH: {
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.