Examples of traitFontWeight()


Examples of org.foray.fotree.FObj.traitFontWeight()

                 * 3) find the relative font in that font-family. */
                final FObj parent = fobj.effectiveParent(context);
                if (parent == null) {
                    return Font.Weight.DARK;
                }
                final Font.Weight inheritedWeight = parent.traitFontWeight(
                        context);
                return inheritedWeight.nextHeaviest();
            }
            case LIGHTER: {
                /* See comments regarding this general algorithm in BOLDER case
View Full Code Here

Examples of org.foray.fotree.FObj.traitFontWeight()

                 * above. */
                final FObj parent = fobj.effectiveParent(context);
                if (parent == null) {
                    return Font.Weight.LIGHT;
                }
                final Font.Weight inheritedWeight = parent.traitFontWeight(
                        context);
                return inheritedWeight.nextLightest();
            }
            }
        }
View Full Code Here

Examples of org.foray.fotree.FObj.traitFontWeight()

     */
    public static Font.Weight getValueNoInstance(final FoContext context,
            final FObj fobj) {
        final FObj parent = fobj.effectiveParent(context);
        if (parent != null) {
            return parent.traitFontWeight(context);
        }
        return Font.Weight.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.