Package com._1c.g5.v8.dt.moxel.ui.editor
Interface IRowPositionCache
-
- All Known Implementing Classes:
RowPositionCache
public interface IRowPositionCache
Interface for cache of row positions
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clearCache()
Clear cache of rows positionsvoid
clearCacheFromRow(int row)
Clear cache of rows positions after specified rowInteger
floorIndex(int rowIndex)
Get maximal cached row index, less than specifiedInteger
getRowPositionCache(int row)
Get position of specified row from cacheCollection<Integer>
getSortedKeysCollection()
Get sorted collection of cached positionsInteger
highIndex(int rowIndex)
Get minimal cached row index, greater than specifiedvoid
setRowPositionCache(int row, int position)
Put position of specified row to cache
-
-
-
Method Detail
-
setRowPositionCache
void setRowPositionCache(int row, int position)
Put position of specified row to cache- Parameters:
row
- - row indexposition
- - row position (in units)
-
getRowPositionCache
Integer getRowPositionCache(int row)
Get position of specified row from cache- Parameters:
row
- - row index- Returns:
- position of specified row (in units)
-
clearCacheFromRow
void clearCacheFromRow(int row)
Clear cache of rows positions after specified row- Parameters:
row
- - row index
-
clearCache
void clearCache()
Clear cache of rows positions
-
getSortedKeysCollection
Collection<Integer> getSortedKeysCollection()
Get sorted collection of cached positions- Returns:
- sorted collection of cached positions (in units)
-
floorIndex
Integer floorIndex(int rowIndex)
Get maximal cached row index, less than specified- Parameters:
rowIndex
- - row index- Returns:
- maximal cached row index, less than specified or null if no index found
-
highIndex
Integer highIndex(int rowIndex)
Get minimal cached row index, greater than specified- Parameters:
rowIndex
- - row index- Returns:
- minimal cached row index, greater than specified or null if no index found
-
-