Package org.foray.fotree.fo.prop

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


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

        /* Now try the high-level shorthand, that is, "border". */
        final AbstractBorder border = (AbstractBorder) getProperty(
                FoProperty.BORDER);
        if (border != null) {
            abstractBorderColor = border.getBorderColor();
            return abstractBorderColor.getValue(direction, fobj, context);
        }

        /* If none of those work, try the explicit setting for the corresponding
         * direction. */
 
View Full Code Here


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

        /* Now try the high-level shorthand, that is, "border". */
        final AbstractBorder border = (AbstractBorder) getProperty(
                    FoProperty.BORDER);
        if (border != null) {
            //TODO: This needs to adjust the direction
            abstractBorderStyle = border.getBorderStyle();
            return abstractBorderStyle.getValue(context, direction, fobj);
        }

        /* If none of those work, we try an explicit setting for the
         * corresponding direction. */
 
View Full Code Here

            return abstractBorderWidth.getValue(context, fobj);
        }

        /* Now try the lowest-level shorthand, e.g. "border-top". */
        rawPropertyType = AbstractBorder.rawPropertyType(otherDirection);
        final AbstractBorder abstractBorder = (AbstractBorder) getProperty(
                rawPropertyType);
        if (abstractBorder != null) {
            abstractBorderWidth = abstractBorder.getBorderWidth();
            if (abstractBorderWidth != null) {
                return abstractBorderWidth.getValue(context, fobj);
            }
        }

        /* Now try the next least-precise shorthand, that is, "border-width". */
        final PdBorderWidth borderWidth = (PdBorderWidth) getProperty(
                FoProperty.BORDER_WIDTH);
        if (borderWidth != null) {
            return borderWidth.getValue(context, direction, fobj);
        }

        /* Now try the least-precise shorthand, that is, "border". */
        final AbstractBorder border = (AbstractBorder) getProperty(
                FoProperty.BORDER);
        if (border != null) {
            abstractBorderWidth = border.getBorderWidth();
        }

        if (abstractBorderWidth != null) {
            return abstractBorderWidth.getValue(context, fobj);
        }
View Full Code Here

TOP

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

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.