|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface outlines the methods required by classes wishing to act as Font sources for the ICEBrowser. FontProviders allow for third party sources of java.awt.Font objects to be incorporated into the mainstream Font caching structure of ICEBrowser.
A FontProvider provides simple facilities for:
| Field Summary | |
static String |
JAVA_VM
Symbolic constant for the JavaVM Font provider |
| Method Summary | |
Font |
getFont(String fontFamily,
int fontStyle,
int fontSize)
Retrieve a Font from the FontProvider. |
String[] |
getFontFamilies()
Retrieve an array of Font family names implemented by the FontProvider. |
FontMetrics |
getFontMetrics(Font font)
Retrieve the FontMetrics object for the given Font. |
boolean |
isFamilySupported(String fontFamily)
A less expensive way of determining if a given FontProvider can provide a Font implementation for a given Font family than getting the Font. |
| Field Detail |
public static final String JAVA_VM
| Method Detail |
public Font getFont(String fontFamily, int fontStyle, int fontSize)
fontFamily - the Font family namefontStyle - Enumerated style as in the java.awt.Font style argumentfontSize - size of the Font in points (same as the Java argument)
public String[] getFontFamilies()
public boolean isFamilySupported(String fontFamily)
fontFamily - The name of the Font family
public FontMetrics getFontMetrics(Font font)
font - The font to retrieve the FontMetrics object for
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||