com.jgoodies.looks
Class FontSets
java.lang.Object
com.jgoodies.looks.FontSets
public final class FontSets
extends java.lang.Object
Provides predefined FontSet implementations.
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.
|
createDefaultFontSet
public static FontSet createDefaultFontSet(Font controlFont)
Creates and returns a FontSet that is based only
on the given control font. The small font will be
derived from the control font; all other fonts
returned are the control font.
controlFont
- the font used for all controls
- a FontSet based on the given fonts
createDefaultFontSet
public static FontSet createDefaultFontSet(Font controlFont,
Font menuFont)
Creates and returns a FontSet that is based on the given control font
and menu font. The small font will be derived from the control font;
all other fonts return, except the menu font, are the control font.
controlFont
- the font used for all controlsmenuFont
- the font used for the menu bar and menu items
- a FontSet based on the given fonts
createDefaultFontSet
public 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. The small font will be derived from the control font;
all other fonts return, except the menu font, are the control font.
controlFont
- the font used for all controlsmenuFont
- the font used for the menu bar and menu itemstitleFont
- used for TitledBorder, titles and titled separators
- a FontSet based on the given fonts
createDefaultFontSet
public static FontSet createDefaultFontSet(Font controlFont,
Font menuFont,
Font titleFont,
Font messageFont,
Font smallFont,
Font windowTitleFont)
Creates and returns a FontSet for the given fonts.
If a font is 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 titles
- a FontSet based on the given fonts
getLogicalFontSet
public static FontSet getLogicalFontSet()
Lazily creates and returns the FontSet that returns
the logical fonts specified by the Java runtime environment.
- a FontSets that uses the logical fonts specified
by the Java environment
Copyright © 2001-2008 JGoodies Karsten Lentzsch. All Rights Reserved.