Package org.foray.fotree.fo.prop

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


     * issues.
     * @return The background-color property.
     */
    public java.awt.Color getBackgroundColor(final FObj fobj,
            final FoContext context) {
        PdBackgroundColor property = (PdBackgroundColor)
                getProperty(FoProperty.BACKGROUND_COLOR);
        if (property != null) {
            return property.getValue(context, fobj);
        }
        // Try the shorthand
        final PdBackground background = (PdBackground) getProperty(
                FoProperty.BACKGROUND);
        if (background != null) {
            property = background.getColor();
            if (property != null) {
                return property.getValue(context, fobj);
            }
        }
        return PdBackgroundColor.getValueNoInstance();
    }
View Full Code Here


        case BACKGROUND_ATTACHMENT: {
            return new PdBackgroundAttachment(fobj, propertyFullName,
                    attributeValue);
        }
        case BACKGROUND_COLOR: {
            return new PdBackgroundColor(fobj, propertyFullName,
                    attributeValue);
        }
        case BACKGROUND_IMAGE: {
            return new PdBackgroundImage(fobj, propertyFullName,
                    attributeValue);
View Full Code Here

TOP

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

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.