|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectFontCache
public class FontCache
Lookup and caches font definitions for faster retrieval
Constructor Summary | |
---|---|
FontCache()
|
Method Summary | |
---|---|
Set<String> |
getAvailableFonts()
Returns the set of font families and font faces available in the system and those manually loaded into the cache |
static FontCache |
getDefaultInsance()
Deprecated. Use getDefaultInstance() instead |
static FontCache |
getDefaultInstance()
Returns the default, system wide font cache |
Font |
getFont(String requestedFont)
|
void |
registerFont(Font f)
Adds the specified font in the font cache. |
void |
resetCache()
Resets the font loading cache. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FontCache()
Method Detail |
---|
public static FontCache getDefaultInsance()
getDefaultInstance()
instead
public static FontCache getDefaultInstance()
public Font getFont(String requestedFont)
public void registerFont(Font f)
f
- public void resetCache()
public Set<String> getAvailableFonts()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |