|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jaxfront.swing.ui.tools.FontFactory
public class FontFactory
This class acts as a factory that creates all kinds of cell types like cell for labels, images, headers and so on.
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 |
---|
public FontFactory()
Method Detail |
---|
public static java.awt.Font createLabelFont(TableCell tableCell)
tableCell
- a xui table cell that contains infos about the font
public static java.awt.Font createHeaderFont(TableCell tableCell)
tableCell
- a xui table cell that contains infos about the font
public static java.awt.Font createHeaderFont(java.lang.String family, int fontStyle, int fontSize, java.awt.Color color)
tableCell
- a xui table cell that contains infos about the font
public java.awt.Font createFont(java.lang.String fontDefinition)
public java.awt.Font createFont(FontParams fontDefinition)
public java.awt.Font createFont(FontParams fontDefinition, java.lang.String componentType)
fontDefinition
- componentType
- use "TextField.font" or "Label.font" or .. from UIDefaults
public java.awt.Font createFont(java.lang.String fontDefinition, java.lang.String componentType)
public static void main(java.lang.String[] args)
public static FontFactory getInstance()
public static java.lang.String createFontDefiniton(java.lang.String fontName, int fontStyle, int fontSize)
public static FontParams getLabelFontDefinition()
public static FontParams getHeaderFontModernDefinition()
public static FontParams getHeaderFontClassicDefinition()
public static FontParams getTabFontDefinition()
public static FontParams getHeaderFontDefinition()
public static FontParams getTitleBorderFontDefinition()
public static FontParams getHintFontDefinition()
public static FontParams getMessageFontDefinition()
public static FontParams getCaptionFontDefinition()
public static FontParams getTreeEntryFontDefinition()
public static FontParams getButtonFontDefinition()
public static FontParams getRadioButtonFontDefinition()
public static FontParams getComboboxFontDefinition()
public static FontParams getCheckboxFontDefinition()
public static FontParams getListFontDefinition()
public static FontParams getTreeEntryFolderFontDefinition()
public static FontParams getTableFontDefinition()
public static FontParams getPopupFontDefinition()
public static FontParams getOptionPaneFontDefinition()
public static FontParams getMenuItemFontDefinition()
public static FontParams getMenuFontDefinition()
public static FontParams getLabelFontDefinition(java.lang.String family, int style, int size, java.awt.Color color)
public static FontParams getHeaderFontDefinition(java.lang.String family, int style, int size, java.awt.Color color)
public static FontParams getTextFieldFontDefinition()
public static FontParams getTextFieldFontDefinition(java.lang.String family, int style, int size)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |