Examples of FoValue


Examples of org.foray.fotree.fo.FoValue

        }
        if (value().canEvalLength()) {
            return this.convertValueToLength(value(), fobj, context);
        }
        if (value().canEvalKeyword()) {
            final FoValue foValue = this.convertValueToFoValue(value());
            if (foValue == FoValue.AUTO) {
                return FObj.DIMENSION_AUTO;
            }
            if (foValue == FoValue.INHERIT) {
                switch (subProperty) {
View Full Code Here

Examples of org.foray.fotree.fo.FoValue

     * @param fobj The FObj to which this property belongs.
     * @return True iff this property's value is "auto".
     */
    public boolean isAuto(final FObj fobj) {
        if (value().canEvalKeyword()) {
            final FoValue foValue = this.convertValueToFoValue(value());
            if (foValue == FoValue.AUTO) {
                return true;
            }
            if (foValue == FoValue.INHERIT) {
                final FObj parent = fobj.getParent();
View Full Code Here

Examples of org.foray.fotree.fo.FoValue

            return null;
        }
        if (input.startsWith("/")) {
            return FoProperty.LINE_HEIGHT;
        }
        final FoValue keyword = FoValue.xslValueOf(input);
        if (Property.keywordInSet(keyword, PdFontStyle.VALID_KEYWORDS)) {
            return FoProperty.FONT_STYLE;
        }
        if (Property.keywordInSet(keyword, PdFontVariant.VALID_KEYWORDS)) {
            return FoProperty.FONT_VARIANT;
View Full Code Here

Examples of org.foray.fotree.fo.FoValue

     * @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

Examples of org.foray.fotree.fo.FoValue

     * @return The value of this property.
     */
    public int traitValueAmount(final FoContext context, final FObj fobj,
            final FoInlineContext inlineContext) {
        if (value().canEvalKeyword()) {
            final FoValue foValue = this.convertValueToFoValue(value());
            /* TODO: These are not right. We need to get this information from the font. */
            switch (foValue) {
            case AUTO: return 0;
            case BASELINE: return 0;
            case BEFORE_EDGE: return 0;
View Full Code Here

Examples of org.foray.fotree.fo.FoValue

     * @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

Examples of org.foray.fotree.fo.FoValue

     * 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

Examples of org.foray.fotree.fo.FoValue

             */
            final double base = 1 / fobj.traitSpeechRate(context) * 60000;
            return base * percentage;
        }
        if (value().canEvalKeyword()) {
            final FoValue keyword = this.convertValueToFoValue(value());
            switch (keyword) {
            case INHERIT: {
                final FObj parent = fobj.effectiveParent(context);
                if (parent != null) {
                    switch (propertyType) {
View Full Code Here

Examples of org.foray.fotree.fo.FoValue

     * @return The value of this property.
     */
    public double getShorthandValue(final FoContext context, final FObj fobj,
            final FoProperty propertyType) {
        if (value().canEvalKeyword()) {
            final FoValue keyword = this.convertValueToFoValue(value());
            switch (keyword) {
            case INHERIT: {
                final FObj parent = fobj.effectiveParent(context);
                if (parent != null) {
                    switch (propertyType) {
View Full Code Here

Examples of org.foray.fotree.fo.FoValue

     * @param fobj The FO for which this value is needed.
     * @return The value of this property.
     */
    public Font.Variant 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 NORMAL: {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.