|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jvnet.substance.fonts.FontSets
public final class FontSets
Provides predefined FontSet implementations.
FontSet
,
FontPolicy
,
FontPolicies
Method Summary | |
---|---|
static FontSet |
createDefaultFontSet(java.awt.Font controlFont)
Creates and returns a FontSet that is based only on the given control font. |
static FontSet |
createDefaultFontSet(java.awt.Font controlFont,
java.awt.Font menuFont)
Creates and returns a FontSet that is based on the given control font and menu font. |
static FontSet |
createDefaultFontSet(java.awt.Font controlFont,
java.awt.Font menuFont,
java.awt.Font titleFont)
Creates and returns a FontSet that is based on the given control font and menu font. |
static FontSet |
createDefaultFontSet(java.awt.Font controlFont,
java.awt.Font menuFont,
java.awt.Font titleFont,
java.awt.Font messageFont,
java.awt.Font smallFont,
java.awt.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static FontSet createDefaultFontSet(java.awt.Font controlFont)
controlFont
- the font used for all controls
java.lang.NullPointerException
- if the control font is null
public static FontSet createDefaultFontSet(java.awt.Font controlFont, java.awt.Font menuFont)
controlFont
- the font used for all controlsmenuFont
- the font used for the menu bar and menu items
java.lang.NullPointerException
- if the control font is null
public static FontSet createDefaultFontSet(java.awt.Font controlFont, java.awt.Font menuFont, java.awt.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 separators
java.lang.NullPointerException
- if the control font is null
public static FontSet createDefaultFontSet(java.awt.Font controlFont, java.awt.Font menuFont, java.awt.Font titleFont, java.awt.Font messageFont, java.awt.Font smallFont, java.awt.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 titles
java.lang.NullPointerException
- if the control font is null
public static FontSet getLogicalFontSet()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |