java.lang.Object | |||
↳ | com.pdftron.pdf.tools.Tool | ||
↳ | com.pdftron.pdf.tools.BaseTool | ||
↳ | com.pdftron.pdf.tools.TextSelect |
Known Direct Subclasses |
This class selects text on pages.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pdftron.pdf.tools.BaseTool
| |||||||||||
From class
com.pdftron.pdf.tools.Tool
|
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pdftron.pdf.tools.Tool
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
TextSelect(PDFViewCtrl ctrl)
Class constructor
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
clearSelection()
Clears selection.
| ||||||||||
void |
editText(String newContent)
Replace selected PDF text with new content
| ||||||||||
void | exitCurrentMode() | ||||||||||
int |
getCreateAnnotType()
Gets what annotation type this tool can create
| ||||||||||
ToolManager.ToolModeBase |
getToolMode()
The overload implementation of
getToolMode() . | ||||||||||
int |
hitTest(float x, float y)
Test if one of the two selection widgets is hit; if
so, return the selection widget id.
| ||||||||||
void |
onClose()
The overload implementation of
onClose() . | ||||||||||
void |
onConfigurationChanged(Configuration newConfig)
The overload implementation of
onConfigurationChanged(Configuration) . | ||||||||||
void |
onCreate()
The overload implementation of
onCreate() . | ||||||||||
void |
onCustomEvent(Object o)
The overload implementation of
onCustomEvent(Object) . | ||||||||||
boolean |
onDown(MotionEvent e)
The overload implementation of
onDown(MotionEvent) . | ||||||||||
void |
onDraw(Canvas canvas, Matrix tfm)
The overload implementation of
onDraw(Canvas, Matrix) . | ||||||||||
boolean |
onKeyUp(int keyCode, KeyEvent event)
The overload implementation of
onKeyUp(int, KeyEvent) . | ||||||||||
void |
onLayout(boolean changed, int l, int t, int r, int b)
The overload implementation of
onLayout(boolean, int, int, int, int) . | ||||||||||
boolean |
onLongPress(MotionEvent e)
The overload implementation of
onLongPress(MotionEvent) . | ||||||||||
boolean |
onMove(MotionEvent e1, MotionEvent e2, float x_dist, float y_dist)
The overload implementation of
onMove(MotionEvent, MotionEvent, float, float) . | ||||||||||
void |
onNightModeUpdated(boolean isNightMode)
The overload implementation of
onNightModeUpdated(boolean) . | ||||||||||
void |
onPageTurning(int old_page, int cur_page)
The overload implementation of
onPageTurning(int, int) . | ||||||||||
boolean |
onQuickMenuClicked(QuickMenuItem menuItem)
The overload implementation of
onQuickMenuClicked(QuickMenuItem) . | ||||||||||
boolean |
onScaleEnd(float x, float y)
The overload implementation of
onScaleEnd(float, float) . | ||||||||||
boolean |
onSingleTapConfirmed(MotionEvent e)
The overload implementation of
onSingleTapConfirmed(MotionEvent) . | ||||||||||
boolean |
onUp(MotionEvent e, PDFViewCtrl.PriorEventMode priorEventMode)
The overload implementation of
onUp(MotionEvent, PDFViewCtrl.PriorEventMode) . | ||||||||||
void |
resetSelection()
Resets selection.
| ||||||||||
boolean |
showMenu(RectF anchor_rect)
Shows the quick menu.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pdftron.pdf.tools.BaseTool
| |||||||||||
From class
com.pdftron.pdf.tools.Tool
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.pdftron.pdf.tools.ToolManager.Tool
|
Clears selection.
Replace selected PDF text with new content
newContent | the new content |
---|
Gets what annotation type this tool can create
The overload implementation of getToolMode()
.
Test if one of the two selection widgets is hit; if so, return the selection widget id. during the onMove() gesture afterwards, we can select properly.
x | The x coordinate |
---|---|
y | The y coordinate |
The overload implementation of onConfigurationChanged(Configuration)
.
The overload implementation of onDraw(Canvas, Matrix)
.
The overload implementation of onKeyUp(int, KeyEvent)
.
The overload implementation of onLayout(boolean, int, int, int, int)
.
The overload implementation of onMove(MotionEvent, MotionEvent, float, float)
.
The overload implementation of onNightModeUpdated(boolean)
.
The overload implementation of onPageTurning(int, int)
.
The overload implementation of onQuickMenuClicked(QuickMenuItem)
.
menuItem | The clicked menu item. |
---|
The overload implementation of onScaleEnd(float, float)
.
The overload implementation of onSingleTapConfirmed(MotionEvent)
.
The overload implementation of onUp(MotionEvent, PDFViewCtrl.PriorEventMode)
.
Resets selection.
Shows the quick menu.