Package com._1c.g5.v8.dt.moxel.ui.editor
Interface IFontDimensionsCache
-
- All Known Implementing Classes:
FontDimensionsCache
public interface IFontDimensionsCache
Cache of font characteristics interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clearCache()
Clear cacheInteger
getFontHeightFromCache(Font font)
Get average symbol width of specified font from cacheInteger
getFontWidthFromCache(Font font)
Get average symbol width of specified font from cachevoid
putFontHeightToCache(Font font, Integer width)
Put specified font height to cachevoid
putFontWidthToCache(Font font, Integer width)
Put specified font width to cache
-
-
-
Method Detail
-
putFontHeightToCache
void putFontHeightToCache(Font font, Integer width)
Put specified font height to cache- Parameters:
font
- - fontheight
- - font height
-
putFontWidthToCache
void putFontWidthToCache(Font font, Integer width)
Put specified font width to cache- Parameters:
font
- - fontwidth
- - average symbol width of specified font (in units)
-
getFontHeightFromCache
Integer getFontHeightFromCache(Font font)
Get average symbol width of specified font from cache- Parameters:
font
- - font- Returns:
- average symbol width of specified font (in units) or null if not cached yet
-
getFontWidthFromCache
Integer getFontWidthFromCache(Font font)
Get average symbol width of specified font from cache- Parameters:
font
- - font- Returns:
- average symbol width of specified font (in units) or null if not cached yet
-
clearCache
void clearCache()
Clear cache
-
-