public final class FontSets extends Object
FontSet,
FontPolicy,
FontPolicies| Modifier and Type | Method and Description |
|---|---|
static FontSet |
createDefaultFontSet(Font controlFont)
Creates and returns a FontSet that is based only
on the given control font.
|
static FontSet |
createDefaultFontSet(Font controlFont,
Font menuFont)
Creates and returns a FontSet that is based on the given control font
and menu font.
|
static FontSet |
createDefaultFontSet(Font controlFont,
Font menuFont,
Font titleFont)
Creates and returns a FontSet that is based on the given control font
and menu font.
|
static FontSet |
createDefaultFontSet(Font controlFont,
Font menuFont,
Font titleFont,
Font messageFont,
Font smallFont,
Font windowTitleFont)
Creates and returns a FontSet for the given fonts.
|
static FontSet |
getLogicalFontSet()
Lazily creates and returns the FontSet that returns
the logical fonts specified by the Java runtime environment.
|
public static FontSet createDefaultFontSet(Font controlFont)
controlFont - the font used for all controlsNullPointerException - if the control font is nullpublic static FontSet createDefaultFontSet(Font controlFont, Font menuFont)
controlFont - the font used for all controlsmenuFont - the font used for the menu bar and menu itemsNullPointerException - if the control font is nullpublic static FontSet createDefaultFontSet(Font controlFont, Font menuFont, Font titleFont)
controlFont - the font used for all controlsmenuFont - the font used for the menu bar and menu itemstitleFont - used for TitledBorder, titles and titled separatorsNullPointerException - if the control font is nullpublic static FontSet createDefaultFontSet(Font controlFont, Font menuFont, Font titleFont, Font messageFont, Font smallFont, Font windowTitleFont)
null, it uses the control font as
fallback. If the small font is null it will
be derived from the control font.controlFont - used for all controlsmenuFont - used for the menu bar and menu itemstitleFont - used for TitledBorder, titles and titled separatorsmessageFont - used for OptionPanessmallFont - used for tool tips and similar componentswindowTitleFont - used for internal frame window titlesNullPointerException - if the control font is nullpublic static FontSet getLogicalFontSet()
Copyright © 2001-2014 JGoodies Software GmbH. All Rights Reserved.