Package org.foray.fotree.fo

Examples of org.foray.fotree.fo.FoProperty


        /* NOTE: The precedence of the various properties and shorthand values
         * is discussed in XSL-FO Recommendation 1.1, Section 5.2. */

        /* Try the most explicit setting first, e.g. "border-before-width". */
        AbstractBorderWidth abstractBorderWidth = null;
        FoProperty rawPropertyType = AbstractBorderWidth.rawPropertyType(
                direction);
        abstractBorderWidth = (AbstractBorderWidth) getProperty(
                rawPropertyType);
        if (abstractBorderWidth != null) {
            return abstractBorderWidth.getValue(context, fobj);
View Full Code Here


        /* Precedence is given to the absolute explicit property, if it is
         * set. */
        AbstractPadding explicitPadding = null;
        final AbsoluteCompass absoluteDirection = getWritingMode(fobj,
                context).getAbsoluteDirection(relativeDirection);
        FoProperty rawPropertyType = AbstractPadding.rawPropertyType(
                absoluteDirection);
        explicitPadding = (AbstractPadding) getProperty(rawPropertyType);

        /* The next item to check is the relative explicit property. */
        if (explicitPadding == null) {
View Full Code Here

            throw unexpectedValue(value, fobj);
        }
        // Create an array indicating which property is in each position
        final FoProperty[] positionArray = new FoProperty[tokenList.size()];
        for (int i = 0; i < tokenList.size(); i++) {
            final FoProperty contentType = getContentType(tokenList.get(i));
            if (contentType == null) {
                throw unexpectedValue(value, fobj);
            }
            positionArray[i] = contentType;
        }
View Full Code Here

            tokenList.add(st.nextToken());
        }
        // Create an array indicating which property is in each position
        final FoProperty[] positionArray = new FoProperty[tokenList.size()];
        for (int i = 0; i < tokenList.size(); i++) {
            final FoProperty contentType = getContentType(tokenList.get(i));
            if (contentType == null) {
                throw unexpectedValue(value, fobj);
            }
            positionArray[i] = contentType;
        }
View Full Code Here

                    + " font.");
        }
        if (arguments.length > 1) {
            if (arguments[1] instanceof DtName) {
                final DtName name = (DtName) arguments[1];
                final FoProperty foProperty = FoProperty.xslValueOf(
                        name.getValue());
                if (foProperty == null) {
                    throw new PropertyException("Not a valid property in the "
                            + "fo: namespace: " + name.getValue());
                }
View Full Code Here

                throw new PropertyException("Function " + this.getFunctionName()
                        + " is valid only for properties in the fo: "
                        + "namespace.");
            }
        } else {
            final FoProperty foProperty = FoProperty.xslValueOf(
                    name.getValue());
            if (foProperty == null) {
                throw new PropertyException("Not a valid property in the fo: "
                        + "namespace: " + name.getValue());
            }
View Full Code Here

     */
    public PropertyValue eval(final Property callingProperty, final FObj fobj)
            throws PropertyException {
        /* TODO: Provide the right context. */
        final FObj parent = fobj.effectiveParent(null);
        final FoProperty propertyType = this.getPropertyType();
        /*
         * TODO: This is not right. It needs to return the inherited value
         * regardless of whether the Property was explicitly set or not.
         */
        final Property ps = parent.getPropertyList().getProperty(propertyType);
View Full Code Here

         * non-inherited properties too. Perhaps the result is different for
         * a property like line-height which "inherits specified"???
         */
        /* TODO: Provide the right context. */
        final FObj parent = fobj.effectiveParent(null);
        final FoProperty propertyType = this.getPropertyType();
        /*
         * TODO: This is not right. It needs to return the PropertyValue
         * regardless of whether the Property was explicitly set or not.
         */
        final Property ps = parent.getPropertyList().getProperty(propertyType);
View Full Code Here

TOP

Related Classes of org.foray.fotree.fo.FoProperty

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.