|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectice.pilots.html4.JavaFontProvider
This class implements the FontProvider interface for the Java runtime. This allows the FontCache to treat all Font sources as instances of FontProvider, and allows a great deal of clean up of that code.
| Field Summary | |
protected String[] |
allFamilies
|
protected Hashtable |
familyHash
|
protected String[] |
genericToJava
|
| Fields inherited from interface ice.pilots.html4.FontProvider |
JAVA_VM |
| Constructor Summary | |
JavaFontProvider()
Constructor for the JavaFontProvider instance. |
|
| Method Summary | |
Font |
getFont(String fontFamily,
int fontStyle,
int fontSize)
Load a Font instance. |
String[] |
getFontFamilies()
Retrieve an array of all Font families available from this FontProvider. |
FontMetrics |
getFontMetrics(Font font)
Retrieve the FontMetrics object for the given Font. |
protected void |
init()
Initialize the Font provider. |
protected void |
initJava1Fonts()
Initialize the Fonts using the Java 118 method |
protected boolean |
initJava2Fonts()
Try to init the Font system using Version >= 1.2 methods |
boolean |
isFamilySupported(String fontFamily)
Determine if this Font provider supports a given font family. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected String[] genericToJava
protected String[] allFamilies
protected Hashtable familyHash
| Constructor Detail |
public JavaFontProvider()
| Method Detail |
public boolean isFamilySupported(String fontFamily)
isFamilySupported in interface FontProviderfontFamily - The font family name
public String[] getFontFamilies()
getFontFamilies in interface FontProvider
public Font getFont(String fontFamily,
int fontStyle,
int fontSize)
getFont in interface FontProviderfontFamily - The Font familyfontStyle - The Font style, equivalent to the awt.Font enumerationfontSize - The size of the Font in points.
protected void init()
protected void initJava1Fonts()
protected boolean initJava2Fonts()
public FontMetrics getFontMetrics(Font font)
FontProvider
getFontMetrics in interface FontProviderfont -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||