public class

TextSelect

extends BaseTool
java.lang.Object
   ↳ com.pdftron.pdf.tools.Tool
     ↳ com.pdftron.pdf.tools.BaseTool
       ↳ com.pdftron.pdf.tools.TextSelect
Known Direct Subclasses

Class Overview

This class selects text on pages.

Summary

[Expand]
Inherited Constants
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.
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

Public Constructors

public TextSelect (PDFViewCtrl ctrl)

Class constructor

Public Methods

public void clearSelection ()

Clears selection.

public int getCreateAnnotType ()

Gets what annotation type this tool can create

Returns
  • annot type for annotation creation tool, or unknown for non-creation tool.

public ToolManager.ToolModeBase getToolMode ()

The overload implementation of getToolMode().

Returns
  • the mode/identifier of this tool.

public int hitTest (float x, float y)

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.

Parameters
x The x coordinate
y The y coordinate
Returns
  • The selected widget ID

public void onClose ()

The overload implementation of onClose().

public void onConfigurationChanged (Configuration newConfig)

The overload implementation of onConfigurationChanged(Configuration).

public void onCreate ()

The overload implementation of onCreate().

public void onCustomEvent (Object o)

The overload implementation of onCustomEvent(Object).

public boolean onDown (MotionEvent e)

The overload implementation of onDown(MotionEvent).

public void onDraw (Canvas canvas, Matrix tfm)

The overload implementation of onDraw(Canvas, Matrix).

public boolean onKeyUp (int keyCode, KeyEvent event)

The overload implementation of onKeyUp(int, KeyEvent).

public void onLayout (boolean changed, int l, int t, int r, int b)

The overload implementation of onLayout(boolean, int, int, int, int).

public boolean onLongPress (MotionEvent e)

The overload implementation of onLongPress(MotionEvent).

public boolean onMove (MotionEvent e1, MotionEvent e2, float x_dist, float y_dist)

The overload implementation of onMove(MotionEvent, MotionEvent, float, float).

public void onNightModeUpdated (boolean isNightMode)

The overload implementation of onNightModeUpdated(boolean).

public void onPageTurning (int old_page, int cur_page)

The overload implementation of onPageTurning(int, int).

public boolean onQuickMenuClicked (QuickMenuItem menuItem)

The overload implementation of onQuickMenuClicked(QuickMenuItem).

Parameters
menuItem The clicked menu item.
Returns
  • True if handled

public boolean onScaleEnd (float x, float y)

The overload implementation of onScaleEnd(float, float).

public boolean onSingleTapConfirmed (MotionEvent e)

The overload implementation of onSingleTapConfirmed(MotionEvent).

public boolean onUp (MotionEvent e, PDFViewCtrl.PriorEventMode priorEventMode)

The overload implementation of onUp(MotionEvent, PDFViewCtrl.PriorEventMode).

public void resetSelection ()

Resets selection.

public boolean showMenu (RectF anchor_rect)

Shows the quick menu.