Class FontSets.DefaultFontSet
java.lang.Object
org.pushingpixels.radiance.common.internal.font.FontSets.DefaultFontSet
- All Implemented Interfaces:
FontSet
- Enclosing class:
FontSets
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FontUIResourceprivate final FontUIResourceprivate final FontUIResourceprivate final FontUIResourceprivate final FontUIResourceprivate 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 frame titles.private FontUIResourcewrapIfNecessary(Font font)
-
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 isnullit 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
-
wrapIfNecessary
-
getControlFont
Description copied from interface:FontSetReturns the font used for all dialog components.- Specified by:
getControlFontin interfaceFontSet- Returns:
- the font used for all dialog components.
-
getMenuFont
Description copied from interface:FontSetReturns the font used for the menu.- Specified by:
getMenuFontin interfaceFontSet- Returns:
- the font used for the menu.
-
getTitleFont
Description copied from interface:FontSetReturns the font used for the title label in TitledBorders. This font is also used by JGoodies Forms titles, and titled separators.- Specified by:
getTitleFontin interfaceFontSet- Returns:
- the font used for TitledBorder titles.
-
getWindowTitleFont
Description copied from interface:FontSetReturns the font used for frame titles.- Specified by:
getWindowTitleFontin interfaceFontSet- Returns:
- the font used for frame titles.
-
getSmallFont
Description copied from interface:FontSetReturns the font used for tool tips.- Specified by:
getSmallFontin interfaceFontSet- Returns:
- the tool tip font.
-
getMessageFont
Description copied from interface:FontSetReturns the font used for message dialogs.- Specified by:
getMessageFontin interfaceFontSet- Returns:
- the font used for message dialogs.
-