Class FontSets.DefaultFontSet

java.lang.Object
com.jgoodies.looks.FontSets.DefaultFontSet
All Implemented Interfaces:
FontSet
Enclosing class:
FontSets

static final class FontSets.DefaultFontSet extends Object implements FontSet
  • Field Details

  • Constructor Details

    • DefaultFontSet

      public DefaultFontSet(Font controlFont, Font menuFont, Font titleFont, Font messageFont, Font smallFont, Font windowTitleFont)
      Constructs a DefaultFontSet for the given fonts. If a font is null, it uses the control font as fallback. If the small font is null it will be derived from the control font.
      Parameters:
      controlFont - used for all controls
      menuFont - used for the menu bar and menu items
      titleFont - used for TitledBorder, titles and titled separators
      messageFont - used for OptionPanes
      smallFont - used for tool tips and similar components
      windowTitleFont - used for internal frame window titles
      Throws:
      NullPointerException - if the control font is null
  • Method Details

    • getControlFont

      public FontUIResource getControlFont()
      Description copied from interface: FontSet
      Returns the font used for all dialog components.
      Specified by:
      getControlFont in interface FontSet
      Returns:
      the font used for all dialog components.
    • getMenuFont

      public FontUIResource getMenuFont()
      Description copied from interface: FontSet
      Returns the font used for the menu.
      Specified by:
      getMenuFont in interface FontSet
      Returns:
      the font used for the menu.
    • getTitleFont

      public FontUIResource getTitleFont()
      Description copied from interface: FontSet
      Returns the font used for the title label in TitledBorders. This font is also used by JGoodies Forms titles, and titled separators.
      Specified by:
      getTitleFont in interface FontSet
      Returns:
      the font used for TitledBorder titles.
    • getWindowTitleFont

      public FontUIResource getWindowTitleFont()
      Description copied from interface: FontSet
      Returns the font used for internal frame titles.
      Specified by:
      getWindowTitleFont in interface FontSet
      Returns:
      the font used for internal frame titles.
    • getSmallFont

      public FontUIResource getSmallFont()
      Description copied from interface: FontSet
      Returns the font used for tool tips.
      Specified by:
      getSmallFont in interface FontSet
      Returns:
      the tool tip font.
    • getMessageFont

      public FontUIResource getMessageFont()
      Description copied from interface: FontSet
      Returns the font used for message dialogs.
      Specified by:
      getMessageFont in interface FontSet
      Returns:
      the font used for message dialogs.