Interface IFontDimensionsCache

  • All Known Implementing Classes:
    FontDimensionsCache

    public interface IFontDimensionsCache
    Cache of font characteristics interface
    • Method Detail

      • putFontHeightToCache

        void putFontHeightToCache​(Font font,
                                  Integer width)
        Put specified font height to cache
        Parameters:
        font - - font
        height - - font height
      • putFontWidthToCache

        void putFontWidthToCache​(Font font,
                                 Integer width)
        Put specified font width to cache
        Parameters:
        font - - font
        width - - 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