public class

CubicCurveBuilder

extends Object
implements AutoCloseable
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 close()
Frees the native memory of the object.
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.lang.AutoCloseable

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 close ()

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 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.