java.lang.Object
xal.extension.widgets.swing.wheelswitch.util.FontHelper

public final class FontHelper extends Object
Helper class that provides simple access to Font UI resources
Version:
$id$
Author:
Jernej Kamenik
See Also:
  • Method Details

    • getDefaultFontName

      public static String getDefaultFontName()
      Returns the default Font name
      Returns:
      String name
      See Also:
    • getDefaultFontSize

      public static int getDefaultFontSize()
      Returns the default Font size
      Returns:
      int size
      See Also:
    • getDefaultFont

      public static Font getDefaultFont()
      Returns the default Font
      Returns:
      Font
      See Also:
    • getFontWithStyle

      public static Font getFontWithStyle(int style, Font inFont)
      Returns the specified Font with its style changed to the specified style.
      Parameters:
      style -
      inFont -
      Returns:
      Font
    • getFontWithName

      public static Font getFontWithName(String name, Font inFont)
      Returns the specified Font with its name changed to the specified name.
      Parameters:
      name -
      inFont -
      Returns:
      Font
    • getFontWithSize

      public static Font getFontWithSize(int size, Font inFont)
      Returns the specified Font with its size changed to the specified size.
      Parameters:
      size -
      inFont -
      Returns:
      Font
    • getFont

      public static Font getFont(String name, int style, int size)
      Returns a new Font with the specified attributes
      Parameters:
      name -
      style -
      size -
      Returns:
      Font