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 Object implements FontPolicy
A FontPolicy that returns a fixed FontSet and that ignores the laf name and UIDefaults table.
  • Field Details

    • fontSet

      private final FontSet fontSet
  • Constructor Details

    • FixedPolicy

      FixedPolicy(FontSet fontSet)
  • Method Details

    • 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 interface FontPolicy
      Returns:
      a set of fonts used as default for the component.