Package org.foray.fotree.fo.prop

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


        if (property != null) {
            return property.getValue(context, fobj, paddingRectangleWidth,
                    backgroundImageWidth);
        }
        // Try the first shorthand
        PdBackgroundPosition backgroundPosition = (PdBackgroundPosition)
                getProperty(FoProperty.BACKGROUND_POSITION);
        if (backgroundPosition != null) {
            return backgroundPosition.getShorthandValue(context,
                    fobj, AbsoluteAxis.HORIZONTAL,
                    paddingRectangleWidth, backgroundImageWidth);
        }
        // Try the second shorthand
        final PdBackground background = (PdBackground) getProperty(
                FoProperty.BACKGROUND);
        if (background != null) {
            backgroundPosition = background.getPosition();
            if (backgroundPosition != null) {
                return backgroundPosition.getShorthandValue(context,
                        fobj, AbsoluteAxis.HORIZONTAL,
                        paddingRectangleWidth, backgroundImageWidth);
            }
        }
        return AbstractBackgroundPosition.getValueNoInstance();
View Full Code Here


        if (property != null) {
            return property.getValue(context, fobj, paddingRectangleHeight,
                    backgroundImageHeight);
        }
        // Try the first shorthand
        PdBackgroundPosition backgroundPosition = (PdBackgroundPosition)
                getProperty(FoProperty.BACKGROUND_POSITION);
        if (backgroundPosition != null) {
            return backgroundPosition.getShorthandValue(context,
                    fobj, AbsoluteAxis.VERTICAL,
                    paddingRectangleHeight, backgroundImageHeight);
        }
        // Try the second shorthand
        final PdBackground background = (PdBackground) getProperty(
                FoProperty.BACKGROUND);
        if (background != null) {
            backgroundPosition = background.getPosition();
            if (backgroundPosition != null) {
                return backgroundPosition.getShorthandValue(context,
                        fobj, AbsoluteAxis.VERTICAL,
                        paddingRectangleHeight, backgroundImageHeight);
            }
        }
        return AbstractBackgroundPosition.getValueNoInstance();
View Full Code Here

        case BACKGROUND_IMAGE: {
            return new PdBackgroundImage(fobj, propertyFullName,
                    attributeValue);
        }
        case BACKGROUND_POSITION: {
            return new PdBackgroundPosition(fobj, propertyFullName,
                    attributeValue);
        }
        case BACKGROUND_POSITION_HORIZONTAL: {
            return new PdBackgroundPositionHorizontal(fobj, propertyFullName,
                    attributeValue);
View Full Code Here

TOP

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

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.