Package com.jgoodies.looks
Class FontSets.DefaultFontSet
java.lang.Object
com.jgoodies.looks.FontSets.DefaultFontSet
- All Implemented Interfaces:
FontSet
- Enclosing class:
FontSets
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FontUIResource
private final FontUIResource
private final FontUIResource
private final FontUIResource
private final FontUIResource
private final FontUIResource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the font used for all dialog components.Returns the font used for the menu.Returns the font used for message dialogs.Returns the font used for tool tips.Returns the font used for the title label in TitledBorders.Returns the font used for internal frame titles.
-
Field Details
-
controlFont
-
titleFont
-
messageFont
-
smallFont
-
windowTitleFont
-
-
Constructor Details
-
DefaultFontSet
public DefaultFontSet(Font controlFont, Font menuFont, Font titleFont, Font messageFont, Font smallFont, Font windowTitleFont) Constructs a DefaultFontSet for the given fonts. If a font isnull
, it uses the control font as fallback. If the small font isnull
it will be derived from the control font.- Parameters:
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- Throws:
NullPointerException
- if the control font isnull
-
-
Method Details
-
getControlFont
Description copied from interface:FontSet
Returns the font used for all dialog components.- Specified by:
getControlFont
in interfaceFontSet
- Returns:
- the font used for all dialog components.
-
getMenuFont
Description copied from interface:FontSet
Returns the font used for the menu.- Specified by:
getMenuFont
in interfaceFontSet
- Returns:
- the font used for the menu.
-
getTitleFont
Description copied from interface:FontSet
Returns the font used for the title label in TitledBorders. This font is also used by JGoodies Forms titles, and titled separators.- Specified by:
getTitleFont
in interfaceFontSet
- Returns:
- the font used for TitledBorder titles.
-
getWindowTitleFont
Description copied from interface:FontSet
Returns the font used for internal frame titles.- Specified by:
getWindowTitleFont
in interfaceFontSet
- Returns:
- the font used for internal frame titles.
-
getSmallFont
Description copied from interface:FontSet
Returns the font used for tool tips.- Specified by:
getSmallFont
in interfaceFontSet
- Returns:
- the tool tip font.
-
getMessageFont
Description copied from interface:FontSet
Returns the font used for message dialogs.- Specified by:
getMessageFont
in interfaceFontSet
- Returns:
- the font used for message dialogs.
-