java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.RelativeLayout
         ↳ com.pdftron.pdf.widget.seekbar.DocumentSlider

Summary

Nested Classes
interface DocumentSlider.OnDocumentSliderTrackingListener Callback interface to be invoked when a tracking touch event occurs. 
[Expand]
Inherited Constants
From class android.widget.RelativeLayout
From class android.view.ViewGroup
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
DocumentSlider(Context context)
Class constructor
DocumentSlider(Context context, AttributeSet attrs)
Class constructor
DocumentSlider(Context context, AttributeSet attrs, int defStyleAttr)
Class constructor
DocumentSlider(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
Class constructor
Public Methods
void clearResources()
This method will free any bitmaps and other resources that are used internally by the control.
void dismiss(boolean isAnimate)
void dismiss()
void handleDocumentLoaded()
Handles when the document is loaded.
boolean isProgressChanging()
boolean isReversed()
boolean isVertical()
void onCanvasSizeChanged()
current canvas size is changed
void onConversionEvent(PDFViewCtrl.ConversionState state, int totalPagesConverted)
Called when an update is available.
void onDocumentLoaded()
The overload implementation of onDocumentLoaded().
void onPageChange(int old_page, int cur_page, PDFViewCtrl.PageChangeState state)
Called in UI thread when the current page changes.
void refreshPageCount(boolean tryLock)
Refreshes the page count
void refreshPageCount()
Refreshes the page count
void setOnDocumentSliderTrackingListener(DocumentSlider.OnDocumentSliderTrackingListener listener)
Sets the seek bar listener.
void setPdfViewCtrl(PDFViewCtrl pdfViewCtrl)
Sets the PDFViewCtrl.
void setProgress(int progress)
void setReflowMode(boolean reflowMode)
void setReversed(boolean isReversed)
Reverses the seek bar.
void show()
void show(boolean isAnimate)
void updateProgress()
[Expand]
Inherited Methods
From class android.widget.RelativeLayout
From class android.view.ViewGroup
From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.ViewManager
From interface android.view.ViewParent
From interface android.view.accessibility.AccessibilityEventSource
From interface com.pdftron.pdf.PDFViewCtrl.DocumentLoadListener
From interface com.pdftron.pdf.PDFViewCtrl.OnCanvasSizeChangeListener
From interface com.pdftron.pdf.PDFViewCtrl.PageChangeListener
From interface com.pdftron.pdf.PDFViewCtrl.UniversalDocumentConversionListener

Public Constructors

public DocumentSlider (Context context)

Class constructor

public DocumentSlider (Context context, AttributeSet attrs)

Class constructor

public DocumentSlider (Context context, AttributeSet attrs, int defStyleAttr)

Class constructor

public DocumentSlider (Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)

Class constructor

Public Methods

public void clearResources ()

This method will free any bitmaps and other resources that are used internally by the control. Only call this method when the control is not going to be used anymore (e.g., on the onDestroy() of your Activity).

public void dismiss (boolean isAnimate)

public void dismiss ()

public void handleDocumentLoaded ()

Handles when the document is loaded.

public boolean isProgressChanging ()

Returns
  • True if progress is changing

public boolean isReversed ()

Returns
  • True if the seek bar is reversed

public boolean isVertical ()

public void onCanvasSizeChanged ()

current canvas size is changed

public void onConversionEvent (PDFViewCtrl.ConversionState state, int totalPagesConverted)

Called when an update is available.

Note that the DocumentConversion passed in as a parameter might be ahead of the PDFViewCtrl in terms of how many pages are converted. This event reports how many pages the PDFViewCtrl is currently aware of.

Parameters
state - the state of update.
totalPagesConverted The total number of pages converted so far. Only relevant for the @link #CONVERSION_PROGRESS type. Note that pages can be processed in batches, and so the number might not always increase by just 1.

public void onDocumentLoaded ()

The overload implementation of onDocumentLoaded().

public void onPageChange (int old_page, int cur_page, PDFViewCtrl.PageChangeState state)

Called in UI thread when the current page changes.

Note: If state is BEGIN or END, values of old_page and cur_page are the same, which is the current page number. In continuous page presentation mode, state parameter is always END.

Parameters
old_page the old page number
cur_page the current (new) page number
state in non-continuous page presentation modes and when the built-in page sliding is in process, this flag is used to indicate the state of page change.

public void refreshPageCount (boolean tryLock)

Refreshes the page count

public void refreshPageCount ()

Refreshes the page count

public void setOnDocumentSliderTrackingListener (DocumentSlider.OnDocumentSliderTrackingListener listener)

Sets the seek bar listener.

Parameters
listener The listener

public void setPdfViewCtrl (PDFViewCtrl pdfViewCtrl)

Sets the PDFViewCtrl.

Parameters
pdfViewCtrl The PDFViewCtrl

public void setProgress (int progress)

public void setReflowMode (boolean reflowMode)

public void setReversed (boolean isReversed)

Reverses the seek bar.

Parameters
isReversed True if the seek bar should be reversed

public void show ()

public void show (boolean isAnimate)

public void updateProgress ()