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

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

public class FirstLevelFontCache
extends java.lang.Object
implements FontCache

The first level font cache is always a perfect cache. It holds all fonts used by the current storage in memory. Once finished, the cache-contents are pushed downwards into the second level cache.

Author:
: Thomas Morgner

Constructor Summary
FirstLevelFontCache(FontCache secondLevelCache)
           
 
Method Summary
 void commit()
           
 FontMetrics getFontMetrics(FontKey fontKey)
           
 void putFontMetrics(FontKey key, FontMetrics fontMetrics)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FirstLevelFontCache

public FirstLevelFontCache(FontCache secondLevelCache)
Method Detail

getFontMetrics

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

putFontMetrics

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

commit

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