Class UniformViewToIndexMapper
- java.lang.Object
-
- docking.widgets.indexedscrollpane.UniformViewToIndexMapper
-
- All Implemented Interfaces:
ViewToIndexMapper
public class UniformViewToIndexMapper extends java.lang.Object implements ViewToIndexMapper
-
-
Constructor Summary
Constructors Constructor Description UniformViewToIndexMapper(IndexedScrollable scrollable)
-
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 height)
-
-
-
Constructor Detail
-
UniformViewToIndexMapper
public UniformViewToIndexMapper(IndexedScrollable scrollable)
-
-
Method Detail
-
getViewHeight
public int getViewHeight()
- Specified by:
getViewHeight
in interfaceViewToIndexMapper
-
getIndex
public java.math.BigInteger getIndex(int value)
- Specified by:
getIndex
in interfaceViewToIndexMapper
-
getVerticalOffset
public int getVerticalOffset(int value)
- Specified by:
getVerticalOffset
in interfaceViewToIndexMapper
-
setVisibleViewHeight
public void setVisibleViewHeight(int height)
- 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
-
-