Class FirstLevelFontCache
- java.lang.Object
-
- org.pentaho.reporting.libraries.fonts.cache.FirstLevelFontCache
-
- All Implemented Interfaces:
FontCache
public class FirstLevelFontCache extends 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
Constructors Constructor Description FirstLevelFontCache(FontCache secondLevelCache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
commit()
FontMetrics
getFontMetrics(FontKey fontKey)
void
putFontMetrics(FontKey key, FontMetrics fontMetrics)
-
-
-
Constructor Detail
-
FirstLevelFontCache
public FirstLevelFontCache(FontCache secondLevelCache)
-
-
Method Detail
-
getFontMetrics
public FontMetrics getFontMetrics(FontKey fontKey)
- Specified by:
getFontMetrics
in interfaceFontCache
-
putFontMetrics
public void putFontMetrics(FontKey key, FontMetrics fontMetrics)
- Specified by:
putFontMetrics
in interfaceFontCache
-
-