Package com.jgoodies.looks
Class FontPolicies.DefaultWindowsPolicy
- java.lang.Object
-
- com.jgoodies.looks.FontPolicies.DefaultWindowsPolicy
-
- All Implemented Interfaces:
FontPolicy
- Direct Known Subclasses:
FontPolicies.DefaultPlasticOnWindowsPolicy
- Enclosing class:
- FontPolicies
private static class FontPolicies.DefaultWindowsPolicy extends java.lang.Object implements FontPolicy
Implements the default font lookup on the Windows platform.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
FONT_UTILITIES_CLASS_NAME
-
Constructor Summary
Constructors Modifier Constructor Description private
DefaultWindowsPolicy()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static boolean
fontSupportsDefaultEncoding(java.awt.Font font)
private static javax.swing.plaf.FontUIResource
getCompositeFontUIResource(java.awt.Font font)
FontSet
getFontSet(java.lang.String lafName, javax.swing.UIDefaults table)
Looks up and returns a set of fonts that will be used by a Look&Feel to set the default fonts for its components.private static java.awt.Font
lookUpControlFont(java.awt.Font windowsControlFont, javax.swing.UIDefaults table)
-
-
-
Method Detail
-
getFontSet
public FontSet getFontSet(java.lang.String lafName, javax.swing.UIDefaults table)
Description copied from interface:FontPolicy
Looks up and returns a set of fonts that will be used by a Look&Feel to set the default fonts for its components.This method is invoked during the L&F component initialization. And the invoker hands over the UIDefaults object used to define the component settings. Hence, the UIDefaults object may be used to look up a font as initialized by a super Look&Feel. For example the JGoodies Windows L&F could use the defaults set by the super L&F, the Sun Windows L&F.
- Specified by:
getFontSet
in interfaceFontPolicy
- Parameters:
lafName
- the name of the Look&Feel that requests the fontstable
- the UIDefaults table that can be used to look up fonts of a super L&F- Returns:
- a set of fonts used as default for the component.
-
lookUpControlFont
private static java.awt.Font lookUpControlFont(java.awt.Font windowsControlFont, javax.swing.UIDefaults table)
-
fontSupportsDefaultEncoding
private static boolean fontSupportsDefaultEncoding(java.awt.Font font)
-
getCompositeFontUIResource
private static javax.swing.plaf.FontUIResource getCompositeFontUIResource(java.awt.Font font)
-
-