Package org.foray.fotree.fo.prop

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


        }
        case VOLUME: {
            return new PdVolume(fobj, propertyFullName, attributeValue);
        }
        case WHITE_SPACE: {
            return new PdWhiteSpace(fobj, propertyFullName, attributeValue);
        }
        case WHITE_SPACE_COLLAPSE: {
            return new PdWhiteSpaceCollapse(fobj, propertyFullName,
                    attributeValue);
        }
View Full Code Here


                FoProperty.WRAP_OPTION);
        if (property != null) {
            return property.getValue(context, fobj);
        }
        // Try the shorthand
        final PdWhiteSpace whiteSpace = (PdWhiteSpace) getProperty(
                FoProperty.WHITE_SPACE);
        if (whiteSpace != null) {
            switch (whiteSpace.getValue(context, fobj)) {
            case NORMAL: {
                return FoValue.WRAP;
            }
            case PRE: {
                return FoValue.NO_WRAP;
View Full Code Here

                        FoProperty.WHITE_SPACE_COLLAPSE);
        if (property != null) {
            return property.getValue(context, fobj);
        }
        // Try the shorthand
        final PdWhiteSpace enumProperty = (PdWhiteSpace) getProperty(
                FoProperty.WHITE_SPACE);
        if (enumProperty != null) {
            switch (enumProperty.getValue(context, fobj)) {
            case NORMAL: {
                return true;
            }
            case PRE: {
                return false;
View Full Code Here

                FoProperty.LINEFEED_TREATMENT);
        if (property != null) {
            return property.getValue(context, fobj);
        }
        // Try the shorthand
        final PdWhiteSpace whiteSpace = (PdWhiteSpace) getProperty(
                FoProperty.WHITE_SPACE);
        if (whiteSpace != null) {
            switch (whiteSpace.getValue(context, fobj)) {
            case NORMAL: {
                return FoValue.TREAT_AS_SPACE;
            }
            case PRE: {
                return FoValue.PRESERVE;
View Full Code Here

     * @param context An object that knows how to resolve FO Tree context
     * issues.
     * @return The white-space property.
     */
    public FoValue traitWhiteSpace(final FObj fobj, final FoContext context) {
        final PdWhiteSpace property = (PdWhiteSpace) getProperty(
                FoProperty.WHITE_SPACE);
        if (property != null) {
            return property.getValue(context, fobj);
        }
        return PdWhiteSpace.getValueNoInstance(context, fobj);
    }
View Full Code Here

                        FoProperty.WHITE_SPACE_TREATMENT);
        if (property != null) {
            return property.getValue(context, fobj);
        }
        // Try the shorthand
        final PdWhiteSpace whiteSpace = (PdWhiteSpace) getProperty(
                FoProperty.WHITE_SPACE);
        if (whiteSpace != null) {
            switch (whiteSpace.getValue(context, fobj)) {
            case NORMAL: {
                return FoValue.IGNORE_IF_SURROUNDING_LINEFEED;
            }
            case PRE: {
                return FoValue.PRESERVE;
View Full Code Here

TOP

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

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.