public class

Signature

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

Class Overview

This class is for creating signature annotation.

Summary

[Expand]
Inherited Constants
From class com.pdftron.pdf.tools.Tool
Fields
public static String SIGNATURE_ANNOTATION_ID Custom identifier added to the signature stamp added with this tool.
[Expand]
Inherited Fields
From class com.pdftron.pdf.tools.Tool
Public Constructors
Signature(PDFViewCtrl ctrl)
Class constructor
Public Methods
void create(String filepath, Annot widget)
int getCreateAnnotType()
Gets what annotation type this tool can create
ToolManager.ToolModeBase getToolMode()
The overload implementation of getToolMode().
boolean onQuickMenuClicked(QuickMenuItem menuItem)
The overload implementation of onQuickMenuClicked(QuickMenuItem).
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 setTargetPoint(PointF pagePoint, int page)
void setTargetPoint(PointF point)
Sets the target point.
[Expand]
Inherited Methods
From class com.pdftron.pdf.tools.Tool
From class java.lang.Object
From interface com.pdftron.pdf.tools.ToolManager.Tool

Fields

public static String SIGNATURE_ANNOTATION_ID

Custom identifier added to the signature stamp added with this tool.

Public Constructors

public Signature (PDFViewCtrl ctrl)

Class constructor

Public Methods

public void create (String filepath, Annot widget)

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 boolean onQuickMenuClicked (QuickMenuItem menuItem)

The overload implementation of onQuickMenuClicked(QuickMenuItem).

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

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 setTargetPoint (PointF pagePoint, int page)

public void setTargetPoint (PointF point)

Sets the target point.

Parameters
point The target point