Package org.foray.fotree.value

Examples of org.foray.fotree.value.DtLength


            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


            final FObj fobj,
            final String value, final String subPropertyName,
            final String propertyFullName) throws PropertyException {
        DtSpace spaceDT = inputSpaceDT;
        if (spaceDT == null) {
            final DtLength length = DtLength.makeLengthDT("0pt");
            spaceDT = new DtSpace(length, length, length,
                    FoValue.DISCARD, new DtInteger(0));
        }
        final boolean componentAdded = spaceDT.addComponent(subPropertyName,
                value);
View Full Code Here

        }
        final DtURI uri = DtURI.makeUriDT(input);
        if (uri != null) {
            return FoProperty.BACKGROUND_IMAGE;
        }
        final DtLength length = DtLength.makeLengthDT(input);
        if (length != null) {
            return FoProperty.BACKGROUND_POSITION;
        }
        final DtPercentage percentage = DtPercentage.makePercentageDT(input);
        if (percentage != null) {
View Full Code Here

TOP

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

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.