com.taco.i18n.gui
Interface FontUtilities.IFontMapper
- All Known Implementing Classes:
- FontUtilities.DefaultFontMapper
- Enclosing class:
- FontUtilities
public static interface FontUtilities.IFontMapper
Method Summary |
java.awt.Font |
fontForBorder(java.util.Locale oldLocale,
javax.swing.border.Border border,
java.util.Locale locale,
java.awt.Font[] availableFonts)
Return a font suitable for displaying characters in the argument
locale, to be used in the argument border. |
java.awt.Font |
fontForComponent(java.util.Locale oldLocale,
java.awt.Component component,
java.util.Locale locale,
java.awt.Font[] availableFonts)
Return a font suitable for displaying characters in the argument
locale, to be used in the argument component. |
fontForComponent
java.awt.Font fontForComponent(java.util.Locale oldLocale,
java.awt.Component component,
java.util.Locale locale,
java.awt.Font[] availableFonts)
- Return a font suitable for displaying characters in the argument
locale, to be used in the argument component. If the font doesn't
need to be set, return
null
.
- Parameters:
oldLocale
- The locale to change from.component
- The component the returned font is for.locale
- The locale to change to.availableFonts
- An array of fonts capable of displaying
characters in the argument locale.
- Returns:
- The font to be used for the component, or
null
if the font doesn't need to be set.
fontForBorder
java.awt.Font fontForBorder(java.util.Locale oldLocale,
javax.swing.border.Border border,
java.util.Locale locale,
java.awt.Font[] availableFonts)
- Return a font suitable for displaying characters in the argument
locale, to be used in the argument border. If the font doesn't
need to be set, return
null
.
- Parameters:
oldLocale
- The locale to change from.border
- The border the returned font is for.locale
- The locale to change to.availableFonts
- An array of fonts capable of displaying
characters in the argument locale.
- Returns:
- The font to be used for the border, or
null
if the font doesn't need to be set.