public class

AnnotEditTextMarkup

extends TextSelect
implements DialogAnnotNote.DialogAnnotNoteListener
java.lang.Object
   ↳ com.pdftron.pdf.tools.Tool
     ↳ com.pdftron.pdf.tools.BaseTool
       ↳ com.pdftron.pdf.tools.TextSelect
         ↳ com.pdftron.pdf.tools.AnnotEditTextMarkup

Class Overview

This class is responsible for editing text markup: highlight/strikeout/underline, e.g., moving and resizing.

Summary

[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
AnnotEditTextMarkup(PDFViewCtrl ctrl)
Class constructor
Public Methods
String getHighlightedText(int pageNum)
Returns the highlighted text.
ToolManager.ToolModeBase getToolMode()
The overload implementation of getToolMode().
boolean hasAnnotSelected()
boolean isEditAnnotTool()
The overload implementation of isEditAnnotTool()
void onAnnotButtonPressed(int button)
The overload implementation of onAnnotButtonPressed(int).
void onClose()
The overload implementation of onClose().
void onConfigurationChanged(Configuration newConfig)
The overload implementation of onConfigurationChanged(Configuration).
void onCreate()
The overload implementation of onCreate().
boolean onDown(MotionEvent e)
The overload implementation of onDown(MotionEvent).
void onDraw(Canvas canvas, Matrix tfm)
The overload implementation of onDraw(Canvas, Matrix).
boolean onFlingStop()
The overload implementation of onFlingStop().
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 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).
void onScrollChanged(int l, int t, int oldl, int oldt)
The overload implementation of onScrollChanged(int, int, int, int).
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 selectAnnot(Annot annot, int pageNum)
The overload implementation of selectAnnot(Annot, int).
boolean showMenu(RectF anchor_rect)
Shows the quick menu.
[Expand]
Inherited Methods
From class com.pdftron.pdf.tools.TextSelect
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.DialogAnnotNote.DialogAnnotNoteListener
From interface com.pdftron.pdf.tools.ToolManager.Tool

Public Constructors

public AnnotEditTextMarkup (PDFViewCtrl ctrl)

Class constructor

Public Methods

public String getHighlightedText (int pageNum)

Returns the highlighted text.

Parameters
pageNum The page number where the highlighted text is on
Returns
  • The highlighted text

public ToolManager.ToolModeBase getToolMode ()

The overload implementation of getToolMode().

Returns
  • the mode/identifier of this tool.

public boolean hasAnnotSelected ()

public boolean isEditAnnotTool ()

The overload implementation of isEditAnnotTool()

Returns
  • true

public void onAnnotButtonPressed (int button)

The overload implementation of onAnnotButtonPressed(int).

Parameters
button The button ID. See android.content.DialogInterface

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 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 onFlingStop ()

The overload implementation of onFlingStop().

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 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 void onScrollChanged (int l, int t, int oldl, int oldt)

The overload implementation of onScrollChanged(int, int, int, int).

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 selectAnnot (Annot annot, int pageNum)

The overload implementation of selectAnnot(Annot, int).

Parameters
annot The annotaion
pageNum The page number where the annotaion is on

public boolean showMenu (RectF anchor_rect)

Shows the quick menu.