public class

AnnotEditLine

extends AnnotEdit
java.lang.Object
   ↳ com.pdftron.pdf.tools.Tool
     ↳ com.pdftron.pdf.tools.BaseTool
       ↳ com.pdftron.pdf.tools.AnnotEdit
         ↳ com.pdftron.pdf.tools.AnnotEditLine

Class Overview

This class is responsible for editing a selected line or arrow, e.g., moving and resizing.

Summary

[Expand]
Inherited Constants
From class com.pdftron.pdf.tools.AnnotEdit
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
AnnotEditLine(PDFViewCtrl ctrl)
Class constructor
Public Methods
int getEffectCtrlPointId(float x, float y)
Returns which effective control point is closest to the specified coordinate.
ToolManager.ToolModeBase getToolMode()
The overload implementation of getToolMode().
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 onDown(MotionEvent).
boolean onMove(MotionEvent e1, MotionEvent e2, float x_dist, float y_dist)
The overload implementation of onMove(MotionEvent, MotionEvent, float, float).
boolean onUp(MotionEvent e, PDFViewCtrl.PriorEventMode priorEventMode)
The overload implementation of onUp(MotionEvent, PDFViewCtrl.PriorEventMode).
[Expand]
Inherited Methods
From class com.pdftron.pdf.tools.AnnotEdit
From class com.pdftron.pdf.tools.BaseTool
From class com.pdftron.pdf.tools.Tool
From class java.lang.Object
From interface android.text.TextWatcher
From interface com.pdftron.pdf.model.AnnotStyle.OnAnnotStyleChangeListener
From interface com.pdftron.pdf.tools.DialogAnnotNote.DialogAnnotNoteListener
From interface com.pdftron.pdf.tools.ToolManager.Tool
From interface com.pdftron.pdf.utils.InlineEditText.InlineEditTextListener

Public Constructors

public AnnotEditLine (PDFViewCtrl ctrl)

Class constructor

Public Methods

public int getEffectCtrlPointId (float x, float y)

Returns which effective control point is closest to the specified coordinate.

Parameters
x The x coordinate
y The y coordinate
Returns
  • The effective control point which can be one of this -1 : unspecified 0 : the first point, 1 : the second point, 2 : moving mode

public ToolManager.ToolModeBase getToolMode ()

The overload implementation of getToolMode().

Returns
  • the mode/identifier of this tool.

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 onDown(MotionEvent).

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

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

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

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