Class ScaledFontSet
- java.lang.Object
-
- org.pushingpixels.radiance.common.internal.font.ScaledFontSet
-
-
Field Summary
Fields Modifier and Type Field Description private FontSet
delegate
The base font set.private float
scaleFactor
Scale factor.
-
Constructor Summary
Constructors Constructor Description ScaledFontSet(FontSet delegate, float scaleFactor)
Creates a wrapper font set.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.plaf.FontUIResource
getControlFont()
Returns the font used for all dialog components.javax.swing.plaf.FontUIResource
getMenuFont()
Returns the font used for the menu.javax.swing.plaf.FontUIResource
getMessageFont()
Returns the font used for message dialogs.javax.swing.plaf.FontUIResource
getSmallFont()
Returns the font used for tool tips.javax.swing.plaf.FontUIResource
getTitleFont()
Returns the font used for the title label in TitledBorders.javax.swing.plaf.FontUIResource
getWindowTitleFont()
Returns the font used for frame titles.private javax.swing.plaf.FontUIResource
getWrappedFont(javax.swing.plaf.FontUIResource systemFont)
Returns the wrapped font.
-
-
-
Field Detail
-
scaleFactor
private float scaleFactor
Scale factor. Should be positive.
-
delegate
private FontSet delegate
The base font set.
-
-
Constructor Detail
-
ScaledFontSet
public ScaledFontSet(FontSet delegate, float scaleFactor)
Creates a wrapper font set.- Parameters:
delegate
- The base font set.scaleFactor
- Scale factor. Should be positive.
-
-
Method Detail
-
getWrappedFont
private javax.swing.plaf.FontUIResource getWrappedFont(javax.swing.plaf.FontUIResource systemFont)
Returns the wrapped font.- Parameters:
systemFont
- Original font.- Returns:
- Wrapped font.
-
getControlFont
public javax.swing.plaf.FontUIResource getControlFont()
Description copied from interface:FontSet
Returns the font used for all dialog components.- Specified by:
getControlFont
in interfaceFontSet
- Returns:
- the font used for all dialog components.
-
getMenuFont
public javax.swing.plaf.FontUIResource getMenuFont()
Description copied from interface:FontSet
Returns the font used for the menu.- Specified by:
getMenuFont
in interfaceFontSet
- Returns:
- the font used for the menu.
-
getMessageFont
public javax.swing.plaf.FontUIResource getMessageFont()
Description copied from interface:FontSet
Returns the font used for message dialogs.- Specified by:
getMessageFont
in interfaceFontSet
- Returns:
- the font used for message dialogs.
-
getSmallFont
public javax.swing.plaf.FontUIResource getSmallFont()
Description copied from interface:FontSet
Returns the font used for tool tips.- Specified by:
getSmallFont
in interfaceFontSet
- Returns:
- the tool tip font.
-
getTitleFont
public javax.swing.plaf.FontUIResource getTitleFont()
Description copied from interface:FontSet
Returns the font used for the title label in TitledBorders. This font is also used by JGoodies Forms titles, and titled separators.- Specified by:
getTitleFont
in interfaceFontSet
- Returns:
- the font used for TitledBorder titles.
-
getWindowTitleFont
public javax.swing.plaf.FontUIResource getWindowTitleFont()
Description copied from interface:FontSet
Returns the font used for frame titles.- Specified by:
getWindowTitleFont
in interfaceFontSet
- Returns:
- the font used for frame titles.
-
-