Class FxSystemFont
public final class FxSystemFont extends FxFont
{
// Methods
public static String[] getAttributeList();
public static String[] getAttributeList(String faceName);
public static Font getCaptionFont();
public static int getFlagsVal(String face, String attribute);
public static Font getFont(String face, Vector v, int size);
public static Font getFont(String face, int style, int size,
int flags);
public static String[] getFontList();
public static Font getIconTitleFont();
public static Font getMenuFont();
public static Font getMessageBoxFont();
public static Font getSmallCaptionFont();
public static Font getStatusFont();
public static int getStyleVal(String face, String attribute);
public static Font matchFaceToFont(String face);
}
This class handles system fonts (system-specific fonts that are used in graphical user interface components such as dialog boxes and menus). This class is cross-platform, but on platforms other than Microsoft® Win32®, FxSystemFont will default to the use of predefined standard fonts.
Font
|
+--FxFont
|
+--FxSystemFont
public static String[] getAttributeList();
Retrieves a list of the generic attributes that the font supports.
Return Value:
Returns null.
Remarks:
Currently, this method is not implemented.
Overrides:
getAttributeList() in FxFont.
public static String[] getAttributeList(String faceName);
Retrieves a list of the attributes that the font supports.
Return Value:
Returns null.
Parameter | Description |
faceName
| The font's name.
|
Remarks:
Currently, this method is not implemented.
Overrides:
getAttributeList(String) in FxFont.
public static Font getCaptionFont();
Retrieves the system caption font.
Return Value:
Returns the caption font.
public static int getFlagsVal(String face, String attribute);
Retrieves a value for the flags of the given face name.
Return Value:
Returns 0.
Parameter | Description |
face
| The font's name.
|
attribute
| A string that contains the attributes of the font (for example, "Rotatable").
|
Remarks:
Currently, this method is not implemented.
Overrides:
getFlagsVal(String,String) in FxFont.
public static Font getFont(String face, Vector v, int size);
Retrieves a font if an exact match is made with the given face, vector, and size.
Return Value:
Returns a Font object that matches the given parameters.
Parameter | Description |
face
| The font's face name ("Helvetica", for example).
|
v
| A list of style names.
|
size
| The size of the font (in points). Currently, font size is not used in finding a match.
|
Overrides:
getFont(String,Vector,int) in FxFont.
public static Font getFont(String face, int style, int size, int flags);
Retrieves a font if an exact match is made with the given face, style, size and flags.
Return Value:
Returns a Font object that matches the given parameters.
Parameter | Description |
face
| The font's face name ("Helvetica", for example).
|
style
| The font's style.
|
size
| The size of the font (in points).
|
flags
| This parameter can be one or a combination of the following: EMBEDDED, STRIKEOUT, or UNDERLINE.
|
Overrides:
getFont(String,int,int,int) in FxFont.
public static String[] getFontList();
Retrieves a list of the faces that the font supports.
Return Value:
Returns the list of faces as an array of String objects.
Overrides:
getFontList() in FxFont.
public static Font getIconTitleFont();
Retrieves the Icon Title system font.
Return Value:
Returns the Icon Title font.
public static Font getMenuFont();
Retrieves the Menu system font.
Return Value:
Returns the Menu font.
public static Font getMessageBoxFont();
Retrieves the Message Box system font.
Return Value:
Returns the Message Box font.
public static Font getSmallCaptionFont();
Retrieves the Small Caption system font.
Return Value:
Returns the Small Caption font.
public static Font getStatusFont();
Retrieves the Status system font.
Return Value:
Returns the Status font.
public static int getStyleVal(String face, String attribute);
Retrieves a value for the style flags of the given face name.
Return Value:
Returns 0.
Parameter | Description |
face
| The font's name.
|
attribute
| A string that contains the attributes of the font (for example, "Rotatable").
|
Remarks:
Currently, this method is not implemented.
Overrides:
getStyleVal(String,String) in FxFont.
public static Font matchFaceToFont(String face);
This method is used in the getAttributeList and getFont methods, and matches the given face to the current font object.
Return Value:
Returns a font object that best matches the given face.
Parameter | Description |
face
| A font's face name.
|