Package org.foray.fotree.fo

Examples of org.foray.fotree.fo.FoValue


     * @return The parsed property for the token.
     * @throws PropertyException For an invalid property value.
     */
    private Property parseToken(final FObj fobj,
            final String token) throws PropertyException {
        final FoValue value = FoValue.xslValueOf(token);

        // Check style first, since it only has keywords
        if (Property.keywordInSet(value, AbstractBorderStyle.VALID_KEYWORDS)) {
            return new PdBorderStyle(FoPropertyKeyword.getPropertyKeyword(
                    value));
View Full Code Here


    public String getValue(final FoContext context, final FObj fobj) {
        if (value() instanceof DtURI) {
            return ((DtURI) value()).getValue();
        }
        if (value().canEvalKeyword()) {
            final FoValue keyword = this.convertValueToFoValue(value());
            switch (keyword) {
            case INHERIT: {
                return getInheritedValue(context, fobj);
            }
            case AUTO: {
View Full Code Here

     * @param fobj The FO for which this value is needed.
     * @return The value of this property.
     */
    public boolean getValue(final FoContext context, final FObj fobj) {
        if (value().canEvalKeyword()) {
            final FoValue keyword = this.convertValueToFoValue(value());
            switch (keyword) {
            case INHERIT: {
                return getValueNoInstance(context, fobj);
            }
            case TRUE: {
View Full Code Here

     * @param fobj The FO for which this value is needed.
     * @return The value of this property.
     */
    public int getValue(final FoContext context, final FObj fobj) {
        if (value().canEvalKeyword()) {
            final FoValue keyword = this.convertValueToFoValue(value());
            switch (keyword) {
            case INHERIT: {
                return getValueNoInstance(context, fobj);
            }
            }
View Full Code Here

        }
        if (value().canEvalLength()) {
            return this.convertValueToLength(value(), fobj, context);
        }
        if (value().canEvalKeyword()) {
            final FoValue keyword = this.convertValueToFoValue(value());
            switch (keyword) {
            case TOP:
            case LEFT: {
                return 0;
            }
View Full Code Here

     * @param fobj The FO for which this value is needed.
     * @return The value of this property.
     */
    public int traitValue(final FoContext context, final FObj fobj) {
        if (value().canEvalKeyword()) {
            final FoValue keyword = this.convertValueToFoValue(value());
            switch (keyword) {
            case INHERIT: {
                return fobj.effectiveParent(context)
                        .traitProvisionalDistanceBetweenStarts(context);
            }
View Full Code Here

     * Returns the value of this property.
     * @return The value of this property.
     */
    public FoValue getValue() {
        if (value().canEvalKeyword()) {
            final FoValue keyword = this.convertValueToFoValue(value());
            return keyword;
        }
        throw this.unexpectedRetrieval();
    }
View Full Code Here

     * @param fobj The FO for which this value is needed.
     * @return The value of this property.
     */
    public FoValue getValue(final FoContext context, final FObj fobj) {
        if (value().canEvalKeyword()) {
            final FoValue keyword = this.convertValueToFoValue(value());
            if (keyword == FoValue.INHERIT) {
                final FObj parent = fobj.effectiveParent(context);
                if (parent != null) {
                    return getInheritedValue(context, parent);
                }
View Full Code Here

    public double getValue(final FoContext context, final FObj fobj) {
        if (value() instanceof DtFrequency) {
            return ((DtFrequency) value()).getValue();
        }
        if (value().canEvalKeyword()) {
            final FoValue keyword = this.convertValueToFoValue(value());
            if (keyword == FoValue.INHERIT) {
                return getValueNoInstance(context, fobj);
            }

            final Voice voice = fobj.getVoice(context);
View Full Code Here

                        / WKConstants.PERCENT_CONVERSION);
            }
            throw this.unexpectedRetrieval();
        }
        if (value().canEvalKeyword()) {
            final FoValue foValue = this.convertValueToFoValue(value());
            if (foValue == FoValue.INHERIT) {
                return getValueInherited(context, subProperty, fobj,
                        context.ipdAncestorBlockOrRa());
            }
        }
View Full Code Here

TOP

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

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.