org.pentaho.reporting.libraries.fonts.cache

Class FirstLevelFontCache

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
FirstLevelFontCache(FontCache secondLevelCache)
Method Summary
voidcommit()
FontMetricsgetFontMetrics(FontKey fontKey)
voidputFontMetrics(FontKey key, FontMetrics fontMetrics)

Constructor Detail

FirstLevelFontCache

public FirstLevelFontCache(FontCache secondLevelCache)

Method Detail

commit

public void commit()

getFontMetrics

public FontMetrics getFontMetrics(FontKey fontKey)

putFontMetrics

public void putFontMetrics(FontKey key, FontMetrics fontMetrics)