java.lang.Object | ||
↳ | PagerAdapter | |
↳ | com.pdftron.pdf.controls.ReflowPagerAdapter |
pager adapter for reflow
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
interface | ReflowPagerAdapter.ReflowPagerAdapterCallback | Callback interfaces for tap |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
public static final int | TH_MAX_SCAlE | ||||||||||
public static final int | TH_MIN_SCAlE |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ReflowPagerAdapter(ViewPager viewPager, Context context, PDFDoc doc)
Class constructor
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void | RequestHandlerProc(RequestHandler.JobRequestResult result, String outFilename, Object customData) | ||||||||||
void |
cleanup()
Cleans up resources.
| ||||||||||
void | destroyItem(ViewGroup container, int position, Object object) | ||||||||||
void |
enableTurnPageOnTap(boolean enabled)
Enables turn page on tap.
| ||||||||||
int | getCount() | ||||||||||
int | getCurrentPage() | ||||||||||
int | getTextSizeInPercent() | ||||||||||
Object | instantiateItem(ViewGroup container, int position) | ||||||||||
boolean | isInternalLinkClicked() | ||||||||||
boolean | isRightToLeftDirection() | ||||||||||
boolean | isViewFromObject(View view, Object object) | ||||||||||
void |
onPageBottom(WebView webView)
Called when the bottom of this WebView is reached.
| ||||||||||
void |
onPageTop(WebView webView)
Called when the top of this WebView is reached.
| ||||||||||
void |
onPagesModified()
Should be called when pages of the document have been edited
| ||||||||||
void |
onReflowWebViewLongPress(WebView webView, MotionEvent event)
Called when a long press event occurs.
| ||||||||||
boolean |
onReflowWebViewScale(WebView webView, ScaleGestureDetector detector)
Called when user scales.
| ||||||||||
boolean |
onReflowWebViewScaleBegin(WebView webView, ScaleGestureDetector detector)
Called when a scale gesture begins.
| ||||||||||
void |
onReflowWebViewScaleEnd(WebView webView, ScaleGestureDetector detector)
Called when a scale gesture ends.
| ||||||||||
void |
onReflowWebViewSingleTapUp(WebView webView, MotionEvent event)
Called when a tap occurs with the up event.
| ||||||||||
void |
resetInternalLinkClicked()
When
isInternalLinkClicked() is called, this should be called to reset that
an internal link has been clicked. | ||||||||||
void | setCurrentPage(int pageNum) | ||||||||||
void |
setCustomColorMode(int backgroundColorMode)
Sets custom color.
| ||||||||||
void |
setDayMode()
Sets colors in the day mode (default).
| ||||||||||
static void | setDebug(boolean debug) | ||||||||||
void |
setImageInReflowEnabled(boolean imageInReflowEnabled)
Sets whether to show images in reflow mode, default to true.
| ||||||||||
void |
setListener(ReflowPagerAdapter.ReflowPagerAdapterCallback listener)
Sets the listener to ReflowPagerAdapterCallback
| ||||||||||
void |
setNightMode()
Sets colors in the night mode.
| ||||||||||
void |
setRightToLeftDirection(boolean isRtlMode)
Sets the right-to-left direction of the document.
| ||||||||||
void |
setTextSizeInPercent(int textSize)
Sets the text size using percentage.
| ||||||||||
void | setTextZoom() | ||||||||||
void | startUpdate(ViewGroup container) | ||||||||||
void |
zoomIn()
Zooms in.
| ||||||||||
void |
zoomOut()
Zooms out.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Class constructor
viewPager | The view pager |
---|---|
context | The context |
doc | The PDF doc |
Cleans up resources.
Enables turn page on tap.
enabled | True if enabled |
---|
Called when the bottom of this WebView is reached.
Called when the top of this WebView is reached.
Should be called when pages of the document have been edited
Called when a long press event occurs.
event | The MotionEvent |
---|
Called when user scales.
detector | The ScaleGestureDetector |
---|
Called when a scale gesture begins.
detector | The ScaleGestureDetector |
---|
Called when a scale gesture ends.
detector | The ScaleGestureDetector |
---|
Called when a tap occurs with the up event.
event | The MotionEvent |
---|
When isInternalLinkClicked()
is called, this should be called to reset that
an internal link has been clicked.
Sets custom color.
Sets colors in the day mode (default).
Sets whether to show images in reflow mode, default to true.
Sets the listener to ReflowPagerAdapterCallback
listener | The listener |
---|
Sets colors in the night mode.
Sets the right-to-left direction of the document. Used for supporting right-to-left languages.
isRtlMode | True if right-to-left mode is enabled |
---|
Sets the text size using percentage.
textSize | The text size using percentage |
---|
Zooms in.
Zooms out.