1 30 31 package com.jgoodies.looks.plastic.theme; 32 33 import java.awt.Font ; 34 35 import javax.swing.plaf.FontUIResource ; 36 37 import com.jgoodies.looks.FontSizeHints; 38 import com.jgoodies.looks.LookUtils; 39 import com.jgoodies.looks.plastic.PlasticLookAndFeel; 40 41 48 49 public class SkyBluerTahoma extends SkyBluer { 50 51 public String getName() { 52 return "Sky Bluer - Tahoma"; 53 } 54 55 protected Font getFont0() { 56 FontSizeHints sizeHints = PlasticLookAndFeel.getFontSizeHints(); 57 return getFont0(sizeHints.controlFontSize()); 58 } 59 60 protected Font getFont0(int size) { 61 if (LookUtils.IS_OS_MAC) 62 return super.getFont0(); 63 64 return new Font ("Tahoma", Font.PLAIN, size); 65 } 66 67 public FontUIResource getSubTextFont() { 68 if (null == smallFont) { 69 smallFont = new FontUIResource (getFont0(10)); 70 } 71 return smallFont; 72 } 73 74 public FontUIResource getSystemTextFont() { 75 return getFont(); 76 } 77 78 public FontUIResource getUserTextFont() { 79 return getFont(); 80 } 81 } | Popular Tags |