Class DefaultViewToIndexMapper
- java.lang.Object
-
- docking.widgets.indexedscrollpane.DefaultViewToIndexMapper
-
- All Implemented Interfaces:
ViewToIndexMapper
public class DefaultViewToIndexMapper extends java.lang.Object implements ViewToIndexMapper
-
-
Constructor Summary
Constructors Constructor Description DefaultViewToIndexMapper(IndexedScrollable model, int screenHeight)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigInteger
getIndex(int value)
int
getScrollValue(java.math.BigInteger startIndex, java.math.BigInteger endIndex, int startY, int endY)
int
getVerticalOffset(int value)
int
getViewHeight()
void
indexModelDataChanged(java.math.BigInteger start, java.math.BigInteger end)
void
setVisibleViewHeight(int screenHeight)
-
-
-
Constructor Detail
-
DefaultViewToIndexMapper
public DefaultViewToIndexMapper(IndexedScrollable model, int screenHeight)
-
-
Method Detail
-
getIndex
public java.math.BigInteger getIndex(int value)
- Specified by:
getIndex
in interfaceViewToIndexMapper
-
getVerticalOffset
public int getVerticalOffset(int value)
- Specified by:
getVerticalOffset
in interfaceViewToIndexMapper
-
getViewHeight
public int getViewHeight()
- Specified by:
getViewHeight
in interfaceViewToIndexMapper
-
setVisibleViewHeight
public void setVisibleViewHeight(int screenHeight)
- Specified by:
setVisibleViewHeight
in interfaceViewToIndexMapper
-
getScrollValue
public int getScrollValue(java.math.BigInteger startIndex, java.math.BigInteger endIndex, int startY, int endY)
- Specified by:
getScrollValue
in interfaceViewToIndexMapper
-
indexModelDataChanged
public void indexModelDataChanged(java.math.BigInteger start, java.math.BigInteger end)
- Specified by:
indexModelDataChanged
in interfaceViewToIndexMapper
-
-