public final class FontHelper
extends java.lang.Object
MetalLookAndFeel,
Font| Constructor and Description |
|---|
FontHelper() |
| Modifier and Type | Method and Description |
|---|---|
static java.awt.Font |
getDefaultFont()
Returns the default Font
|
static java.lang.String |
getDefaultFontName()
Returns the default Font name
|
static int |
getDefaultFontSize()
Returns the default Font size
|
static java.awt.Font |
getFont(java.lang.String name,
int style,
int size)
Returns a new Font with the specified attributes
|
static java.awt.Font |
getFontWithName(java.lang.String name,
java.awt.Font inFont)
Returns the specified Font with its name changed
to the specified name.
|
static java.awt.Font |
getFontWithSize(int size,
java.awt.Font inFont)
Returns the specified Font with its size changed
to the specified size.
|
static java.awt.Font |
getFontWithStyle(int style,
java.awt.Font inFont)
Returns the specified Font with its style changed
to the specified style.
|
public static java.lang.String getDefaultFontName()
MetalLookAndFeel.getControlTextFont()public static int getDefaultFontSize()
MetalLookAndFeel.getControlTextFont()public static java.awt.Font getDefaultFont()
MetalLookAndFeel.getUserTextFont()public static java.awt.Font getFontWithStyle(int style,
java.awt.Font inFont)
int - styleFont - inFontpublic static java.awt.Font getFontWithName(java.lang.String name,
java.awt.Font inFont)
String - nameFont - inFontpublic static java.awt.Font getFontWithSize(int size,
java.awt.Font inFont)
int - sizeFont - inFontpublic static java.awt.Font getFont(java.lang.String name,
int style,
int size)
String - nameint - styleint - size