| |
|
| java.lang.Object contrib.com.jgoodies.looks.FontSizeHints
FontSizeHints | final public class FontSizeHints (Code) | | Describes font size hints used by the JGoodies Windows look&feel;
future implementations of the Plastic l&f may use the same hints.
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.".
author: Karsten Lentzsch version: $Revision: 1.2 $ See Also: Options.setGlobalFontSizeHints(FontSizeHints) See Also: FontUtils |
Constructor Summary | |
public | 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. |
FontSizeHints | public FontSizeHints(int loResMenuFontSize, int loResControlFontSize, int hiResMenuFontSize, int hiResControlFontSize)(Code) | | Constructs FontSizeHints for the specified menu and
control fonts, both for low and high resolution environments.
Parameters: loResMenuFontSize - the size of the menu font in low resolution Parameters: loResControlFontSize - the size of the control font in low resolution Parameters: hiResMenuFontSize - the size of the menu font in low resolution Parameters: hiResControlFontSize - the size of the control font in low resolution |
controlFontSize | public int controlFontSize()(Code) | | Returns the control font size.
the size of the control font in the current resolution |
controlFontSizeDelta | public float controlFontSizeDelta()(Code) | | Returns the delta between system control font size and
our control font size hint.
the delta between the system control font size and our control font size hint |
hiResControlFontSize | public int hiResControlFontSize()(Code) | | Returns the high resolution control font size.
the size of the control font in high resolution mode |
hiResMenuFontSize | public int hiResMenuFontSize()(Code) | | Returns the high resolution menu font size.
the size of the menu font in high resolution mode |
loResControlFontSize | public int loResControlFontSize()(Code) | | Returns the low resolution control font size.
the size of the control font in low resolution mode |
loResMenuFontSize | public int loResMenuFontSize()(Code) | | Returns the low resolution menu font size.
the size of the menu font in low resolution mode |
menuFontSize | public int menuFontSize()(Code) | | Returns the menu font size.
the size of the menu font in the current resolution |
menuFontSizeDelta | public float menuFontSizeDelta()(Code) | | Returns the delta between the system menu font size and
our menu font size hint.
the delta between the system menu font size and our menu font size hint |
valueOf | public static FontSizeHints valueOf(String name)(Code) | | Looksup and returns the FontSizeHints for the specified name.
Parameters: name - the name of the FontSizeHints object the associated FontSizeHints object |
|
|
|