Package org.foray.fotree.fo.prop

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


        }
        case PLAY_DURING: {
            return new PdPlayDuring(fobj, propertyFullName, attributeValue);
        }
        case POSITION: {
            return new PdPosition(fobj, propertyFullName, attributeValue);
        }
        case PRECEDENCE: {
            return new PdPrecedence(fobj, propertyFullName, attributeValue);
        }
        case PROVISIONAL_DISTANCE_BETWEEN_STARTS: {
View Full Code Here


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

                FoProperty.ABSOLUTE_POSITION);
        if (property != null) {
            return property.getValue(context, fobj);
        }
        // Try the shorthand.
        final PdPosition position = (PdPosition) getProperty(
                FoProperty.POSITION);
        if (position != null) {
            switch (position.getValue(context, fobj)) {
            case STATIC: {
                return FoValue.AUTO;
            }
            case RELATIVE: {
                return FoValue.AUTO;
View Full Code Here

                FoProperty.RELATIVE_POSITION);
        if (property != null) {
            return property.getValue(context, fobj);
        }
        // Try the shorthand.
        final PdPosition position = (PdPosition) getProperty(
                FoProperty.POSITION);
        if (position != null) {
            switch (position.getValue(context, fobj)) {
            case STATIC: {
                return FoValue.STATIC;
            }
            case RELATIVE: {
                return FoValue.RELATIVE;
View Full Code Here

TOP

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

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.