Class FontSets.DefaultFontSet
- java.lang.Object
-
- org.pushingpixels.radiance.common.internal.font.FontSets.DefaultFontSet
-
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.plaf.FontUIResourcecontrolFontprivate javax.swing.plaf.FontUIResourcemenuFontprivate javax.swing.plaf.FontUIResourcemessageFontprivate javax.swing.plaf.FontUIResourcesmallFontprivate javax.swing.plaf.FontUIResourcetitleFontprivate javax.swing.plaf.FontUIResourcewindowTitleFont
-
Constructor Summary
Constructors Constructor Description DefaultFontSet(java.awt.Font controlFont, java.awt.Font menuFont, java.awt.Font titleFont, java.awt.Font messageFont, java.awt.Font smallFont, java.awt.Font windowTitleFont)Constructs a DefaultFontSet for the given fonts.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.plaf.FontUIResourcegetControlFont()Returns the font used for all dialog components.javax.swing.plaf.FontUIResourcegetMenuFont()Returns the font used for the menu.javax.swing.plaf.FontUIResourcegetMessageFont()Returns the font used for message dialogs.javax.swing.plaf.FontUIResourcegetSmallFont()Returns the font used for tool tips.javax.swing.plaf.FontUIResourcegetTitleFont()Returns the font used for the title label in TitledBorders.javax.swing.plaf.FontUIResourcegetWindowTitleFont()Returns the font used for frame titles.private javax.swing.plaf.FontUIResourcewrapIfNecessary(java.awt.Font font)
-
-
-
Field Detail
-
controlFont
private final javax.swing.plaf.FontUIResource controlFont
-
menuFont
private final javax.swing.plaf.FontUIResource menuFont
-
titleFont
private final javax.swing.plaf.FontUIResource titleFont
-
messageFont
private final javax.swing.plaf.FontUIResource messageFont
-
smallFont
private final javax.swing.plaf.FontUIResource smallFont
-
windowTitleFont
private final javax.swing.plaf.FontUIResource windowTitleFont
-
-
Constructor Detail
-
DefaultFontSet
public DefaultFontSet(java.awt.Font controlFont, java.awt.Font menuFont, java.awt.Font titleFont, java.awt.Font messageFont, java.awt.Font smallFont, java.awt.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:
java.lang.NullPointerException- if the control font isnull
-
-
Method Detail
-
wrapIfNecessary
private javax.swing.plaf.FontUIResource wrapIfNecessary(java.awt.Font font)
-
getControlFont
public javax.swing.plaf.FontUIResource 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
public javax.swing.plaf.FontUIResource getMenuFont()
Description copied from interface:FontSetReturns the font used for the menu.- Specified by:
getMenuFontin interfaceFontSet- Returns:
- the font used for the menu.
-
getTitleFont
public javax.swing.plaf.FontUIResource 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
public javax.swing.plaf.FontUIResource getWindowTitleFont()
Description copied from interface:FontSetReturns the font used for frame titles.- Specified by:
getWindowTitleFontin interfaceFontSet- Returns:
- the font used for frame titles.
-
getSmallFont
public javax.swing.plaf.FontUIResource getSmallFont()
Description copied from interface:FontSetReturns the font used for tool tips.- Specified by:
getSmallFontin interfaceFontSet- Returns:
- the tool tip font.
-
getMessageFont
public javax.swing.plaf.FontUIResource getMessageFont()
Description copied from interface:FontSetReturns the font used for message dialogs.- Specified by:
getMessageFontin interfaceFontSet- Returns:
- the font used for message dialogs.
-
-