Package org.exbin.bined.basic
Class BasicCodeAreaScrolling
- java.lang.Object
-
- org.exbin.bined.basic.BasicCodeAreaScrolling
-
@ParametersAreNonnullByDefault public class BasicCodeAreaScrolling extends java.lang.Object
Code area scrolling.
-
-
Constructor Summary
Constructors Constructor Description BasicCodeAreaScrolling()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearLastVerticalScrollingValue()
java.util.Optional<CodeAreaScrollPosition>
computeCenterOnScrollPosition(long rowPosition, int charPosition, int bytesPerRow, int rowsPerRect, int charactersPerRect, int dataViewWidth, int dataViewHeight, int characterWidth, int rowHeight)
PositionScrollVisibility
computePositionScrollVisibility(long rowPosition, int charPosition, int bytesPerRow, int rowsPerPage, int charsPerPage, int charOffset, int rowOffset, int characterWidth, int rowHeight)
java.util.Optional<CodeAreaScrollPosition>
computeRevealScrollPosition(long rowPosition, int charsPosition, int bytesPerRow, int rowsPerPage, int charsPerPage, int charOffset, int rowOffset, int characterWidth, int rowHeight)
CodeAreaScrollPosition
computeScrolling(CodeAreaScrollPosition startPosition, ScrollingDirection direction, int rowsPerPage, long rowsPerDocument)
ScrollViewDimension
computeViewDimension(int dataViewWidth, int dataViewHeight, BasicCodeAreaLayout layout, BasicCodeAreaStructure structure, int characterWidth, int rowHeight)
int
getHorizontalExtentDifference()
ScrollBarVisibility
getHorizontalScrollBarVisibility()
HorizontalScrollUnit
getHorizontalScrollUnit()
int
getHorizontalScrollValue(int characterWidth)
int
getHorizontalScrollX(int characterWidth)
int
getLastVerticalScrollingValue()
CodeAreaScrollPosition
getMaximumScrollPosition()
ScrollBarVerticalScale
getScrollBarVerticalScale()
CodeAreaScrollPosition
getScrollPosition()
int
getVerticalExtentDifference()
ScrollBarVisibility
getVerticalScrollBarVisibility()
VerticalScrollUnit
getVerticalScrollUnit()
int
getVerticalScrollValue(int rowHeight, long rowsPerDocument)
void
performScrolling(ScrollingDirection direction, int rowsPerPage, long rowsPerDocument)
void
setHorizontalExtentChangeListener(java.lang.Runnable horizontalExtentChangeListener)
void
setLastVerticalScrollingValue(int value)
void
setScrollBarVerticalScale(ScrollBarVerticalScale scrollBarVerticalScale)
void
setScrollPosition(CodeAreaScrollPosition scrollPosition)
void
setVerticalExtentChangeListener(java.lang.Runnable verticalExtentChangeListener)
void
updateCache(DataProvider codeArea, int horizontalScrollBarHeight, int verticalScrollBarWidth)
void
updateHorizontalScrollBarValue(int scrollBarValue, int characterWidth)
void
updateMaximumScrollPosition(long rowsPerDocument, int rowsPerPage, int charactersPerRow, int charactersPerPage, int lastCharOffset, int lastRowOffset)
void
updateVerticalScrollBarValue(int scrollBarValue, int rowHeight, int maxValue, long rowsPerDocumentToLastPage)
-
-
-
Method Detail
-
updateCache
public void updateCache(DataProvider codeArea, int horizontalScrollBarHeight, int verticalScrollBarWidth)
-
computeViewDimension
@Nonnull public ScrollViewDimension computeViewDimension(int dataViewWidth, int dataViewHeight, BasicCodeAreaLayout layout, BasicCodeAreaStructure structure, int characterWidth, int rowHeight)
-
updateHorizontalScrollBarValue
public void updateHorizontalScrollBarValue(int scrollBarValue, int characterWidth)
-
updateVerticalScrollBarValue
public void updateVerticalScrollBarValue(int scrollBarValue, int rowHeight, int maxValue, long rowsPerDocumentToLastPage)
-
getVerticalScrollValue
public int getVerticalScrollValue(int rowHeight, long rowsPerDocument)
-
getHorizontalScrollValue
public int getHorizontalScrollValue(int characterWidth)
-
setVerticalExtentChangeListener
public void setVerticalExtentChangeListener(java.lang.Runnable verticalExtentChangeListener)
-
setHorizontalExtentChangeListener
public void setHorizontalExtentChangeListener(java.lang.Runnable horizontalExtentChangeListener)
-
computeScrolling
@Nonnull public CodeAreaScrollPosition computeScrolling(CodeAreaScrollPosition startPosition, ScrollingDirection direction, int rowsPerPage, long rowsPerDocument)
-
performScrolling
public void performScrolling(ScrollingDirection direction, int rowsPerPage, long rowsPerDocument)
-
computePositionScrollVisibility
@Nonnull public PositionScrollVisibility computePositionScrollVisibility(long rowPosition, int charPosition, int bytesPerRow, int rowsPerPage, int charsPerPage, int charOffset, int rowOffset, int characterWidth, int rowHeight)
-
computeRevealScrollPosition
@Nonnull public java.util.Optional<CodeAreaScrollPosition> computeRevealScrollPosition(long rowPosition, int charsPosition, int bytesPerRow, int rowsPerPage, int charsPerPage, int charOffset, int rowOffset, int characterWidth, int rowHeight)
-
computeCenterOnScrollPosition
@Nonnull public java.util.Optional<CodeAreaScrollPosition> computeCenterOnScrollPosition(long rowPosition, int charPosition, int bytesPerRow, int rowsPerRect, int charactersPerRect, int dataViewWidth, int dataViewHeight, int characterWidth, int rowHeight)
-
updateMaximumScrollPosition
@Nonnull public void updateMaximumScrollPosition(long rowsPerDocument, int rowsPerPage, int charactersPerRow, int charactersPerPage, int lastCharOffset, int lastRowOffset)
-
getHorizontalScrollX
public int getHorizontalScrollX(int characterWidth)
-
getScrollPosition
@Nonnull public CodeAreaScrollPosition getScrollPosition()
-
setScrollPosition
public void setScrollPosition(CodeAreaScrollPosition scrollPosition)
-
getHorizontalExtentDifference
public int getHorizontalExtentDifference()
-
getVerticalExtentDifference
public int getVerticalExtentDifference()
-
getScrollBarVerticalScale
@Nonnull public ScrollBarVerticalScale getScrollBarVerticalScale()
-
setScrollBarVerticalScale
public void setScrollBarVerticalScale(ScrollBarVerticalScale scrollBarVerticalScale)
-
getVerticalScrollUnit
@Nonnull public VerticalScrollUnit getVerticalScrollUnit()
-
getVerticalScrollBarVisibility
@Nonnull public ScrollBarVisibility getVerticalScrollBarVisibility()
-
getHorizontalScrollUnit
@Nonnull public HorizontalScrollUnit getHorizontalScrollUnit()
-
getHorizontalScrollBarVisibility
@Nonnull public ScrollBarVisibility getHorizontalScrollBarVisibility()
-
getMaximumScrollPosition
@Nonnull public CodeAreaScrollPosition getMaximumScrollPosition()
-
setLastVerticalScrollingValue
public void setLastVerticalScrollingValue(int value)
-
getLastVerticalScrollingValue
public int getLastVerticalScrollingValue()
-
clearLastVerticalScrollingValue
public void clearLastVerticalScrollingValue()
-
-