| java.lang.Object com.sun.midp.chameleon.skins.resources.FontResources
FontResources | public class FontResources (Code) | | There are three different font faces available in MIDP:
Monospace, Proportional, and System. There are eight
different styles available: Plain, Italic, Bold, Bold Italic,
Underline, Underline Italic, Underline Bold, and
Underline Bold Italic. There are three different sizes
available: Small, Medium, and Large. That presents
a matrix of 72 different font possibilities. This class
serves to manage those different possibilities.
Identifiers use a FACE_STYLE_SIZE naming scheme, where
FACE is one of [MONO|PROP|SYS], STYLE is one of
[P|I|B|BI|U|UI|UB|UBI], and SIZE is one of [S|M|L].
|
Method Summary | |
static Font | getFont(int fontID) This is a static convenience method for retrieving a
system Font object based on an identifier. |
MONO_BI_L | final public static int MONO_BI_L(Code) | | Monospaced, bold italic, large
|
MONO_BI_M | final public static int MONO_BI_M(Code) | | Monospaced, bold italic, medium
|
MONO_BI_S | final public static int MONO_BI_S(Code) | | Monospaced, bold italic, small
|
MONO_B_L | final public static int MONO_B_L(Code) | | Monospaced, bold, large
|
MONO_B_M | final public static int MONO_B_M(Code) | | Monospaced, bold, medium
|
MONO_B_S | final public static int MONO_B_S(Code) | | Monospaced, bold, small
|
MONO_I_L | final public static int MONO_I_L(Code) | | Monospaced, italic, large
|
MONO_I_M | final public static int MONO_I_M(Code) | | Monospaced, italic, medium
|
MONO_I_S | final public static int MONO_I_S(Code) | | Monospaced, italic, small
|
MONO_P_L | final public static int MONO_P_L(Code) | | Monospaced, plain, large
|
MONO_P_M | final public static int MONO_P_M(Code) | | Monospaced, plain, medium
|
MONO_P_S | final public static int MONO_P_S(Code) | | Monospaced, plain, small
|
MONO_UBI_L | final public static int MONO_UBI_L(Code) | | Monospaced, underline bold italic, large
|
MONO_UBI_M | final public static int MONO_UBI_M(Code) | | Monospaced, underline bold italic, medium
|
MONO_UBI_S | final public static int MONO_UBI_S(Code) | | Monospaced, underline bold italic, small
|
MONO_UB_L | final public static int MONO_UB_L(Code) | | Monospaced, underline bold, large
|
MONO_UB_M | final public static int MONO_UB_M(Code) | | Monospaced, underline bold, medium
|
MONO_UB_S | final public static int MONO_UB_S(Code) | | Monospaced, underline bold, small
|
MONO_UI_L | final public static int MONO_UI_L(Code) | | Monospaced, underline italic, large
|
MONO_UI_M | final public static int MONO_UI_M(Code) | | Monospaced, underline italic, medium
|
MONO_UI_S | final public static int MONO_UI_S(Code) | | Monospaced, underline italic, small
|
MONO_U_L | final public static int MONO_U_L(Code) | | Monospaced, underline, large
|
MONO_U_M | final public static int MONO_U_M(Code) | | Monospaced, underline, medium
|
MONO_U_S | final public static int MONO_U_S(Code) | | Monospaced, underline, small
|
PROP_BI_L | final public static int PROP_BI_L(Code) | | Proportional, bold italic, large
|
PROP_BI_M | final public static int PROP_BI_M(Code) | | Proportional, bold italic, medium
|
PROP_BI_S | final public static int PROP_BI_S(Code) | | Proportional, bold italic, small
|
PROP_B_L | final public static int PROP_B_L(Code) | | Proportional, bold, large
|
PROP_B_M | final public static int PROP_B_M(Code) | | Proportional, bold, medium
|
PROP_B_S | final public static int PROP_B_S(Code) | | Proportional, bold, small
|
PROP_I_L | final public static int PROP_I_L(Code) | | Proportional, italic, large
|
PROP_I_M | final public static int PROP_I_M(Code) | | Proportional, italic, medium
|
PROP_I_S | final public static int PROP_I_S(Code) | | Proportional, italic, small
|
PROP_P_L | final public static int PROP_P_L(Code) | | Proportional, plain, large
|
PROP_P_M | final public static int PROP_P_M(Code) | | Proportional, plain, medium
|
PROP_P_S | final public static int PROP_P_S(Code) | | Proportional, plain, small
|
PROP_UBI_L | final public static int PROP_UBI_L(Code) | | Proportional, underline bold italic, large
|
PROP_UBI_M | final public static int PROP_UBI_M(Code) | | Proportional, underline bold italic, medium
|
PROP_UBI_S | final public static int PROP_UBI_S(Code) | | Proportional, underline bold italic, small
|
PROP_UB_L | final public static int PROP_UB_L(Code) | | Proportional, underline bold, large
|
PROP_UB_M | final public static int PROP_UB_M(Code) | | Proportional, underline bold, medium
|
PROP_UB_S | final public static int PROP_UB_S(Code) | | Proportional, underline bold, small
|
PROP_UI_L | final public static int PROP_UI_L(Code) | | Proportional, underline italic, large
|
PROP_UI_M | final public static int PROP_UI_M(Code) | | Proportional, underline italic, medium
|
PROP_UI_S | final public static int PROP_UI_S(Code) | | Proportional, underline italic, small
|
PROP_U_L | final public static int PROP_U_L(Code) | | Proportional, underline, large
|
PROP_U_M | final public static int PROP_U_M(Code) | | Proportional, underline, medium
|
PROP_U_S | final public static int PROP_U_S(Code) | | Proportional, underline, small
|
SYS_BI_L | final public static int SYS_BI_L(Code) | | System, bold italic, large
|
SYS_BI_M | final public static int SYS_BI_M(Code) | | System, bold italic, medium
|
SYS_BI_S | final public static int SYS_BI_S(Code) | | System, bold italic, small
|
SYS_B_L | final public static int SYS_B_L(Code) | | System, bold, large
|
SYS_B_M | final public static int SYS_B_M(Code) | | System, bold, medium
|
SYS_B_S | final public static int SYS_B_S(Code) | | System, bold, small
|
SYS_I_L | final public static int SYS_I_L(Code) | | System, italic, large
|
SYS_I_M | final public static int SYS_I_M(Code) | | System, italic, medium
|
SYS_I_S | final public static int SYS_I_S(Code) | | System, italic, small
|
SYS_P_L | final public static int SYS_P_L(Code) | | System, plain, large
|
SYS_P_M | final public static int SYS_P_M(Code) | | System, plain, medium
|
SYS_P_S | final public static int SYS_P_S(Code) | | System, plain, small
|
SYS_UBI_L | final public static int SYS_UBI_L(Code) | | System, underline bold italic, large
|
SYS_UBI_M | final public static int SYS_UBI_M(Code) | | System, underline bold italic, medium
|
SYS_UBI_S | final public static int SYS_UBI_S(Code) | | System, underline bold italic, small
|
SYS_UB_L | final public static int SYS_UB_L(Code) | | System, underline bold, large
|
SYS_UB_M | final public static int SYS_UB_M(Code) | | System, underline bold, medium
|
SYS_UB_S | final public static int SYS_UB_S(Code) | | System, underline bold, small
|
SYS_UI_L | final public static int SYS_UI_L(Code) | | System, underline italic, large
|
SYS_UI_M | final public static int SYS_UI_M(Code) | | System, underline italic, medium
|
SYS_UI_S | final public static int SYS_UI_S(Code) | | System, underline italic, small
|
SYS_U_L | final public static int SYS_U_L(Code) | | System, underline, large
|
SYS_U_M | final public static int SYS_U_M(Code) | | System, underline, medium
|
SYS_U_S | final public static int SYS_U_S(Code) | | System, underline, small
|
getFont | static Font getFont(int fontID)(Code) | | This is a static convenience method for retrieving a
system Font object based on an identifier. The identifier
must be one of the values defined in FontResourcesConstants,
ie, MONO_S_P, SYS_L_UBI, etc.
Parameters: fontID - the integer identifier for the Font to retrieve the system Font corresponding to the given integer id,null if the fontID is not a valid identifier.Note, this Font may not be exactly what is requested andhas the same caveats as the normal Font constructor interms of what gets returned versus the parameters given. |
|
|