com.jaxfront.swing.ui.tools
Class FontFactory

java.lang.Object
  extended by com.jaxfront.swing.ui.tools.FontFactory

public class FontFactory
extends java.lang.Object

This class acts as a factory that creates all kinds of cell types like cell for labels, images, headers and so on.

Version:
1.50

Constructor Summary
FontFactory()
           
 
Method Summary
 java.awt.Font createFont(FontParams fontDefinition)
           
 java.awt.Font createFont(FontParams fontDefinition, java.lang.String componentType)
           
 java.awt.Font createFont(java.lang.String fontDefinition)
           
 java.awt.Font createFont(java.lang.String fontDefinition, java.lang.String componentType)
           
static java.lang.String createFontDefiniton(java.lang.String fontName, int fontStyle, int fontSize)
           
static java.awt.Font createHeaderFont(java.lang.String family, int fontStyle, int fontSize, java.awt.Color color)
          Creates the font for the label.
static java.awt.Font createHeaderFont(TableCell tableCell)
          Creates the font for the label.
static java.awt.Font createLabelFont(TableCell tableCell)
          Creates the font for the label.
static FontParams getButtonFontDefinition()
          Gets the NAME of the default label font
static FontParams getCaptionFontDefinition()
          Gets the NAME of the default label font
static FontParams getCheckboxFontDefinition()
          Gets the NAME of the default label font
static FontParams getComboboxFontDefinition()
          Gets the NAME of the default label font
static FontParams getHeaderFontClassicDefinition()
           
static FontParams getHeaderFontDefinition()
          Gets the NAME of the default label font
static FontParams getHeaderFontDefinition(java.lang.String family, int style, int size, java.awt.Color color)
           
static FontParams getHeaderFontModernDefinition()
           
static FontParams getHintFontDefinition()
          Gets the NAME of the default label font
static FontFactory getInstance()
           
static FontParams getLabelFontDefinition()
          Gets the NAME of the default label font
static FontParams getLabelFontDefinition(java.lang.String family, int style, int size, java.awt.Color color)
          Gets the NAME of the default label font
static FontParams getListFontDefinition()
          Gets the NAME of the default label font
static FontParams getMenuFontDefinition()
           
static FontParams getMenuItemFontDefinition()
           
static FontParams getMessageFontDefinition()
          Gets the NAME of the default label font
static FontParams getOptionPaneFontDefinition()
          Gets the NAME of the default label font
static FontParams getPopupFontDefinition()
          Gets the NAME of the default label font
static FontParams getRadioButtonFontDefinition()
           
static FontParams getTabFontDefinition()
          Gets the NAME of the default label font
static FontParams getTableFontDefinition()
          Gets the NAME of the default label font
static FontParams getTextFieldFontDefinition()
           
static FontParams getTextFieldFontDefinition(java.lang.String family, int style, int size)
           
static FontParams getTitleBorderFontDefinition()
          Gets the NAME of the default label font
static FontParams getTreeEntryFolderFontDefinition()
          Gets the NAME of the default label font
static FontParams getTreeEntryFontDefinition()
          Gets the NAME of the default label font
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FontFactory

public FontFactory()
Method Detail

createLabelFont

public static java.awt.Font createLabelFont(TableCell tableCell)
Creates the font for the label.

Parameters:
tableCell - a xui table cell that contains infos about the font
Returns:

createHeaderFont

public static java.awt.Font createHeaderFont(TableCell tableCell)
Creates the font for the label.

Parameters:
tableCell - a xui table cell that contains infos about the font
Returns:

createHeaderFont

public static java.awt.Font createHeaderFont(java.lang.String family,
                                             int fontStyle,
                                             int fontSize,
                                             java.awt.Color color)
Creates the font for the label.

Parameters:
tableCell - a xui table cell that contains infos about the font
Returns:

createFont

public java.awt.Font createFont(java.lang.String fontDefinition)

createFont

public java.awt.Font createFont(FontParams fontDefinition)

createFont

public java.awt.Font createFont(FontParams fontDefinition,
                                java.lang.String componentType)
Parameters:
fontDefinition -
componentType - use "TextField.font" or "Label.font" or .. from UIDefaults
Returns:

createFont

public java.awt.Font createFont(java.lang.String fontDefinition,
                                java.lang.String componentType)

main

public static void main(java.lang.String[] args)

getInstance

public static FontFactory getInstance()

createFontDefiniton

public static java.lang.String createFontDefiniton(java.lang.String fontName,
                                                   int fontStyle,
                                                   int fontSize)

getLabelFontDefinition

public static FontParams getLabelFontDefinition()
Gets the NAME of the default label font

Returns:

getHeaderFontModernDefinition

public static FontParams getHeaderFontModernDefinition()

getHeaderFontClassicDefinition

public static FontParams getHeaderFontClassicDefinition()

getTabFontDefinition

public static FontParams getTabFontDefinition()
Gets the NAME of the default label font

Returns:

getHeaderFontDefinition

public static FontParams getHeaderFontDefinition()
Gets the NAME of the default label font

Returns:

getTitleBorderFontDefinition

public static FontParams getTitleBorderFontDefinition()
Gets the NAME of the default label font

Returns:

getHintFontDefinition

public static FontParams getHintFontDefinition()
Gets the NAME of the default label font

Returns:

getMessageFontDefinition

public static FontParams getMessageFontDefinition()
Gets the NAME of the default label font

Returns:

getCaptionFontDefinition

public static FontParams getCaptionFontDefinition()
Gets the NAME of the default label font

Returns:

getTreeEntryFontDefinition

public static FontParams getTreeEntryFontDefinition()
Gets the NAME of the default label font

Returns:

getButtonFontDefinition

public static FontParams getButtonFontDefinition()
Gets the NAME of the default label font

Returns:

getRadioButtonFontDefinition

public static FontParams getRadioButtonFontDefinition()

getComboboxFontDefinition

public static FontParams getComboboxFontDefinition()
Gets the NAME of the default label font

Returns:

getCheckboxFontDefinition

public static FontParams getCheckboxFontDefinition()
Gets the NAME of the default label font

Returns:

getListFontDefinition

public static FontParams getListFontDefinition()
Gets the NAME of the default label font

Returns:

getTreeEntryFolderFontDefinition

public static FontParams getTreeEntryFolderFontDefinition()
Gets the NAME of the default label font

Returns:

getTableFontDefinition

public static FontParams getTableFontDefinition()
Gets the NAME of the default label font

Returns:

getPopupFontDefinition

public static FontParams getPopupFontDefinition()
Gets the NAME of the default label font

Returns:

getOptionPaneFontDefinition

public static FontParams getOptionPaneFontDefinition()
Gets the NAME of the default label font

Returns:

getMenuItemFontDefinition

public static FontParams getMenuItemFontDefinition()

getMenuFontDefinition

public static FontParams getMenuFontDefinition()

getLabelFontDefinition

public static FontParams getLabelFontDefinition(java.lang.String family,
                                                int style,
                                                int size,
                                                java.awt.Color color)
Gets the NAME of the default label font

Returns:

getHeaderFontDefinition

public static FontParams getHeaderFontDefinition(java.lang.String family,
                                                 int style,
                                                 int size,
                                                 java.awt.Color color)

getTextFieldFontDefinition

public static FontParams getTextFieldFontDefinition()

getTextFieldFontDefinition

public static FontParams getTextFieldFontDefinition(java.lang.String family,
                                                    int style,
                                                    int size)