org.pentaho.reporting.libraries.fonts.cache
Class LeastFrequentlyUsedCache

java.lang.Object
  extended by org.pentaho.reporting.libraries.fonts.cache.LeastFrequentlyUsedCache
All Implemented Interfaces:
FontCache

public class LeastFrequentlyUsedCache
extends java.lang.Object
implements FontCache

Todo: Document Me

Author:
Thomas Morgner

Constructor Summary
LeastFrequentlyUsedCache(int cacheSize)
           
 
Method Summary
 void commit()
           
 FontMetrics getFontMetrics(FontKey fontKey)
           
 void putFontMetrics(FontKey key, FontMetrics metrics)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LeastFrequentlyUsedCache

public LeastFrequentlyUsedCache(int cacheSize)
Method Detail

getFontMetrics

public FontMetrics getFontMetrics(FontKey fontKey)
Specified by:
getFontMetrics in interface FontCache

putFontMetrics

public void putFontMetrics(FontKey key,
                           FontMetrics metrics)
Specified by:
putFontMetrics in interface FontCache

commit

public void commit()
Specified by:
commit in interface FontCache