public final class FontSizeHints
extends java.lang.Object
These hints are only applied if the dialog font is Tahoma, which is the default font on the majority of Windows desktops. The hints apply a size delta to increase or decrease the given system font size.
NOTE: This is work in progress and will probably change in the next release, to better reflect the font choice in the J2SE 1.4.".
Options.setGlobalFontSizeHints(FontSizeHints)
,
FontUtils
Modifier and Type | Field and Description |
---|---|
static FontSizeHints |
DEFAULT |
static FontSizeHints |
FIXED |
static FontSizeHints |
LARGE |
static FontSizeHints |
MIXED |
static FontSizeHints |
MIXED2 |
static FontSizeHints |
SMALL |
static FontSizeHints |
SYSTEM |
Constructor and Description |
---|
FontSizeHints(int loResMenuFontSize,
int loResControlFontSize,
int hiResMenuFontSize,
int hiResControlFontSize)
Constructs
FontSizeHints for the specified menu and
control fonts, both for low and high resolution environments. |
Modifier and Type | Method and Description |
---|---|
int |
controlFontSize()
Returns the control font size.
|
float |
controlFontSizeDelta()
Returns the delta between system control font size and
our control font size hint.
|
int |
hiResControlFontSize()
Returns the high resolution control font size.
|
int |
hiResMenuFontSize()
Returns the high resolution menu font size.
|
int |
loResControlFontSize()
Returns the low resolution control font size.
|
int |
loResMenuFontSize()
Returns the low resolution menu font size.
|
int |
menuFontSize()
Returns the menu font size.
|
float |
menuFontSizeDelta()
Returns the delta between the system menu font size and
our menu font size hint.
|
static FontSizeHints |
valueOf(java.lang.String name)
Looksup and returns the
FontSizeHints for the specified name. |
public static final FontSizeHints LARGE
public static final FontSizeHints SYSTEM
public static final FontSizeHints MIXED2
public static final FontSizeHints MIXED
public static final FontSizeHints SMALL
public static final FontSizeHints FIXED
public static final FontSizeHints DEFAULT
public FontSizeHints(int loResMenuFontSize, int loResControlFontSize, int hiResMenuFontSize, int hiResControlFontSize)
FontSizeHints
for the specified menu and
control fonts, both for low and high resolution environments.loResMenuFontSize
- the size of the menu font in low resolutionloResControlFontSize
- the size of the control font in low resolutionhiResMenuFontSize
- the size of the menu font in low resolutionhiResControlFontSize
- the size of the control font in low resolutionpublic int loResMenuFontSize()
public int loResControlFontSize()
public int hiResMenuFontSize()
public int hiResControlFontSize()
public int menuFontSize()
public int controlFontSize()
public float menuFontSizeDelta()
public float controlFontSizeDelta()
public static FontSizeHints valueOf(java.lang.String name)
FontSizeHints
for the specified name.name
- the name of the FontSizeHints object