java.lang.Object | ||
↳ | PagerAdapter | |
↳ | com.pdftron.pdf.controls.ReflowPagerAdapter |
pager adapter for reflow
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
interface | ReflowPagerAdapter.ReflowAppCallback | ||||||||||
class | ReflowPagerAdapter.ReflowAppInterface | ||||||||||
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 |
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() | ||||||||||
boolean |
getImageInReflowEnabled()
Gets value to show images in reflow mode, default to true.
| ||||||||||
boolean |
getIsDoNotReflowTextOverImages()
Gets value to show text over images in reflow mode, default to false.
| ||||||||||
boolean |
getIsHideBackgroundImages()
Gets value to show background images in reflow mode, default to false.
| ||||||||||
boolean |
getIsHideImagesUnderInvisibleText()
Gets value to show images under invisible text in reflow mode, default to false.
| ||||||||||
boolean |
getIsHideImagesUnderText()
Gets value to show images under text in reflow mode, default to false.
| ||||||||||
int | getTextSizeInPercent() | ||||||||||
Object | instantiateItem(ViewGroup container, int position) | ||||||||||
boolean | isEditingEnabled() | ||||||||||
boolean | isInternalLinkClicked() | ||||||||||
boolean | isRightToLeftDirection() | ||||||||||
boolean | isTextSelectionMenuEnabled() | ||||||||||
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 | scrollPageBy(int x, int y) | ||||||||||
void | setAnnotStyleProperties(HashMap<Integer, AnnotStyleProperty> annotStyleProperties) | ||||||||||
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 |
setDoNotReflowTextOverImages(boolean doNotReflowTextOverImages)
Sets whether to show text over images in reflow mode, default to false.
| ||||||||||
void | setEditingEnabled(boolean editingEnabled) | ||||||||||
void |
setHideBackgroundImages(boolean hideBackgroundImages)
Sets whether to show background images in reflow mode, default to false.
| ||||||||||
void |
setHideImagesUnderInvisibleText(boolean hideImagesUnderInvisibleText)
Sets whether to show images under invisible text in reflow mode, default to false.
| ||||||||||
void |
setHideImagesUnderText(boolean hideImagesUnderText)
Sets whether to show images under text in reflow mode, default to false.
| ||||||||||
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 |
setReflowUrlLoadedListener(ReflowControl.ReflowUrlLoadedListener listener)
Sets a ReflowUrlLoadedListener for ReflowPagerAdapterCallback
| ||||||||||
void |
setRightToLeftDirection(boolean isRtlMode)
Sets the right-to-left direction of the document.
| ||||||||||
void | setTextSelectionMenuEnabled(boolean textSelectionMenuEnabled) | ||||||||||
void |
setTextSizeInPercent(int textSize)
Sets the text size using percentage.
| ||||||||||
void | setTextZoom() | ||||||||||
void | setToolManager(ToolManager toolManager) | ||||||||||
void | startUpdate(ViewGroup container) | ||||||||||
void |
zoomIn()
Zooms in.
| ||||||||||
void |
zoomOut()
Zooms out.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.pdftron.pdf.utils.ReflowWebView.ReflowWebViewCallback
|
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 |
---|
Gets value to show images in reflow mode, default to true.
Gets value to show text over images in reflow mode, default to false.
Gets value to show background images in reflow mode, default to false.
Gets value to show images under invisible text in reflow mode, default to false.
Gets value to show images under text in reflow mode, default to false.
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 text over images in reflow mode, default to false.
Sets whether to show background images in reflow mode, default to false.
Sets whether to show images under invisible text in reflow mode, default to false.
Sets whether to show images under text in reflow mode, default to false.
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 a ReflowUrlLoadedListener for ReflowPagerAdapterCallback
listener | The listener |
---|
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.