public abstract class

SimpleShapeCreate

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

Class Overview

This class is the base class for several shape creation classes, e.g., LineCreate, OvalCreate, etc.

Summary

Constants
int sTapToCreateHalfWidth
[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
SimpleShapeCreate(PDFViewCtrl ctrl)
Class constructor
Public Methods
abstract int getCreateAnnotType()
Gets what annotation type this tool can create
abstract ToolManager.ToolModeBase getToolMode()
The overload interface of getToolMode() ()}.
boolean isCreatingAnnotation()
The overload implementation of isCreatingAnnotation().
void onConfigurationChanged(Configuration newConfig)
The overload implementation of onConfigurationChanged(Configuration).
boolean onDown(MotionEvent e)
The overload implementation of onDown(MotionEvent).
boolean onFlingStop()
The overload implementation of onFlingStop().
boolean onMove(MotionEvent e1, MotionEvent e2, float x_dist, float y_dist)
The overload implementation of onMove(MotionEvent, MotionEvent, float, float).
boolean onScaleBegin(float x, float y)
The overload implementation of onScaleBegin(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 setupAnnotProperty(AnnotStyle annotStyle)
Setup annotation properties.
[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

Constants

public static final int sTapToCreateHalfWidth

Constant Value: 50 (0x00000032)

Public Constructors

public SimpleShapeCreate (PDFViewCtrl ctrl)

Class constructor

Public Methods

public abstract int getCreateAnnotType ()

Gets what annotation type this tool can create

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

public abstract ToolManager.ToolModeBase getToolMode ()

The overload interface of getToolMode() ()}.

Returns
  • the mode/identifier of this tool.

public boolean isCreatingAnnotation ()

The overload implementation of isCreatingAnnotation().

public void onConfigurationChanged (Configuration newConfig)

The overload implementation of onConfigurationChanged(Configuration).

public boolean onDown (MotionEvent e)

The overload implementation of onDown(MotionEvent).

public boolean onFlingStop ()

The overload implementation of onFlingStop().

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

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

public boolean onScaleBegin (float x, float y)

The overload implementation of onScaleBegin(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 setupAnnotProperty (AnnotStyle annotStyle)

Setup annotation properties.