Class FontPolicies.FixedPolicy
- java.lang.Object
-
- org.pushingpixels.radiance.common.internal.font.FontPolicies.FixedPolicy
-
- All Implemented Interfaces:
FontPolicy
- Enclosing class:
- FontPolicies
private static final class FontPolicies.FixedPolicy extends java.lang.Object implements FontPolicy
A FontPolicy that returns a fixed FontSet and that ignores the laf name and UIDefaults table.
-
-
Constructor Summary
Constructors Constructor Description FixedPolicy(FontSet fontSet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FontSet
getFontSet()
Looks up and returns a set of fonts that will be used by a Look&Feel to set the default fonts for its components.
-
-
-
Field Detail
-
fontSet
private final FontSet fontSet
-
-
Constructor Detail
-
FixedPolicy
FixedPolicy(FontSet fontSet)
-
-
Method Detail
-
getFontSet
public FontSet 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.
- Specified by:
getFontSet
in interfaceFontPolicy
- Returns:
- a set of fonts used as default for the component.
-
-