Package com.jgoodies.looks
Class FontPolicies.DefaultPlasticOnWindowsPolicy
java.lang.Object
com.jgoodies.looks.FontPolicies.DefaultWindowsPolicy
com.jgoodies.looks.FontPolicies.DefaultPlasticOnWindowsPolicy
- All Implemented Interfaces:
FontPolicy
- Enclosing class:
FontPolicies
private static final class FontPolicies.DefaultPlasticOnWindowsPolicy
extends FontPolicies.DefaultWindowsPolicy
Implements the default font lookup for the Plastic Linvalid input: '&f' family
when running in a Windows environment.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFontSet
(String lafName, 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.
-
Constructor Details
-
DefaultPlasticOnWindowsPolicy
private DefaultPlasticOnWindowsPolicy()
-
-
Method Details
-
getFontSet
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
- Overrides:
getFontSet
in classFontPolicies.DefaultWindowsPolicy
- 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.
-