-
public interface ScrollHandleAn interface representing a scroll handle in a PDF previewer.
-
-
Method Summary
Modifier and Type Method Description abstract UnitsetScroll(Float position)Used to move the handle, called internally by PDFView. abstract UnitsetupLayout(PDFView pdfView)Method called by PDFView after setting the scroll handle. abstract UnitdestroyLayout()Method called by PDFView when the handle should be removed from layout. abstract UnitsetPageNum(Integer pageNum)Set the page number displayed on the handle. abstract Unitshow()Show the handle. abstract Unithide()Hide the handle immediately. abstract UnithideDelayed()Hide the handle after some time (defined by the implementation). abstract BooleangetShown()Get handle visibility. -
-
Method Detail
-
setScroll
abstract Unit setScroll(Float position)
Used to move the handle, called internally by PDFView.
- Parameters:
position- Current scroll ratio between 0 and 1.
-
setupLayout
abstract Unit setupLayout(PDFView pdfView)
Method called by PDFView after setting the scroll handle. Do not call this method manually. For usage sample see DefaultScrollHandle.
- Parameters:
pdfView- The PDFView instance.
-
destroyLayout
abstract Unit destroyLayout()
Method called by PDFView when the handle should be removed from layout. Do not call this method manually.
-
setPageNum
abstract Unit setPageNum(Integer pageNum)
Set the page number displayed on the handle.
- Parameters:
pageNum- The page number.
-
hideDelayed
abstract Unit hideDelayed()
Hide the handle after some time (defined by the implementation).
-
-
-
-