Class RowHeightCache

    • Constructor Detail

      • RowHeightCache

        public RowHeightCache()
    • Method Detail

      • putRowHeight

        public void putRowHeight​(int row,
                                 int heightUnit)
        Description copied from interface: IRowHeightCache
        Put row height to cache
        Specified by:
        putRowHeight in interface IRowHeightCache
        Parameters:
        row - - row index
        heightUnit - - row height (in units)
      • getRowHeight

        public Integer getRowHeight​(int row)
        Description copied from interface: IRowHeightCache
        Get row height from cache
        Specified by:
        getRowHeight in interface IRowHeightCache
        Parameters:
        row - - row index
        Returns:
        row height (in units) or null if not cached yet
      • clearCacheFromRow

        public void clearCacheFromRow​(int row)
        Description copied from interface: IRowHeightCache
        Clear cache of rows positions after specified row
        Specified by:
        clearCacheFromRow in interface IRowHeightCache
        Parameters:
        row - - row index
      • unsetRowHeight

        public void unsetRowHeight​(int row)
        Description copied from interface: IRowHeightCache
        Clear height of specified row
        Specified by:
        unsetRowHeight in interface IRowHeightCache
        Parameters:
        row - - row index