Class 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.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private FontSet fontSet  
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 interface FontPolicy
        Returns:
        a set of fonts used as default for the component.