org.pentaho.reporting.libraries.fonts.cache
Class FirstLevelFontCache
java.lang.Object
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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FirstLevelFontCache
public FirstLevelFontCache(FontCache secondLevelCache)
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