|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alee.laf.WebFonts
public class WebFonts
This class returns base fonts for all component types on various OS. This is some kind of workaround since there is no good way to retrieve native component fonts from OS itself. Usually it is native L&F who setup system fonts but inside it simply has hardcoded fonts, which is not really different from my way.
Field Summary | |
---|---|
static java.lang.String |
LUCIDA_GRANDE
Mac OS X fonts. |
static java.lang.String |
SANS_SERIF
Unix fonts. |
static java.lang.String |
SEGOE_UI
|
static java.lang.String |
TAHOMA
Windows fonts. |
Constructor Summary | |
---|---|
WebFonts()
|
Method Summary | |
---|---|
static javax.swing.plaf.FontUIResource |
getSystemAcceleratorFont()
Returns system accelerator font. |
static javax.swing.plaf.FontUIResource |
getSystemAlertFont()
Returns system alert dialog font. |
static javax.swing.plaf.FontUIResource |
getSystemControlFont()
Returns system controls font. |
static javax.swing.plaf.FontUIResource |
getSystemMenuFont()
Returns system menu font. |
static javax.swing.plaf.FontUIResource |
getSystemTextFont()
Returns system text font. |
static javax.swing.plaf.FontUIResource |
getSystemTitleFont()
Returns system title font. |
static javax.swing.plaf.FontUIResource |
getSystemTooltipFont()
Returns system tooltip font. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TAHOMA
public static final java.lang.String SEGOE_UI
public static final java.lang.String LUCIDA_GRANDE
public static final java.lang.String SANS_SERIF
Constructor Detail |
---|
public WebFonts()
Method Detail |
---|
public static javax.swing.plaf.FontUIResource getSystemControlFont()
public static javax.swing.plaf.FontUIResource getSystemAlertFont()
public static javax.swing.plaf.FontUIResource getSystemMenuFont()
public static javax.swing.plaf.FontUIResource getSystemAcceleratorFont()
public static javax.swing.plaf.FontUIResource getSystemTitleFont()
public static javax.swing.plaf.FontUIResource getSystemTextFont()
public static javax.swing.plaf.FontUIResource getSystemTooltipFont()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |