Package org.foray.fotree.value

Examples of org.foray.fotree.value.FnLabelEnd


        if (value().canEvalLength()) {
            return this.convertValueToLength(value(), fobj, context);
        }
        if (value() instanceof FnLabelEnd
                && direction == RelativeCompass.END) {
            final FnLabelEnd function = (FnLabelEnd) value();
            final DtLength lengthDT = function.eval(fobj, context);
            return lengthDT.getValue(fobj.traitFontSize(context));
        }
        if (value() instanceof FnBodyStart
                && direction == RelativeCompass.START) {
            final FnBodyStart function = (FnBodyStart) value();
            final DtLength lengthDT = function.eval(fobj, context);
            return lengthDT.getValue(fobj.traitFontSize(context));
        }
        throw this.unexpectedRetrieval();
    }
View Full Code Here

TOP

Related Classes of org.foray.fotree.value.FnLabelEnd

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.