public class

CloudCreate

extends PolygonCreate
java.lang.Object
   ↳ com.pdftron.pdf.tools.Tool
     ↳ com.pdftron.pdf.tools.BaseTool
       ↳ com.pdftron.pdf.tools.SimpleShapeCreate
         ↳ com.pdftron.pdf.tools.AdvancedShapeCreate
           ↳ com.pdftron.pdf.tools.PolygonCreate
             ↳ com.pdftron.pdf.tools.CloudCreate

Class Overview

This class is for creating a rectangle annotation.

Summary

Constants
int BORDER_INTENSITY
[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
CloudCreate(PDFViewCtrl ctrl)
Class constructor
Public Methods
static boolean IsPolyWrapClockwise(ArrayList<PointF> canvasPoints)
static PointF add(PointF p1, PointF p2)
static PointF arcTo(Path path, float startX, float startY, double xr, double yr, double rx, boolean isLargeArc, boolean sweep, double endX, double endY)
static void arcToCurves(double startX, double startY, ArrayList<Double> outPoints, ArrayList<Character> outOperations, double xr, double yr, double rx, boolean isLargeArc, boolean sweep, double endX, double endY)
static double cross(PointF p1, PointF p2)
static PointF divide(PointF p, double n)
static ArrayList<PointF> getClosedPoly(ArrayList<PointF> input)
Gets the closed path of poly
int getCreateAnnotType()
Gets what annotation type this tool can create
ToolManager.ToolModeBase getToolMode()
The overload implementation of getToolMode().
static PointF multiply(PointF p, double n)
static PointF subtract(PointF p1, PointF p2)
static double toDegreesMod360(double radians)
map radians to a value between 0 and 360 degrees
[Expand]
Inherited Methods
From class com.pdftron.pdf.tools.PolygonCreate
From class com.pdftron.pdf.tools.AdvancedShapeCreate
From class com.pdftron.pdf.tools.SimpleShapeCreate
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 BORDER_INTENSITY

Constant Value: 2 (0x00000002)

Public Constructors

public CloudCreate (PDFViewCtrl ctrl)

Class constructor

Public Methods

public static boolean IsPolyWrapClockwise (ArrayList<PointF> canvasPoints)

Parameters
canvasPoints The canvas points
Returns
  • True if this polygon is clockwise oriented; False if this polygon is counterclockwise oriented

public static PointF add (PointF p1, PointF p2)

public static PointF arcTo (Path path, float startX, float startY, double xr, double yr, double rx, boolean isLargeArc, boolean sweep, double endX, double endY)

public static void arcToCurves (double startX, double startY, ArrayList<Double> outPoints, ArrayList<Character> outOperations, double xr, double yr, double rx, boolean isLargeArc, boolean sweep, double endX, double endY)

public static double cross (PointF p1, PointF p2)

public static PointF divide (PointF p, double n)

public static ArrayList<PointF> getClosedPoly (ArrayList<PointF> input)

Gets the closed path of poly

Parameters
input The input poly witch might be open
Returns
  • The closed version of the input poly

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 static PointF multiply (PointF p, double n)

public static PointF subtract (PointF p1, PointF p2)

public static double toDegreesMod360 (double radians)

map radians to a value between 0 and 360 degrees