Examples of DerivedFontAttributes


Examples of com.alee.utils.font.DerivedFontAttributes

     * @param size  new font size
     * @return the derived font.
     */
    public static Font getCachedDerivedFont ( final Font font, final int style, final int size )
    {
        final DerivedFontAttributes attribute = getFontAttribute ( font, style, size );
        Font derivedFont = derivedFontsCache.get ( attribute );
        if ( derivedFont == null )
        {
            derivedFont = font.deriveFont ( style, size );
            derivedFontsCache.put ( attribute, derivedFont );
View Full Code Here

Examples of com.alee.utils.font.DerivedFontAttributes

     * @param size  new font size
     * @return font attributes object
     */
    protected static DerivedFontAttributes getFontAttribute ( final Font font, final int style, final int size )
    {
        return new DerivedFontAttributes ( font, style, size );
    }
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.