public class

CubicCurveBuilder

extends Object
java.lang.Object
   ↳ com.pdftron.pdf.CubicCurveBuilder

Class Overview

The class CubicCurveBuilder. Creates Cubic Curves from linear points DocumentConversion instances are created through methods belonging to the Convert class. See Convert.WordToPDFConversion for an example.

Summary

Public Constructors
CubicCurveBuilder(long impl_ptr)
Public Methods
long __GetHandle()
void addSourcePoint(double x, double y)
Add a source xy point.
void destroy()
Frees the native memory of the object.
double getCubicXCoord(int index)
Get the cubic X coordinate.
double getCubicYCoord(int index)
Get the cubic Y coordinate.
int numCubicPoints()
Number of generated cubic points.
int numSourcePoints()
Number of source points.
Protected Methods
void finalize()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CubicCurveBuilder (long impl_ptr)

Public Methods

public long __GetHandle ()

public void addSourcePoint (double x, double y)

Add a source xy point.

Parameters
x -- the x coordinate.
y -- the y coordinate.

public void destroy ()

Frees the native memory of the object. This can be explicity called to control the deallocation of native memory and avoid situations where the garbage collector does not free the object in a timely manner.

public double getCubicXCoord (int index)

Get the cubic X coordinate.

Parameters
index -- the index of the coordinate. Must be less than NumCubicPoints().
Returns
  • X coordinate of the indicated point on the cubic curve.

public double getCubicYCoord (int index)

Get the cubic Y coordinate.

Parameters
index -- the index of the coordinate. Must be less than NumCubicPoints().
Returns
  • Y coordinate of the indicated point on the cubic curve.

public int numCubicPoints ()

Number of generated cubic points.

Returns
  • Indicates that the conversion succeeded, failed, or was cancelled.

public int numSourcePoints ()

Number of source points.

Returns
  • Indicates that the conversion succeeded, failed, or was cancelled.

Protected Methods

protected void finalize ()

Throws
Throwable