|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectice.pilots.html4.FontCache
The FontCache class is intended to provided Font caching throughout the html4 pilot. Ideally, No class in the package will construct their own Font objects, but will use this class to obtain references to Font objects from this class, allowing sharing of Font resources.
| Constructor Summary | |
FontCache()
|
|
| Method Summary | |
void |
clear()
Clear the FontCache |
String |
getDefaultFontFamily()
Retrieve the id of the default font family used in the system This value is the index into the array of Font family names found in the system in startup. |
Font |
getTestedFont(char[] text,
int start,
int limit,
CSSAttribs css)
Retrieve a font which has been tested and verified to display a given passage of text correctly. |
Font |
getTestedFont(String text,
CSSAttribs css)
This method performs the same logic as above, but for objects who already have access to Strings. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FontCache()
| Method Detail |
public Font getTestedFont(char[] text,
int start,
int limit,
CSSAttribs css)
text - The chars to displaystart - The starting character to testlimit - The number of characters to testcss - The CSSAttribs object defining the font characteristics
public Font getTestedFont(String text,
CSSAttribs css)
text - The chars to displaycss - A CSSAttribs object containing hints of the first font to try
public String getDefaultFontFamily()
public void clear()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||