org.geotools.renderer.style
Class FontCache

java.lang.Object
  extended by org.geotools.renderer.style.FontCache

public class FontCache
extends java.lang.Object

Lookup and caches font definitions for faster retrieval

Author:
Andrea Aime - TOPP

Constructor Summary
FontCache()
           
 
Method Summary
static FontCache getDefaultInsance()
          Deprecated. Use getDefaultInstance() instead
static FontCache getDefaultInstance()
          Returns the default, system wide font cache
 java.awt.Font getFont(java.lang.String requestedFont)
           
 void registerFont(java.awt.Font f)
          Adds the specified font in the font cache.
 void resetCache()
          Resets the font loading cache.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FontCache

public FontCache()
Method Detail

getDefaultInsance

public static FontCache getDefaultInsance()
Deprecated. Use getDefaultInstance() instead

Returns the default, system wide font cache


getDefaultInstance

public static FontCache getDefaultInstance()
Returns the default, system wide font cache

Since:
2.6

getFont

public java.awt.Font getFont(java.lang.String requestedFont)

registerFont

public void registerFont(java.awt.Font f)
Adds the specified font in the font cache. Useful if you want to load fonts that are not installed in the Operating System and cannot provide a full path to fonts either.

Parameters:
f -

resetCache

public void resetCache()
Resets the font loading cache. If any font was manually registered, it will have to be registered again



Copyright © 1996-2010 Geotools. All Rights Reserved.