Class FontSizeHints
java.lang.Object
org.pushingpixels.substance.internal.contrib.jgoodies.looks.FontSizeHints
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.".
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FontSizeHintsstatic final FontSizeHintsstatic final FontSizeHintsstatic final FontSizeHintsstatic final FontSizeHintsstatic final FontSizeHintsstatic final FontSizeHints -
Constructor Summary
ConstructorsConstructorDescriptionFontSizeHints(int loResMenuFontSize, int loResControlFontSize, int hiResMenuFontSize, int hiResControlFontSize) ConstructsFontSizeHintsfor the specified menu and control fonts, both for low and high resolution environments. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the control font size.floatReturns the delta between system control font size and our control font size hint.intReturns the high resolution control font size.intReturns the high resolution menu font size.intReturns the low resolution control font size.intReturns the low resolution menu font size.intReturns the menu font size.floatReturns the delta between the system menu font size and our menu font size hint.static FontSizeHintsLooksup and returns theFontSizeHintsfor the specified name.
-
Field Details
-
LARGE
-
SYSTEM
-
MIXED2
-
MIXED
-
SMALL
-
FIXED
-
DEFAULT
-
-
Constructor Details
-
FontSizeHints
public FontSizeHints(int loResMenuFontSize, int loResControlFontSize, int hiResMenuFontSize, int hiResControlFontSize) ConstructsFontSizeHintsfor the specified menu and control fonts, both for low and high resolution environments.- Parameters:
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 resolution
-
-
Method Details
-
loResMenuFontSize
public int loResMenuFontSize()Returns the low resolution menu font size.- Returns:
- the size of the menu font in low resolution mode
-
loResControlFontSize
public int loResControlFontSize()Returns the low resolution control font size.- Returns:
- the size of the control font in low resolution mode
-
hiResMenuFontSize
public int hiResMenuFontSize()Returns the high resolution menu font size.- Returns:
- the size of the menu font in high resolution mode
-
hiResControlFontSize
public int hiResControlFontSize()Returns the high resolution control font size.- Returns:
- the size of the control font in high resolution mode
-
controlFontSize
public int controlFontSize()Returns the control font size.- Returns:
- the size of the control font in the current resolution
-
controlFontSizeDelta
public float controlFontSizeDelta()Returns the delta between system control font size and our control font size hint.- Returns:
- the delta between the system control font size and our control font size hint
-
valueOf
Looksup and returns theFontSizeHintsfor the specified name.- Parameters:
name- the name of the FontSizeHints object- Returns:
- the associated FontSizeHints object
-